cancel
Showing results for 
Search instead for 
Did you mean: 

testComplete 14.20 + cannot access the user defined function

SOLVED
Highlighted
Super Contributor

Re: testComplete 14.20 + cannot access the user defined function

 
Highlighted
Super Contributor

Re: testComplete 14.20 + cannot access the user defined function

here attached the logCredentials functions 

 

also attached the how we exporting the functions 

Highlighted
Super Contributor

Re: testComplete 14.20 + cannot access the user defined function

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 

Highlighted
Community Hero

Re: testComplete 14.20 + cannot access the user defined function

Let's see the test log from the second project item.

Highlighted
Super Contributor

Re: testComplete 14.20 + cannot access the user defined function

@Marsha_R 

 

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. 

Highlighted
Community Hero

Re: testComplete 14.20 + cannot access the user defined function

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
Highlighted
Community Hero

Re: testComplete 14.20 + cannot access the user defined function

  • 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?
Highlighted
Super Contributor

Re: testComplete 14.20 + cannot access the user defined function

@Marsha_R 

 

1. Yes

 

2.  browser processes.

 

3.  Attach the screenshot

Highlighted
Super Contributor

Re: testComplete 14.20 + cannot access the user defined function

@tristaanogre 

If I ran them individually then no issue. 

Highlighted
Community Hero

Re: testComplete 14.20 + cannot access the user defined function

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
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to pass custom command-line arguments as a test parameter for the TechCorner tag!

Will you dare to take the challenge?


Top Kudoed Authors