Forum Discussion
solomon_arul
13 years agoOccasional Contributor
hi 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
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