Forum Discussion
Hi,
Just to be on the safe side:
While on the virtual machine, did you set breakpoint on the 'if' line and examined the value of the inspectedRate variable? (While inspecting, pay attention not only to the value of the variable, but also to the length of the value, as the value might contain invisible symbols like 0x0D, 0x0A, etc.)
The reason for the problem on VM may be because VM is slower that physical PC and, for example, the txtFXO_Amount object may not exist yet when test code tries to get a reference to it.
P.S. Log record like
Log.Error("The value of FXRate is incorrect.");
is great, but is it really useful? Why the value was reported as incorrect? What was the actual value and expected one? Why not to include this and other relevant information as a second parameter for the Log.Error() call? (Sometimes) this may give some clue to someone who will be given and will have to read this test log...