Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Jubula throws Component not found exception before launching AUT(Jubula throws Component not found exception and after that AUT is launched.)
Jubula throws Component not found exception before launching AUT [message #1810281] Tue, 06 August 2019 13:16 Go to next message
rupayan nath is currently offline rupayan nathFriend
Messages: 8
Registered: July 2019
Junior Member
I am using Jubula 8.7.1. I have written a test script using Jubula client API. I need a way for Jubula to wait for the AUT to launch before throwing component not found exception. My test executes fine when the AUT launch happens before the exception is thrown. The AUT is a Swing based application.

Following is my code to start AUT:

public String pomsOrder() throws Exception{
AUTAgent autagent = null;
AUTConfiguration autconfiguration = null;
AUTIdentifier autidentifier = null;
AUT aut = null;
// Connect AUT agent
autagent = MakeR.createAUTAgent("localhost", 60001);
autagent.connect();
// Launch AUT
autconfiguration = new SwingAUTConfiguration("Autidentifier",
"Autidentifier", "FXall Trading.exe",
"D:\\Development_Avecto\\ALTAIR\\7.3.0.35", null);
autidentifier = autagent.startAUT(autconfiguration);
aut = autagent.getAUT(autidentifier,
SwingComponents.getToolkitInformation());
Robot robot = new Robot();
aut.connect();
Re: Jubula throws Component not found exception before launching AUT [message #1810458 is a reply to message #1810281] Mon, 12 August 2019 11:58 Go to previous messageGo to next message
rupayan nath is currently offline rupayan nathFriend
Messages: 8
Registered: July 2019
Junior Member
Is there any solution to this?
Re: Jubula throws Component not found exception before launching AUT [message #1810537 is a reply to message #1810458] Tue, 13 August 2019 09:47 Go to previous messageGo to next message
Marvin Mueller is currently offline Marvin MuellerFriend
Messages: 194
Registered: March 2012
Senior Member
There are multiple Solutions for this problem. Mostly it is useful to wait for a specific window(Application waitForWindow) or component (waitForComponent Action) with a reasonable timeout. If this is not possible sometimes a static wait is the only solution, maybe you can also use some external applications started via java to check if the Application did start(but i have not used something like this).

best regards
Marvin Mueller
Re: Jubula throws Component not found exception before launching AUT [message #1810834 is a reply to message #1810537] Tue, 20 August 2019 10:38 Go to previous message
rupayan nath is currently offline rupayan nathFriend
Messages: 8
Registered: July 2019
Junior Member
thank you...this was helpful

[Updated on: Tue, 20 August 2019 10:38]

Report message to a moderator

Previous Topic:How to setup Junit and Jacoco for remote AUT?
Next Topic:Cannot start AUT with Jubula 8.7.1.046
Goto Forum:
  


Current Time: Sat Dec 14 18:28:05 GMT 2019

Powered by FUDForum. Page generated in 0.02233 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top