SessionCreator does not invoke my application and does not provide Test Results (TestExecute)
I have created a Powershell Task in Azure DevOps deployment pipeline to run the SessionCreator Utility. Below is the command -:
SessionCreator.exe RunTest /UserName:****-CORP\**** /password:******** /UseActiveSession /ProjectPath:"$(Agent.Releasedirectory)\_INR-TestAutomation\INR_AutomationProjectSuite.pjs" /arg:/PrjVar:inrExeLocation="$(Agent.Releasedirectory)\_INR\INR Binaries\inr.exe"
it does connect to the remote desktop session where we have installed TestExecute and starts running TestExecute, however, it does not invoke my application and after it fails it does not show the any failed results in the "Test" section of the pipeline.
Any help would be appreciated.
So, it does work and invokes TestExecute and also it shows that scenarios are running. However, it still does not invoke our application
Sorry for the delay in my reply.
Below is the code that invokes the application -:
$testexecute= "C:\Program Files (x86)\SmartBear\TestExecute 15\Bin\TestExecute.exe"
$project = "C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\_INR-TestAutomation\INR_AutomationProjectSuite.pjs"
$arguments=$project, '/run', '/PrjVar:InrExeLocation="C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\_INR\INR Binaries\tnr.exe"', '/exit', '/DoNotShowLog', '/ns', '/ErrorLog: .\TCErrors.txt /ExportSummary:C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\results.xml'
Start-Process -FilePath $testexecute -ArgumentList $arguments
However, when i use SessionCreator, the code does invoke the application. Below is the code that does NOT invoke the application -:
SessionCreator.exe RunTest /UserName:TC_User /password:********* /ProjectPath:"C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\_INR-TestAutomation\INR_AutomationProjectSuite.pjs" /arg:InrExeLocation="C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\_INR\INR Binaries\Inr.exe" /es:C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\results.xml /el:C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\logs.txt
I think I figured something out Marsha.
SessionCreator.exe RunTest /UserName:******\***** /password:********* /UA /ProjectPath:"C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\_INR-TestAutomation\inr_AutomationProjectSuite.pjs" /arg:inrExeLocation="C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\_inr\inr Binaries\inr.exe" /es:C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\results.xml /el:C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\logs.txt
When i run this command, it starts the TestExecute and starts running the test but it does not invoke my applcation inr.exe which is in C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\_inr\inr Binaries\inr.exe location.
I believe it has something to do with the /arg command it is not able to find my Test Complete project. this is what i read in the below link -:
What do you think?
Also, I am unsure of how can i work with the /arg
The /arg syntax looks okay as far as I can tell.
What the arg is meant to do is pass in that value (your .exe location) to a TestComplete argument (your inrExeLocation). The arg itself is not going to invoke anything. You have to use the InrExeLocation somehow inside your test to do the invoking.
Sorry, I am still little confused.
I am trying to dissect what you wrote -:
What the arg is meant to do is pass in that value (your .exe location) - C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\_inr\inr Binaries\inr.exe
to a TestComplete argument (your inrExeLocation). - inrExeLocation
The arg itself is not going to invoke anything. You have to use the InrExeLocation somehow inside your test to do the invoking.
by "test" do you mean inside the TestComplete project?