Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » java.lang.NoClassDefFoundError: org/eclipse/jubula/client/launch/AUTConfiguration(Not able to execute sample code with jubla .I am using testNg and agent is started)
java.lang.NoClassDefFoundError: org/eclipse/jubula/client/launch/AUTConfiguration [message #1854817] Tue, 13 September 2022 05:09
Sai Kalyan is currently offline Sai KalyanFriend
Messages: 2
Registered: September 2022
Junior Member
import java.util.Locale;

import java.nio.file.FileSystems;
import java.util.ArrayList;
import java.util.List;

import org.eclipse.jubula.autagent.Embedded;
import org.eclipse.jubula.client.AUT;
import org.eclipse.jubula.client.AUTAgent;
import org.eclipse.jubula.client.MakeR;
import org.eclipse.jubula.client.Result;
import org.eclipse.jubula.client.exceptions.CheckFailedException;
import org.eclipse.jubula.client.launch.AUTConfiguration;
import org.eclipse.jubula.toolkit.base.components.GraphicsComponent;
import org.eclipse.jubula.toolkit.concrete.components.ButtonComponent;
import org.eclipse.jubula.toolkit.concrete.components.TextComponent;
import org.eclipse.jubula.toolkit.concrete.components.TextInputComponent;
import org.eclipse.jubula.toolkit.enums.ValueSets.InteractionMode;
import org.eclipse.jubula.toolkit.enums.ValueSets.Operator;
import org.eclipse.jubula.toolkit.swing.SwingComponents;
import org.eclipse.jubula.toolkit.swing.config.SwingAUTConfiguration;
import org.eclipse.jubula.tools.AUTIdentifier;
import org.eclipse.jubula.tools.ComponentIdentifier;
import org.testng.annotations.Test;




/** @author BREDEX GmbH */
public class testSimpleAdder {
/** the value1 */
private static TextInputComponent value1;
/** the value2 */
private static TextInputComponent value2;
/** the button */
private static GraphicsComponent button;
/** the result */
private static TextComponent result;

/** the AUT */
private AUT m_aut;
static AUTAgent autagent = null;
static AUTConfiguration autconfiguration = null;
static AUTIdentifier autidentifier = null;
static AUT aut = null;
public static final int AUT_AGENT_PORT = 60000;

/** global prepare */
@Test
// public static void loadObjectMapping() throws Exception {
public static void testcalci() {
try {
autagent = MakeR.createAUTAgent("localhost",60000);
autagent.connect();
autconfiguration = new
SwingAUTConfiguration("Autidentifier", "Autidentifier","SimpleAdder.bat", "C:\\Program Files\\jubula_8.8.1.010\\examples\\AUTs\\SimpleAdder\\swing",null);
autidentifier = autagent.startAUT(autconfiguration);
aut = autagent.getAUT(autidentifier, SwingComponents.getToolkitInformation());
aut.connect();

TextInputComponent input1 = SwingComponents.createJTextComponent(OM.JTextComponent__147411677_);
TextInputComponent input2 = SwingComponents.createJTextComponent(OM.JTextComponent__147411677_);
ButtonComponent equals = SwingComponents.createAbstractButton(OM.AbstractButton__19970382_);
//TextComponent result = SwingComponents.createJLabel(OM.txtResult);
aut.execute(input1.replaceText("10"), "jubula");
aut.execute(input2.replaceText("15"), "jubula");
aut.execute(equals.click(1,InteractionMode.primary), "jubula");
// aut.execute(result.checkText("25",Operator.equals), "jubula");
}
catch(Exception e) {


}

}
}
  • Attachment: Capture.PNG
    (Size: 83.54KB, Downloaded 48 times)
Previous Topic:Javafx ComboBox Selection slow
Next Topic:Stuck after selecting value from combobox
Goto Forum:
  


Current Time: Tue Jul 16 07:24:55 GMT 2024

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

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

Back to the top