testComplete 14.20 + cannot access the user defined function
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
testComplete 14.20 + cannot access the user defined function
TestComplete 14.20 is having issues in calling the user defined functions. I am running the 2 scripts. script 1 runs and it has errors which is expected and so the script stops and now when it pick up the second script and when it tried to call the functions it give the error "cannot ready property 'logCredentials' of undefined . testcomplete 14.10 do not have such issue. the script which was created in the older version works fine.
S
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Attached the function,
Seem like we have major issue in TC 14.20. When we have more than one projectItems running then after finishing the first project Items , it start giving the issue as soon as TC pick second project Items and then in the end we have the errors "The execution process was interrupted"
I have run those project item individually and it pass without any such issue
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Let's see the test log from the second project item.
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Attached the log as requested . We ran all the projectItems which are 5 . It only show 3 with errors. Firet one is expected . But the second and third errors are major concerns . Remaining 2 other testitems are missing.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK... so, what I'm seeing is that you have a script called "test_NBAPBUD_Status that is working fine but one that is called "test_NBAJOBS_Status" that is not working. In the screenshots you've sent us, I've only seen code for the first one. That one does have the requrires... but you need to make sure the requires calls are at the beginning of ALL script units that will call "killProcess". Each script unit stands alone with this regard.
Please confirm that NBAJOBS has the appropriate "requires" calls at the beginning of the unit.
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- So if you run all of these test items separately, they run with no errors?
- In your NBAPBUD item, what processes are being terminated?
- In your NBAJOBS item, what code is being executed when you get the error on kill process?
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Humor me. I'd like to see. 🙂
It does sound like there might be a problem here with the internal JavaScript engine for TestComplete that it's losing reference. You might want to contact https://support.smartbear.com/message/?prod=TestComplete for direct support with SmartBears service staff.
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
