cancel
Showing results for 
Search instead for 
Did you mean: 

Checkpoint wizard

SOLVED
Highlighted
Contributor

Checkpoint wizard

I recorded a script on tuesday, it worked great then and on wednesday.  Today when I ran it, I kept getting, "Cannot read property 'Check' of undefined.

Here is the code snippet:


"Success = Regions.Reversed.Check(Regions.CreateRegionInfo(Aliases.browser.BrowserWindow.Chrome_Legacy_Window, 139, 319, 1727, 181, false), false, false, 10419, 255);"

Included is the error message and a list of the files showing the PNG in the regions directory....

 

This is very frustrating, I hope some one can tell me what is going wrong....If I redo the checkpoint wizard and make a new one it works again...

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Checkpoint wizard

The file may be present in the hard drive, but the Regions store must contain it.  (And I meant Reversed... typo).  So check here and see if it's present.

2019-07-19 08_10_59-TestComplete - C__MySource_Sandbox_Sandbox.pjs.png


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

5 REPLIES 5
Highlighted
Community Hero

Re: Checkpoint wizard

The Reversed.png file is present... but that's not what is being called.

In your project, go to the Regions node in your project.  Based upon what you have writen as code, I would expect there to be an item in the list of regions available named Reserved.  IF that's missing, that's why you're getting the error...  Reserved is undefined, therefore Check is an unkown identifier.

 

Basically... somewhere between today and yesterday, the Reversed object has been removed from the Regions collection.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Contributor

Re: Checkpoint wizard

Thanks Robert but,

 

 "Based upon what you have writen as code, I would expect there to be an item in the list of regions available named Reserved. "

 

""Success = Regions.Reversed.Check(Regions.CreateRegionInfo(Aliases.browser.BrowserWindow.Chrome_Legacy_Window, 139, 319, 1727, 181, false), false, false, 10419, 255);"

 

Where do you see "Reserved?"

 

"Basically... the Reversed object has been removed", um no it is still there....

 

Lee

Highlighted
Community Hero

Re: Checkpoint wizard

The file may be present in the hard drive, but the Regions store must contain it.  (And I meant Reversed... typo).  So check here and see if it's present.

2019-07-19 08_10_59-TestComplete - C__MySource_Sandbox_Sandbox.pjs.png


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

Highlighted
Contributor

Re: Checkpoint wizard

Ah ha  !!!  I was looking in the regions directory with file explorer...when I used project explorer in the app, it was not there.  I added it and it all seems to be ok now..

 

Thank you for your patience   🙂

 

Lee

Highlighted
Community Hero

Re: Checkpoint wizard

No problem!  Now, as to WHY it got removed from the Project Explorer...  That I cannot speak to.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors