Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Creating Test Framework and writing test cases in Java in Jubula
Creating Test Framework and writing test cases in Java in Jubula [message #1831312] Mon, 17 August 2020 09:52 Go to next message
Nidhi Kashyap is currently offline Nidhi KashyapFriend
Messages: 21
Registered: August 2020
Junior Member
Hello All,

I am using Eclipse for testers to create Jubula test cases and test suites for automation for my Swing Application.
I am able to create test cases by dragging and dropping the actions available.

Is there any way we can integrate Java code to write test cases or how can we write the scripts in Jubula in any programming language like Java.

I also want to create Test Framework in Jubula for reusablity of the test cases and the components.

Kindly suggest how can I achieve writing test cases in Java inside Jubula and creation of framework.

Thanks in advance.

Regards,
Nidhi Kashyap
Re: Creating Test Framework and writing test cases in Java in Jubula [message #1831373 is a reply to message #1831312] Tue, 18 August 2020 12:30 Go to previous messageGo to next message
Nidhi Kashyap is currently offline Nidhi KashyapFriend
Messages: 21
Registered: August 2020
Junior Member
Any help and advice is much appreciated.
also how can we convert Jubula test case into Java code. And how can we perform commit of Jubual test cases in Git or Bitbucket and perform version controlling
Re: Creating Test Framework and writing test cases in Java in Jubula [message #1831501 is a reply to message #1831373] Fri, 21 August 2020 07:09 Go to previous message
Nidhi Kashyap is currently offline Nidhi KashyapFriend
Messages: 21
Registered: August 2020
Junior Member
Hi All,

I am trying to call the AUT agent outside Jubula in a Java class.

I am writing the below code for setting up the configuration.
Can anyone tell me what are the parameters which the SwingAUTConfiguration class is taking in this line ....... SwingAUTConfiguration("Autidentifier", aut_id, ratexe, ratExepath,new String[] {""});

I can find this example here .... https://help.eclipse.org/2020-06/index.jsp?topic=%2Forg.eclipse.jubula.client.ua.help%2Fcontent%2Fhtml%2FdeveloperManual%2FclientAPI%2Fch02.html&cp%3D56_1

private AUTAgent m_agent;
private AUT aut;
AUTConfiguration autconfiguration = null;
AUTIdentifier autidentifier = null;


@BeforeClass
public void loadObjectMapping() throws Exception{


}

@Before
public void setUp()
{
m_agent= MakeR.createAUTAgent("localhost",60000);
m_agent.connect();
final String aut_id="RATPOC1";
final String ratExepath="C:\\Users\\nk\\Desktop\\";
final String ratexe="Response Toolkit.exe";
autconfiguration = new
SwingAUTConfiguration("Autidentifier", aut_id, ratexe, ratExepath,new String[] {""});
autidentifier = m_agent.startAUT(autconfiguration);
aut = m_agent.getAUT(autidentifier, SwingComponents.getToolkitInformation());
aut.connect();
}

[Updated on: Fri, 21 August 2020 07:10]

Report message to a moderator

Previous Topic:Test Reports in Jubula
Next Topic:How to press any key by Jubula's Java API
Goto Forum:
  


Current Time: Sun Jun 20 07:39:22 GMT 2021

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

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

Back to the top