com.saucelabs.rdc.helper.RdcTestParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rdc-appium-junit4 Show documentation
Show all versions of rdc-appium-junit4 Show documentation
Library for running Appium test suites and updating test status on Sauce Labs Real Device Cloud (RDC)
The newest version!
package com.saucelabs.rdc.helper;
import com.saucelabs.rdc.model.RdcTest;
import org.junit.runner.Description;
public class RdcTestParser {
public static RdcTest from(Description testDescription) {
String className = testDescription.getClassName();
String[] descriptionName = testDescription.getMethodName().split(" ");
String methodName = descriptionName[0];
String deviceId = descriptionName[1];
String dataCenterId = descriptionName[2];
return new RdcTest(className, methodName, deviceId, dataCenterId);
}
}