Hi there! Anybody has insights on how to call a custom test object (created at run-time in one test case) in another test case?
Here’s the test object I’ve created in a test case:
List <TestObjectProperty> properties = new ArrayList<TestObjectProperty>();
properties.add(new TestObjectProperty('xpath', ConditionType.EQUALS, "(//button[@type='button'])[21]"));
properties.add(new TestObjectProperty('type', ConditionType.EQUALS, 'button'));
properties.add(new TestObjectProperty('text', ConditionType.EQUALS, ' Sign In'));
customSignIn = new TestObject("customSignInButton");
customSignIn.setProperties(properties);
CustomKeywords.'com.nb.utilities.CommonUtilities.clickUsingJS'(customSignIn, 30);
My goal is to call customSignIn object in another Test Case. Is that possible?
The only close solution I found is creating a custom keyword:
https://docs.katalon.com/katalon-studio/docs/creation-of-test-object-in-object-repository-in-runtime.html
Are there any possible solutions? Thanks!