RemoteLaunch - Overview Test Automation Integration for SpiraTest® and SpiraTeam®
Contents Test Automation Overview Remote Launch Walkthrough Setting up SpiraTest / SpiraTeam Overview of Available Plugins
Test Automation Overview Automated test scripts are a valuable way to perform regression testing on applications to ensure that new features or bug fixes don’t break existing functionality. They typically supplement manual testing which is more efficient at the testing of new features and capabilities. For complete test coverage you need to perform the same automated tests across a complete spectrum of platforms, browsers, devices and environments. Using RemoteLaunch® with SpiraTest / SpiraTeam allows you to manage the automated testing process. Track the automated tests against the project’s requirements Have a holistic view of manual and automated testing
Test Automation Architecture You install RemoteLaunch on each computer (called a host) that will be running automated tests, for example: Host #1 Windows 2008 IE 8.0 Manual Tester #1 RemoteLaunch® SpiraTest® Repository Host #2 Windows Vista Mozilla Firefox Manual Tester #2 RemoteLaunch® Host #3 Ubuntu Linux Google Chrome Manual Tester #3 RemoteLaunchX®
Test Automation - Installation Install RemoteLaunch® on each of the automation hosts that will be running automated tests Install the appropriate plugins for the different automation engines that will be running on that host Configure the plug-in if necessary Assign a unique name (called the token) to the host Point the instance of RemoteLaunch to your SpiraTest server and set the polling interval Installation
Test Automation - Configuration Create the list of automation hosts inside SpiraTest Should include all computers have RemoteLaunch installed Create the list of automation engines inside SpiraTest Should include all the automation engines that have a plug-in installed inside RemoteLaunch Test that all instances of RemoteLaunch can connect to SpiraTest Installation Configure
Test Automation – Test Scripts Either create new test cases in SpiraTest or reuse existing manual test cases for test automation: Select the automation engine that will be used for the script Either upload the script into the test case or provide a link to it Add parameters to the test case They can be used to change how the test script operates Make sure that the test cases are mapped to the appropriate requirements and releases in SpiraTest Installation Configure Test Script Creation
Test Automation – Test Scheduling Create one or more test sets in SpiraTest to hold the automated test cases Add the automated test cases to the test set and if appropriate specify the parameter values to pass to the test case Specify the automation host that will run the test set and what date/time it should be executed Installation Configure Test Script Creation Test Scheduling
Test Automation – Test Execution RemoteLaunch instances will periodically contact the SpiraTest server to see when the next test needs to be executed When the planned date/time of the test set is reached, RemoteLaunch will activate, launch the test automation tool, capture the results and transmit back to SpiraTest The testing results are stored in SpiraTest and the test status of the test cases and requirements will be updated Installation Configure Test Script Creation Test Scheduling Execution
RemoteLaunch Walk-Through
Installation and Configuration Install RemoteLaunch on each of the automation hosts Specify the SpiraTest server to connect to Configure the polling interval and other execution parameters
Status Display The Status tab will display the current status of Remote Launch: Idle Executing a test Paused You can force RemoteLaunch to immediately launch a test set in its queue before the planned date/time
Test Execution Engines The plug-ins for the different test automation engines should be copied into the “extensions” folder The plug-ins will be displayed in the “About Spira RemoteLaunch” dialog box You can configure plug-in specific parameters inside RemoteLaunch
RemoteLaunchX – Cross-Platform Automation In addition to RemoteLaunch® that runs on Microsoft Windows, there is RemoteLaunchX™ that is written in 100% Java and can be used on: Linux (Ubuntu, Redhat, etc.) Mac OS X Any platform that can run Java 1.7+ #This file contains the configuration data used by the RemoteLaunch-X #Spira connection information server-url = http://vm-win2012r2/SpiraTeam server-login = fredbloggs server-password = PleaseChange #The automation host token host-token = MyHost1 #The regular expressions for each of the possible execution statuses pass-regex = .* fail-regex = .*(Error|Fail|Fatal).* caution-regex = .*(Warning|Caution).* blocked-regex = .*(Blocked).*
Setting up SpiraTest / SpiraTeam
Test Automation Engines - Configuration The various automated test engines that will be used in SpiraTest need to be configured to match the plug-ins installed in RemoteLaunch.
Test Automation Hosts - Configuration The automated test scripts managed in SpiraTest / SpiraTeam can be either executed on the local machine or scheduled for execution on a series of remote hosts. The local machine and/or remote hosts must all be running an instance of RemoteLaunch ® that is pointing o the central SpiraTest / SpiraTeam server.
Test Cases – Attaching Scripts You attach test automation scripts to existing test cases in SpiraTest / SpiraTeam. The results of the test execution will be reported back as automated Test Runs in SpiraTest / SpiraTeam.
Test Sets – Scheduling for Automation You can organize the test cases into test sets, which are assigned to specific automation hosts for execution. You can either assign unique host names to each computer or use the same host name, in which case SpiraTest will simply use the first available machine.
Available Engines
Automated Functional Testing Tools RemoteLaunch® can integrate with a variety of automated functional and load testing tools. Functional Testing: HP Unified Functional Testing (UFT) Selenium WebDriver & IDE SmartBear TestComplete® and SoapUI Froglogic Squish® TestingAnywhere Ranorex Performance/Load Testing: HP LoadRunner® Neotys NeoLoad® Apache JMeter