run individual test case
Posted: Tue Jun 09, 2015 6:19 pm
Hi,
Is there a way to know whether the test case is running individually or it is one of the test cases of a running test suite in the user code?
I am trying to make testers to run individual test case without manually prepare a page so the test case can act on some certain UI elements directly.
One way is
I am adding some code in the init() to check if the specific UI element exists, if no, using Host.Local.OpenBrowser method etc to let program prepare a page. I expect this method will not be called if the test case is running within a test suite since the script flow will have the page available.
Are there any other ways?
thanks,
Betty
Is there a way to know whether the test case is running individually or it is one of the test cases of a running test suite in the user code?
I am trying to make testers to run individual test case without manually prepare a page so the test case can act on some certain UI elements directly.
One way is
I am adding some code in the init() to check if the specific UI element exists, if no, using Host.Local.OpenBrowser method etc to let program prepare a page. I expect this method will not be called if the test case is running within a test suite since the script flow will have the page available.
Are there any other ways?
thanks,
Betty