VBScript Grid Client
Examples - VBScript Grid Execution For SeeTest
SeeTest VBScript Client - Using Grid Execution
Dim gridClient, client
Set gridClient = CreateObject("Experitest.GridVBClient")
gridClient.SetConnectionInfo "cloudUsername", "cloudPassword", "cloudProject", "cloud.experitest.com", 80, true
Set client = gridClient.LockDeviceForExecution("testname", "@os='android'", 60, 20000)
'Set a reporter
client.SetReporter "xml", "reports"
.
.
.
'Generate the test report
client.GenerateReport
client.ReleaseClient
Create a new GridClient:
- Create new object instance of 'Experitest.GridVBClient'.
- Use the SetConnectionInfo function to configure your running environment. Provide the following details: user name, user password, project, cloud server URL.
SetConnectionInfo String username, String password, String Project, String hostname, int port, boolean isSecured
SetURLConnectionInfo String username, String password, String Project, String URL
Then use the grid client created to request a device to run your test on. Do so with the following command:
Client LockDeviceForExecution(String testName, String deviceXpathQuery, int reservetionTime, long timeout)
If you want to generate a report when the test is finished, you need to set a reporter
SetReporter String report type, String report path
and at the end of the test use GenerateReport
Registering imageClient.dll
You will need to register imageClient.dll file to be able to run a Grid Test
To register imageClient.dll , run from Command Line these commands :
Make sure to adjust commands if SeeTest Installation Folder is different from the default
In Command Line
"c:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe" "C:\Program Files (x86)\Experitest\SeeTest\clients\C#\imageClient.dll" /codebase
"c:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe" "C:\Program Files (x86)\Experitest\SeeTest\clients\C#\imageClient.dll"
Or in 32-bit machines :
In Command Line
"c:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe" "C:\Program Files (x86)\Experitest\SeeTest\clients\C#\imageClient.dll" /codebase
"c:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe" "C:\Program Files (x86)\Experitest\SeeTest\clients\C#\imageClient.dll"