本文整理了Java中com.qaprosoft.zafira.client.ZafiraClient.createTestSuite()
方法的一些代码示例,展示了ZafiraClient.createTestSuite()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZafiraClient.createTestSuite()
方法的具体详情如下:
包路径:com.qaprosoft.zafira.client.ZafiraClient
类名称:ZafiraClient
方法名:createTestSuite
暂无
代码示例来源:origin: qaprosoft/zafira
@Override
public TestSuiteType register()
{
this.testSuiteType = zafiraClient.createTestSuite(this.testSuiteType).getObject();
return this.testSuiteType;
}
代码示例来源:origin: qaprosoft/zafira
/**
* Registers test suite in Zafira, it may be a new one or existing returned by service.
*
* @param suiteName - test suite name
* @param fileName - TestNG xml file name
* @param userId - suite owner user id
* @return created test suite
*/
public TestSuiteType registerTestSuite(String suiteName, String fileName, Long userId)
{
TestSuiteType testSuite = new TestSuiteType(suiteName, fileName, userId);
String testSuiteDetails = "suiteName: %s, fileName: %s, userId: %s";
LOGGER.debug("Test Suite details for registration:" + String.format(testSuiteDetails, suiteName, fileName, userId));
Response<TestSuiteType> response = createTestSuite(testSuite);
testSuite = response.getObject();
if (testSuite == null)
{
throw new RuntimeException("Unable to register test suite '" + suiteName + "' for zafira service: " + serviceURL);
}
else
{
LOGGER.debug("Registered test suite details:" + String.format(testSuiteDetails, testSuite.getName(), testSuite.getFileName(), testSuite.getUserId()));
}
return testSuite;
}
代码示例来源:origin: com.qaprosoft/zafira-client
/**
* Registers test suite in Zafira, it may be a new one or existing returned by service.
*
* @param suiteName - test suite name
* @param fileName - TestNG xml file name
* @param userId - suite owner user id
* @return created test suite
*/
public TestSuiteType registerTestSuite(String suiteName, String fileName, Long userId)
{
TestSuiteType testSuite = new TestSuiteType(suiteName, fileName, userId);
String testSuiteDetails = "suiteName: %s, fileName: %s, userId: %s";
LOGGER.debug("Test Suite details for registration:" + String.format(testSuiteDetails, suiteName, fileName, userId));
Response<TestSuiteType> response = createTestSuite(testSuite);
testSuite = response.getObject();
if (testSuite == null)
{
throw new RuntimeException("Unable to register test suite '" + suiteName + "' for zafira service: " + serviceURL);
}
else
{
LOGGER.debug("Registered test suite details:" + String.format(testSuiteDetails, testSuite.getName(), testSuite.getFileName(), testSuite.getUserId()));
}
return testSuite;
}
内容来源于网络,如有侵权,请联系作者删除!