use of com.testsigma.automator.actions.mobile.android.verify.MobileNativeVerifyCheckedAction in project testsigma by testsigmahq.
the class CheckboxElementStatusAction method execute.
@Override
public void execute() throws Exception {
String status = getTestData();
switch(status) {
case ActionConstants.CHECKED:
MobileNativeVerifyCheckedAction checked = (MobileNativeVerifyCheckedAction) this.initializeChildSnippet(MobileNativeVerifyCheckedAction.class);
checked.execute();
this.setSuccessMessage(checked.getSuccessMessage());
break;
case ActionConstants.UN_CHECKED:
MobileNativeVerifyUnCheckedAction unChecked = (MobileNativeVerifyUnCheckedAction) this.initializeChildSnippet(MobileNativeVerifyUnCheckedAction.class);
unChecked.execute();
this.setSuccessMessage(unChecked.getSuccessMessage());
break;
default:
setErrorMessage("Unable to Perform Verify Action due to error at test data");
throw new AutomatorException("Unable to Perform Verify Action due to error at test data");
}
}
Aggregations