>java -version
java version "1.8.0_144"
git clone https://github.com/open-co-de/
tutorial-jubula-api.git
o.e.j.e.a.j.j.e.osgi/ide/api-OSGi.target
AUT-Agent
AUT
CAPs
Object Mapping
AUTAgent agent = MakeR.createAUTAgent("hostname", 4711);
agent.connect();
[...]
agent.startAUT(...);
agent.stopAUT(...);
[...]
agent.disconnect();
launch/Exercise01.launch
right-click -> Run As -> JUnit
AUTConfiguration config = new JavaFXAUTConfiguration(
"arbitrary name for AUT",
"AUT-ID",
"command",
"workingDirectory",
new String[]{"arg0", "arg1"});
[...]
AUTAgent agent.startAUT(config);
[...]
public static AUTConfiguration myAUTStartConfig() {
return new JavaFXAUTConfiguration(
"My first AUT",
"Ensemble8_AUT_ID",
"java",
"/pathToEnsembleJAR/",
new String[] { "-jar", "Ensemble8.jar" }
);
}
// independent from AUTs UI state
Application app = JavafxComponents.createStage();
CAP waitForWindow = app.waitForWindow(...);
[...]
// execution in AUTs context
Result result = m_aut.execute(waitForWindow, ...);
[...]
required for nearly all CAPs
Application and MenuBar use "default mapping"
represents GUI widget instance in source code
enter username and password:
"demo/demo"
and login afterwards