12-12-2011, 12:20 PM
The LOC that I prefer is as below. Some benefits here are,
* with this we can open any browser,
* open the browser in maximized state, and also,
* in the first step itself we navigate to the test application directly at launch. This way we also optimize the Automation test execution by minimizing a test step to navigate to the required test application.
<Code Starts Here>
<Code Ends Here>
Note:
There are 3 environment variables used by me in the above code.
* with this we can open any browser,
* open the browser in maximized state, and also,
* in the first step itself we navigate to the test application directly at launch. This way we also optimize the Automation test execution by minimizing a test step to navigate to the required test application.
<Code Starts Here>
Code:
SystemUtil.Run Environment("BrowserName"),Environment("TD_URL"),Environment("BrowserLocation"),"", 3
<Code Ends Here>
Note:
There are 3 environment variables used by me in the above code.