Ask a Question

SessionCreator does not invoke my application and does not provide Test Results (TestExecute)

dave_user
Contributor

SessionCreator does not invoke my application and does not provide Test Results (TestExecute)

Hello,

 

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.

 

Thank you

36 REPLIES 36

Hi Marsha,

 

So, it does work and invokes TestExecute and also it shows that scenarios are running. However, it still does not invoke our application 

dave_user_0-1641854758565.png

 

Okay, do you invoke the application inside the TC project?  Let's see the code for that please.

Hi Marsha,

 

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

 

Thank you

 

in the top code, you are calling tnr.exe and in the bottom code you are calling Inr.exe - could that be the difference?

Sorry that was my mistake. its inr.exe in both the places.

 

 

Hi Marsha,

 

Not sure if I was clear. I meant its inr.exe in both the places so that's not an issue, its something else going on.

Where in your INR_AutomationProjectSuite.pjs does the application get started?  Screenshots would be helpful.

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 -:

https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/...

 

What do you think?

Also, I am unsure of how can i work with the /arg

 

Thank you

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.  

 

 

Thanks Marsha,

 

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?

 

 

cancel
Showing results for 
Search instead for 
Did you mean: