My requirement is to run failed test case again.
I know there is an option for this in suit, but that is not what i want. That option run the failed test case after running all the test cases in suite.
What I want is that if test case gets failed, it shoudl start again without in the same browser i.e. without closing the browser
Example : if i have below 4 test cases
test case 1 : open browser do some steps
test case 2 do another step
test case 3 do another step and close the browser
in current situation , if test case 2 fails, then either I have to run compete suit again or running only failed test case i.e. 2 will not work because it will not open browser.
I want that the moment it gets failed, it restarts before moving to next .
No, my last step is not close browser in each test case
It goes like below in a test suite :
test case 1 : open browser and login to application
test case 2 : check 1st feature ( not closing teh browser at the end)
test case 3 : refresh the page and check another feature ( still not closing the browser)
test case 4 : last step and then close the browser
now, my requirement is that if by chance test case 3 fails, it gives it another try before moving to test case 4
I have recorded the web successfully and saved the script. when I ran it again the same script I am getting test case failed message. I did try this for several times but no luck, sometimes it works perfectly but sometimes not. Can someone advice me, thanks.
@testingkatalon489 You may have to add wait statements, such as WebUI.waitForElementVisible() or WebUI.waitForElementPresent(), and delay statements (WebUI.delay(2)) to your test case to allow your computer to stabilize and catch up during one run to another.
By this, you would understand what adding wait statements is for.
Targeted element not present on the page: This kind of failure occurs when waiting for elements to be displayed or rendered in the browser. The application may be up and running but certain elements may not be loaded, thus causing test scripts to fail.