March 1, 2011

Working with ClickOnce Applications in QA Wizard Pro

Helix ALM
ClickOnce is a .NET application that enables the user to install and run a Windows application by clicking a link in a web page. Although a ClickOnce application cannot be launched directly from QA Wizard Pro, it is exceptionally easy to configure an automatic launch without requiring an additional program, add-in, or disabling any security features. The process is as follows: First, put a link to the application in a web page. Record against the web page, click the link to launch the application, and close your browser. QA Wizard Pro text view of script to launch ClickOnce Now, stop recording and add a delay step at the end of the script to give the application time to open. QA Wizard Pro text view of script to launch ClickOnce Next, choose Script > Record Into... so you can connect to the running application’s process. If you get a pop-up asking to run the existing script, click 'No.' Record at least one step to give you the Script.ClearContext, Script.SetContext, and Script.ConnectToProcess steps that will switch playback from the web page to the ClickOnce application. QA Wizard Pro text view of script to launch ClickOnce These steps can now be saved as a stand-alone script and called at the beginning of any test script to start and connect to the ClickOnce application automatically. The test scripts can be saved as batch script files that can be run overnight without a QA tester monitoring them.