Ask a Question

Java bridge - Slave project not working

SOLVED
daniel_dewinter
Contributor

Java bridge - Slave project not working

Hello,
Can somebody please help me with the following issue:
 
Summary:
When trying to use a java bridge on the a project run on a slave computer using the networksuite, it fails. While running the same project "standalone" on the slave computer it works fine.
 
 
STEPS:
1 - Using the Network suite, copy the project from host to slave
2 - Using the network suite, run the project on slave via TestExecute (started from host)
RESULT:
  • Error. See picture, step (1)  (Related code See picture, step (2))
3 - Open the same project on the slave locally using TestComplete
4 - Run project
RESULT:
  • Java class works fine (---> PDF's can be read and compared to reference data)
  • Both on the host and the slave, when opening the 'Options' menu, the correct file is assigned as Java bridge. (
  • See picture, step (3)
  •  
 
CONCLUSION:
When the project on the slave is started using the host, an error occurs
When the same project is started, that just before has been copied to the slave (locally), it works fine.
 
Anybody?
 
Kind regards,
Daniel
9 REPLIES 9
tristaanogre
Esteemed Contributor

The slave computer needs to make sure that the instance of TestComplete/TestExecute on that slave computer are properly configured for the JavaBridge.  Only part of the JavaBridge stuff is in the project file that transfers between machines (the JAR files, classes, etc).  The actual configuration pointing to the Java engine is part of the application settings (Tools -> Options) that is machine specific.  I would make sure that the java engine is properly configured and try again.


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

Hello Robert,

 

Attached you find my configuration settings as present on my host and slave.

I still don't understand why this doesn't work when running the project on the slave while started from the host.

Can you spot anything wrong here?

 

Daniel

I don't see anything obviously wrong, no.  Configuration, it looks correct.  

Just a quick question: On the slave, do you have your Network suite set to use TestComplete or TestExecute because they have different configuration storages.

What line of code is that error happening on on the slave.  Can you double click on that line?  It would be helpful to know, specifically, what is generating the error.


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

Hi Robert,

I'm using Testexecute to run the project on the slave.
Do you mean the Javabridge needs to be configured separately for Testexecute?

Daniel

Yes.  Run TestExecute standalone on that remote box.  Then, right click on the icon in the Systray and select Options.  Configure the JavaBridge options there and save.  Don't forget to right-click and exit the TestExecute instance but that should do it.


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
TanyaYatskovska
SmartBear Alumni (Retired)

Hi @daniel_dewinter,

 

Have you found an answer to your question? Please share the solution with us.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



Hi,
No. I got sick last week, I'll let you know once I'm back in the office.
Daniel
TanyaYatskovska
SmartBear Alumni (Retired)

Hi Daniel,

Get well soon!

We will be waiting for the news from you.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



This did the trick.

Thanks Robert

cancel
Showing results for 
Search instead for 
Did you mean: