All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.saucelabs.rdc.helper.RdcTestParser Maven / Gradle / Ivy

Go to download

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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy