Forum Discussion
Do you mean this way?
TestExecute.exe "C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\_INR-IestAutomation\INR_AutomationProjectSuite.pjs",'/run'
When i run this it gives me an error saying -:
Invalid command line. The Project Suite
"C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\_INR-IestAutomation\INR_AutomationProjectSuite.pjs",'/run'" was not found
try this
TestExecute.exe "C:\ADOAgent\vsts-agent-win-x64-2.181.2_1\_work\r1\a\_INR-IestAutomation\INR_AutomationProjectSuite.pjs" /r
- Marsha_R3 years agoChampion Level 3
See if this helps
https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/index.html
- dave_user3 years agoContributor
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
- Marsha_R3 years agoChampion Level 3
Okay, do you invoke the application inside the TC project? Let's see the code for that please.
- dave_user3 years agoContributor
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 $argumentsHowever, 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
- Marsha_R3 years agoChampion Level 3
in the top code, you are calling tnr.exe and in the bottom code you are calling Inr.exe - could that be the difference?
- dave_user3 years agoContributor
Sorry that was my mistake. its inr.exe in both the places.
- dave_user3 years agoContributor
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.
- Marsha_R3 years agoChampion Level 3
Where in your INR_AutomationProjectSuite.pjs does the application get started? Screenshots would be helpful.
- dave_user3 years agoContributor
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
Thank you
- Marsha_R3 years agoChampion Level 3
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.