Overview

To run test scripts written in VBScript, you need to follow these steps:

  1. Download and install RemoteLaunch (https://www.inflectra.com/RemoteLaunch)
  2. Download the Command-Line plugin for RemoteLaunch (https://www.inflectra.com/RemoteLaunch)
  3. Configure SpiraTest to have the Command-Line automation engine active
  4. Create a test case in SpiraTest and add the automation information
  5. Schedule test case using a test set and configure an automation host.

Setting up RemoteLaunch

Assuming that you have downloaded and installed RemoteLaunch, you will need to configure it to point to SpiraTest by entering the appropriate URL to connect to SpiraTest along with a valid login/password.

Next you need to assign a name to this automation host (the machine running RemoteLaunch), let's call it HOST1. Make sure you enter this in RemoteLaunch.

Now download the CommandLine extension / automation engine from our website and put the CommandLine.dll file into the extensions subfolder of your RemoteLaunch installation.

When you restart RemoteLaunch you will see the new extension (Command-Line) listed as loaded.

Setting up SpiraTest/SpiraTeam

Now inside SpiraTest, go to Administration > Integration > Test Automation and make sure that the Command-Line plugin is listed as active

Then choose the appropriate SpiraTest project from the main navigation and go to Testing > Automation Hosts to display the list of automation hosts.

Create a new host and give it:

  • Name = HOST1
  • Token = HOST1

Now either create a new test case or click on an existing one and scroll down to the Automation section.

In the Automation section set the Automation Engine to 'Command-Line', choose Linked as the type of Script and then for the Filename use the following:

C:\Windows\System32\cscript.exe|C:\Temp\myscript.vbs

where 'C:\Temp\myscript.vbs' is the actual location of your Visual Basic script (VBScript).

Save your test script.

Now go to Testing > Test Sets in SpiraTest and create a new test set, give it a name (e.g. "VB Testing") and then click on it.

On the Test Set details page, go to the 'Test Cases' section and add your new test case.

Now set the Automation Host of this test set to HOST1 and set the Planned Date to be the current date/time.

Executing the Script

Now you can go to RemoteLaunch and:

  • Click on 'Force Poll' to get your newly scheduled test set
  • Click on 'Force Execute' to have it run the test set immediately