Forum Discussion

HBeurdouche's avatar
HBeurdouche
New Contributor
13 years ago

Regions.CreateRegionInfo not recognized as a method with TestExecute

Hi,



I have implemented an automated test with an image check,



I use Regions.CreateRegionInfo to create the image to compare with a stored image (in Store>Regions),



This is the code I use:



var WellSectionWindowPicture = Regions.CreateRegionInfo(Sys.Process("TestedApplication").WinFormsObject("ClrMainFrame”).WinFormsObject("MdiClient", "").WinFormsObject("cgPlotPanel", "WellSectionDataPanel"), 98, 0, 138, 693, false);

 

if (Regions.WSWA16Gamma.Check(WellSectionWindowPicture, false, false, 5791, 8))

  {return true}

else

  {false}

 

When I used this code in TestComplete, the method works, images are compared.



But when I launch the test with testexecute on another machine,



I get an error message on var WellSectionWindowPicture = Regions.CreateRegionInfo(…) operation telling:

“Object doesn't support this property or method”



Do I need to make a special operation in TestExecute option to allow Regions.CreateRegionInfo methods? Or anything else?



Heloise

No RepliesBe the first to reply