Reputation: 239
Am running automation on terminal emulator IBM PCOMM application, framework consists , maven + leanft +cucumber+ java + junit , when i run the feature from runner file , i am able to execute the tests , but when i using maven command through command prompt , it is opening the application but not able to type anything
maven command:
mvn clean verify -Dcucumber.filter.tags="@Mainframe"
below is the command used for launch :
ModifiableSDKConfiguration sdkConfig = new ModifiableSDKConfiguration();
sdkConfig.setServerAddress(new URI("ws://localhost:5095"));
SDK.init(sdkConfig);
File file = new File(filePath);
java.awt.Desktop.getDesktop().open(file);
to insert text :
screen.describe(Field.class,
new FieldDescription.Builder().startPosition(row, col).isProtected(false).visible(true).build())
.setText(text);
screen.sync();
Leanft version : 14.53
Screen logic:
Window teWindow = Desktop.describe(Window.class, new WindowDescription.Builder().shortName(new RegExpProperty(".*")).build());
Screen screen = teWindow.describe(Screen.class, new ScreenDescription.Builder().label(new RegExpProperty(".*")).build());
Error:
com.hp.lft.sdk.ReplayObjectNotFoundException: Cannot find the "Terminal Emulators Field" object's parent "Terminal Emulators Window" (class TeWindow). Verify that parent properties match an object currently displayed in your application.
If i try opening application with LeanFT Terminal Emulator Technology , am getting below error :
com.hp.lft.sdk.GeneralLeanFtException: spawn UNKNOWN
at com.hp.lft.sdk.internal.GeneralExceptionFactory.createDefault(GeneralExceptionFactory.java:154)
at com.hp.lft.sdk.internal.GeneralExceptionFactory.createDefault(GeneralExceptionFactory.java:8)
at com.hp.lft.sdk.internal.CommunicationClientImpl.handleError(CommunicationClientImpl.java:224)
at com.hp.lft.sdk.internal.CommunicationClientImpl.send(CommunicationClientImpl.java:96)
at com.hp.lft.sdk.internal.AutLaunchHelper$1.invoke(AutLaunchHelper.java:80)
at com.hp.lft.sdk.internal.AutLaunchHelper$1.invoke(AutLaunchHelper.java:61)
at com.hp.lft.sdk.internal.TestObjectOperationWrapper.executeWithEvents(TestObjectOperationWrapper.java:120)
Upvotes: 0
Views: 1214