Jubula - Eclipse AUT does not start [message #1711208] |
Wed, 14 October 2015 07:12  |
Eclipse User |
|
|
|
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 #1711669 is a reply to message #1711283] |
Mon, 19 October 2015 07:59   |
Eclipse User |
|
|
|
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] by Moderator Report message to a moderator
|
|
|
|
Re: Jubula - Eclipse AUT does not start [message #1712069 is a reply to message #1711954] |
Wed, 21 October 2015 08:20   |
Eclipse User |
|
|
|
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 #1712092 is a reply to message #1712085] |
Wed, 21 October 2015 09:42   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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. 
Thanks and best regards
Roman
|
|
|
Powered by
FUDForum. Page generated in 0.04561 seconds