pixi_av
14 years agoOccasional Contributor
Checking if the test is running on 64 bit system or not
Hello!
I am new to TestComplete and i was wondering something. Since 64 bit windows have some things different than x86 windows ("paths" for dialogs and such) it is sometimes necessery to check on which system the test is running. So i was wondering what are best practices to do that?
So far i found that the "explorer" process has a property called "ProcessType". Its value is "x64" if its running in 64bit environment or "x86" if its not.
Is this a good practice or is there some better way to determine if the system is 64 bit or not.
Example function i've written for this:
function isSystem64bit()
{
if (Aliases.Explorer.ProcessType == "x64")
return true;
else
return false;
}
I am new to TestComplete and i was wondering something. Since 64 bit windows have some things different than x86 windows ("paths" for dialogs and such) it is sometimes necessery to check on which system the test is running. So i was wondering what are best practices to do that?
So far i found that the "explorer" process has a property called "ProcessType". Its value is "x64" if its running in 64bit environment or "x86" if its not.
Is this a good practice or is there some better way to determine if the system is 64 bit or not.
Example function i've written for this:
function isSystem64bit()
{
if (Aliases.Explorer.ProcessType == "x64")
return true;
else
return false;
}