Ask a Question

Unable to set TestedApps Path dynamically

SOLVED
SaravanaKumar_N
Contributor

Unable to set TestedApps Path dynamically

Hi,


I am unable to set TestedApps.Items(i).Path properly. 

Let say my app is under - C:\Program Files\abcdef\TestApp\App.exe

 

I am setting this dynamically using....

TestedApps.Items(0).Path = appPath;

 

But when I check the TestedApps application path field...

TestedApps Path is set to - C:\Program Files\abcdef\TestApp\

 

"App.exe" is not being set at application field, its getting trucated. Am I missing something here?

 

3 REPLIES 3
AlexKaras
Champion Level 2

Hi,

 

I think this is correct expected behaviour.

Check documentation for the TestedApp.Path and TestedApp.FileName properties.

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================

TestedApp.FileName - thats what I was missing, thank you @AlexKaras

cneedham
Occasional Contributor

I don't use tested apps at all. I just run a batch that launches the app. 

 

Wrap it , don't wrap it. Doesn't matter. I use wshellrun. 

 

static runBatchFile(batchFile, waitForExit, args = '')
{
WshShell.Run("cmd /c .\\Stores\\Files\\" + batchFile + " " + args, 1, waitForExit);
}

cancel
Showing results for 
Search instead for 
Did you mean: