Wednesday, January 14, 2015
To run test scripts written in VBScript, you need to follow these steps:
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.
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:
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:
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.
Now you can go to RemoteLaunch and:
results match your keyword(s)