TestWise: “Run selected steps against the current browser”
An essential test-developing/debugging feature for wise test automation engineers.
A repost of my daughter’s article, I added a few notes. Courtney has been writing raw Selenium tests since the age of 12. I suggested one topic for her writing this week, “What is the most important reason that you exhibited significantly higher productivity than the ‘best senior test automation engineer’ in her first internal role at a large telecom firm?”. Also, I added, “Take into consideration the perspectives of both beginners and experienced test automation engineers”. This article was her answer.
In my First Day Setup series, I mentioned that my favourite feature of TestWise (a functional testing IDE) is running selected steps against the current browser. It enables you to run any test steps on a currently open browser and is extremely helpful for writing and debugging tests.
This article is dedicated to when and how to use this helpful feature.
Table of Contents:
· Before Using this Feature
· Using “Run Selected Scripts Against Current Browser”
∘ When to Use this Feature?
Before Using this Feature
To use this feature, first, run a test (it could even be a blank test!) and make sure the browser window stays open. If the window closes, you won’t be able to reuse that browser for this function. Check out my dad’s article, Keep the Browser Open after Executing an Individual Test.
In TestWise, keep your window open by not running
driver.quit in the
after(:all) hook function.
One way to do this is to comment this line out. However, remember to uncomment it later!
Another (recommended) approach is to set the browser to quit only when debugging. This is the default setting in a new TestWise spec file.
driver.quit unless debugging?
Debugging mode is when you run a single test case (not the whole file). This is the icon with the run arrow and boxes (as shown below)…