Forum Discussion
kso
14 years agoOccasional Contributor
Hi,
Here is a jscript function that must be called before the use of TestedApps variable.
As the TestedApps.tcTas file may be saved after execution, i change the path of the tested application
in the two direction so that i don't matter the os of the last execution :
I f i run the test on 64 bits os, i change to Program Files (x86)
else i change to Program Files
function ChangeAppPathNameOs()
{
var application,index;
var os64bits = Sys.OSInfo.Windows64bit;
if (os64bits) {
for ( index=0;index<TestedApps.Count;index++)
{
application = TestedApps.Items(index);
application.Path = application.Path.replace('Program Files\\','Program Files (x86)\\');
}
} else
{
for ( index=0;index<TestedApps.Count;index++)
{
application = TestedApps.Items(index);
application.Path = application.Path.replace('Program Files (x86)\\','Program Files\\');
}
}
}
Here is a jscript function that must be called before the use of TestedApps variable.
As the TestedApps.tcTas file may be saved after execution, i change the path of the tested application
in the two direction so that i don't matter the os of the last execution :
I f i run the test on 64 bits os, i change to Program Files (x86)
else i change to Program Files
function ChangeAppPathNameOs()
{
var application,index;
var os64bits = Sys.OSInfo.Windows64bit;
if (os64bits) {
for ( index=0;index<TestedApps.Count;index++)
{
application = TestedApps.Items(index);
application.Path = application.Path.replace('Program Files\\','Program Files (x86)\\');
}
} else
{
for ( index=0;index<TestedApps.Count;index++)
{
application = TestedApps.Items(index);
application.Path = application.Path.replace('Program Files (x86)\\','Program Files\\');
}
}
}
Related Content
- 7 months agotarttdh
Recent Discussions
- 53 minutes agoSubhraDas
- 20 hours agotramuntana