Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Jubula - Eclipse AUT does not start
Jubula - Eclipse AUT does not start [message #1711208] Wed, 14 October 2015 07:12 Go to next message
Roman Reinold is currently offline Roman ReinoldFriend
Messages: 7
Registered: October 2015
Junior Member
Hello,

If i run my programm the AUT agent is starting normal but then nothing happens.
I do not get any Exceptions. Next what i am expecting is the click on a button.

When debugging it does not continue at this line:

AUTIdentifier identifier = autAgent.startAUT(configuration);

and it stucks at any .class file.
Could anyone help me with that or suggest any possible solutions?

Thanks in advance.
Roman





Re: Jubula - Eclipse AUT does not start [message #1711283 is a reply to message #1711208] Wed, 14 October 2015 14:27 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Roman,

Can you provide some more information?

- It looks like you're working with the API, is that correct?
- What kind of application are you trying to start (Swing, RCP, JavaFX, ...)
- Have you followed the setup instructions here?: http://testing.bredex.de/faqs/jubula-api-setup.html
- How does your code for starting the AUT look?
- What errors are thrown?

Thanks,
Alex
Re: Jubula - Eclipse AUT does not start [message #1711669 is a reply to message #1711283] Mon, 19 October 2015 07:59 Go to previous messageGo to next message
Roman Reinold is currently offline Roman ReinoldFriend
Messages: 7
Registered: October 2015
Junior Member
Hi Alex,

thanks for the reply.
Yes I am working with the API.
I solved the problem by changing my RCPAUTConfiguration into a SwingAUTConfiguration.

Now I have little problems with the mapping.

@NonNull public static org.eclipse.jubula.toolkit.concrete.components.ButtonComponent createButton (@NonNull ComponentIdentifier componentIdentifier) {
Validate.notNull(componentIdentifier);
return new org.eclipse.jubula.toolkit.swt.internal.impl.Button(componentIdentifier);
}

At this point the componentIdentifier is null, but i think that should be an own topic and I am trying out a few things before creating a new thread.

Update: I am also getting
java.io.StreamCorruptedException: invalid stream header: 0A179C91
but i don't know why.

Thank you

Roman

[Updated on: Mon, 19 October 2015 11:20]

Report message to a moderator

Re: Jubula - Eclipse AUT does not start [message #1711954 is a reply to message #1711669] Tue, 20 October 2015 12:09 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hello Roman,

if your application is indeed Swing, then defining it as a Swing application is indeed correct.
It sounds ilke you have't had a chance to look at the examples yet:
http://testing.bredex.de/faqs/jubula-api-setup.html

The link above shows you how API tests look and also points you in the right direction for the object mapping. (You currently have to perform and export the object mapping from the Jubula ITE client).

Best regards,
Alex
Re: Jubula - Eclipse AUT does not start [message #1712069 is a reply to message #1711954] Wed, 21 October 2015 08:20 Go to previous messageGo to next message
Roman Reinold is currently offline Roman ReinoldFriend
Messages: 7
Registered: October 2015
Junior Member
Hi Alex,

I followed the steps from your link for the object mapping and tried both exports for use in API, the java class and the properties file.

Using the java class, the test is running through but fails because I get a null Object at
Validate.notNull(componentIdentifier);
.

If I am using the properties file then i am getting an exception:

Caused by: java.io.StreamCorruptedException: invalid stream header: 4023E8A2
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
at org.eclipse.jubula.client.internal.utils.SerilizationUtils.decode(SerilizationUtils.java:59)
at org.eclipse.jubula.client.internal.impl.ObjectMappingImpl.getIdentifier(ObjectMappingImpl.java:98)



Thanks,
Roman
Re: Jubula - Eclipse AUT does not start [message #1712085 is a reply to message #1712069] Wed, 21 October 2015 09:04 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Thanks for the update Roman. Can you post the code you are using for your test? We'll check where the error could be.
Re: Jubula - Eclipse AUT does not start [message #1712092 is a reply to message #1712085] Wed, 21 October 2015 09:42 Go to previous messageGo to next message
Roman Reinold is currently offline Roman ReinoldFriend
Messages: 7
Registered: October 2015
Junior Member
Yes of course.

This is the test in my test class:

@Override
public void test() {
ButtonComponent loginButton = SwingComponents.createAbstractButton(ObjectMappingMetIDQBoron.click_OK_btn);
execute(loginButton.click(1, InteractionMode.primary), "Login button clicked");

}

Attached you can see the files I am using for the mapping.

I hope you could help me in any case.

Thank you
Re: Jubula - Eclipse AUT does not start [message #1712250 is a reply to message #1712092] Thu, 22 October 2015 11:26 Go to previous message
Roman Reinold is currently offline Roman ReinoldFriend
Messages: 7
Registered: October 2015
Junior Member
I was able to solve the problem now by reading out the properties file with some own methods.

Still do not know why it did not work as described in the instructions.
If anyone can solve the problem and tell me the solution i would be happy. Smile

Thanks and best regards

Roman

Previous Topic:How to build Jubula using Maven from command promt in unix
Next Topic:Build successful but when I import into eclipse it shows error
Goto Forum:
  


Current Time: Tue Mar 05 08:46:12 GMT 2024

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

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

Back to the top