Skip to main content



      Home
Home » Archived » 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 09:16 Go to next message
Eclipse UserFriend
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 07:58 Go to previous messageGo to next message
Eclipse UserFriend
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 05:47 Go to previous messageGo to next message
Eclipse UserFriend
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 06:38 Go to previous message
Eclipse UserFriend
thank you...this was helpful

[Updated on: Tue, 20 August 2019 06:38] by Moderator

Previous Topic:How to setup Junit and Jacoco for remote AUT?
Next Topic:Close swing application using Jubula client api in java
Goto Forum:
  


Current Time: Sun Oct 26 12:20:53 EDT 2025

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

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

Back to the top