This section is dedicated to my viewers.Here they can ask question and I will be happy to help or redirect to some page what is best suitable for them.
How to change/give environment name dynamically –to my framework? .Right now we are hardcoding in our scripts.
Thank you very much for writting me!! I am trying my level best to solve your query.
Well veenetha,there are several ways how you can insert environment name into your framework:—-
1)Ofcourse,I agree,the hardcoding into a script is one of the options.
2)The second improvement could be,you can create a dialog box(input to take the environment.This you will place master/global driver and the value you will pass to the child scripts.
Or,you get the URL from user and save it to the notepad and read it dynamically afterwords.
3)Create an environment file for providing URL.I found advantage on creating a separate file for environment details.Updation is very easy and effective.
Tomorrow you can change it to
My personal suggestion is to go with either 2 or 3.