Forum Discussion
- solomon_arulOccasional Contributori am scripting in Jscript
Hi Solomon,
Give us the full problematic line. What TC version are you using?
- solomon_arulOccasional Contributorhi i am using TestComplete Version 9 on a XP machine.
Check the following function :
function CheckProperty_test()
{
var PropNames, PropValues,ds;
PropNames = new Array("Name","Visible");
PropValues = new Array("WinFormsObject\(\"gridControl\"\)",true);
var obj=Aliases.ToadDecisionPoint.MainMirandaConsole.MdiClient.find(PropNames,PropValues,1000,true);
var property="wvalue\(5,\"Customer\"\)" ;
aqObject.CheckProperty(obj,property,cmpIn,"mayur,mayank,sheetal,rahul",false);
}
The above function reads a value from the grid and checks if it is present in "mayur,mayank,sheetal,rahul"
The Error message displayed is " cmpIn is undefined .The isssue is only with cmpIn and comNotIn the rest of the conditions are working fine
Hi Solomon,
I've tried a similar example on my computer - it works fine. After executing the code you should get an error in the test log - what information is specified in the Additional Information tab of this error?
- solomon_arulOccasional ContributorHi,
the additional information displayed is..
'cmpIn' is undefined
Error location:
Unit: "Toad_Decision_point\Scripts\Script\Dataset"
Line: 614 Column: 3
Hi,
That's strange. It works on my computer. Try using the value of the cmpIn constant - 14:
aqObject.CheckProperty(obj,property,14,"mayur,mayank,sheetal,rahul",false);
BTW, are you using TestComplete 9.10 (Help | About)?