Runtime error on different pc while comparing two value
Hello,
I have a problem running TestComplete on different machines.
I want to compare two values, if they match.
Here is the code for it:
var inspectedRate; inspectedRate = Aliases.myApp.frmDealCheck.frmFX.frmFX1_B.frmFXSold.txtFXO_Amount.wText; inspectedRate = aqString.Trim(aqConvert.VarToStr(inspectedRate)); var correctValue = 1938665; if (aqConvert.VarToInt(inspectedRate) == aqConvert.VarToInt(correctValue)) { Log.Checkpoint("The value of FXRate is correct."); } else Log.Error("The value of FXRate is incorrect.");
If I run the function which contains this code, everything is fine, test runs successfully.
If my colleague runs it, everything is fine, test runs successfully.
BUT if I run it on a virtual machine or my other colleague on a laptop it gets:
"JavaScript runtime error.
The argument cannot be converted." with error location pointing to the line where the 'if comparison' is.
I assume the problem is the inspectedRate variable, just don't know why and how to fix it.
Can someone please enlighten me how is that possible that the same TestProject runs differently on the same OS with the same Application with the same Resolution?
A detailed solution would be appreciated,
Thanks in advance