Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Tester Class of fragment not being called(Tester Class of fragment not being called)
Tester Class of fragment not being called [message #1219701] Thu, 05 December 2013 13:16 Go to next message
Ankita Chawda is currently offline Ankita ChawdaFriend
Messages: 1
Registered: December 2013
Junior Member
My ComponentConfiguration.xml details are as follows:

<concreteComponent type="Test.Application" visible="true" hasDefaultMapping="true">

<extends>guidancer.concrete.GraphicApplication</extends>

<testerClass>org.eclipse.jubula.rc.swing.tester.ATester</testerClass>

<action name="compSystem.CheckApplication">

<method>checkApp</method>

</action>

</concreteComponent>

Tester Class is as follows:
public class ATester extends SwingApplicationTester {

public void checkApp() throws StepExecutionException {

String aro[] = new String[1];

aro[0] = "C:\\Program Files\\Mozilla Firefox\\firefox.exe";

ProcessBuilder pb = new ProcessBuilder(aro);

try {

pb.start();

} catch (IOException e) {

e.printStackTrace();

}

System.out.println("Working!");

}

}


We have extended SwingApplicationTester in out Tester class and followed the instructions in the EXTEND.pdf but still we are getting the following error:

2013-12-05 17:48:29.239 [Connection.ReaderThread:Socket[addr=PS6195.persistent.co.in/10.77.222.57,port=57130,localport=57147]] ERROR o.e.j.r.c.c.AbstractCapTestCommand - implementation class method not found
java.lang.NoSuchMethodException: No such accessible method: checkApp() on object: org.eclipse.jubula.rc.swing.tester.SwingApplicationTester
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:278) ~[org.apache.commons.beanutils_1.8.0.v201205091237.jar:na]
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:225) ~[org.apache.commons.beanutils_1.8.0.v201205091237.jar:na]
at org.eclipse.jubula.rc.common.commands.MethodInvoker.invoke(MethodInvoker.java:64) ~[org.eclipse.jubula.rc.common_2.2.0.201310100933.jar:na]
at org.eclipse.jubula.rc.common.commands.AbstractCapTestCommand.execute(AbstractCapTestCommand.java:240) ~[org.eclipse.jubula.rc.common_2.2.0.201310100933.jar:na]
at org.eclipse.jubula.communication.Communicator$ConnectionListener.received(Communicator.java:844) [org.eclipse.jubula.communication_2.2.0.201310100933.jar:na]
at org.eclipse.jubula.communication.connection.Connection.fireMessageReceived(Connection.java:402) [org.eclipse.jubula.communication_2.2.0.201310100933.jar:na]
at org.eclipse.jubula.communication.connection.Connection.access$2(Connection.java:391) [org.eclipse.jubula.communication_2.2.0.201310100933.jar:na]
at org.eclipse.jubula.communication.connection.Connection$ReaderThread.run(Connection.java:454) [org.eclipse.jubula.communication_2.2.0.201310100933.jar:na]

We have tried various other approaches too but still get the same error. I think its not being able to link the toolkit project with the fragment.

Hope to get a solution soon.
Re: Tester Class of fragment not being called [message #1220163 is a reply to message #1219701] Tue, 10 December 2013 07:23 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi there,

It is probably worth looking at the rc-dev mailing list archives - quite a few threads have been answered there. If you don't find the answer, you could post a new thread.

Best regards,
Alex
Previous Topic:(how) can we test a non-deterministic application?
Next Topic:Test Creation -Mobile Toolkit
Goto Forum:
  


Current Time: Fri Apr 26 01:22:00 GMT 2024

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

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

Back to the top