本文整理了Java中com.qaprosoft.zafira.client.ZafiraClient.createTestCase()
方法的一些代码示例,展示了ZafiraClient.createTestCase()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZafiraClient.createTestCase()
方法的具体详情如下:
包路径:com.qaprosoft.zafira.client.ZafiraClient
类名称:ZafiraClient
方法名:createTestCase
暂无
代码示例来源:origin: com.qaprosoft/zafira-client
/**
* Registers test case in Zafira, it may be a new one or existing returned by service.
*
* @param suiteId - test suite id
* @param primaryOwnerId - primary owner user id
* @param secondaryOwnerId - secondary owner user id
* @param testClass - test class name
* @param testMethod - test method name
* @return registered test case
*/
public TestCaseType registerTestCase(Long suiteId, Long primaryOwnerId, Long secondaryOwnerId, String testClass, String testMethod)
{
TestCaseType testCase = new TestCaseType(testClass, testMethod, "", suiteId, primaryOwnerId, secondaryOwnerId);
String testCaseDetails = "testClass: %s, testMethod: %s, info: %s, testSuiteId: %d, primaryOwnerId: %d, secondaryOwnerId: %d";
LOGGER.debug("Test Case details for registration:" + String.format(testCaseDetails, testClass, testMethod, "", suiteId, primaryOwnerId, secondaryOwnerId));
Response<TestCaseType> response = createTestCase(testCase);
testCase = response.getObject();
if (testCase == null)
{
throw new RuntimeException("Unable to register test case '"
+ String.format(testCaseDetails, testClass, testMethod, "", suiteId, primaryOwnerId) + "' for zafira service: " + serviceURL);
}
else
{
LOGGER.debug("Registered test case details:" + String.format(testCaseDetails, testClass, testMethod, "", suiteId, primaryOwnerId, secondaryOwnerId));
}
return testCase;
}
代码示例来源:origin: qaprosoft/zafira
/**
* Registers test case in Zafira, it may be a new one or existing returned by service.
*
* @param suiteId - test suite id
* @param primaryOwnerId - primary owner user id
* @param secondaryOwnerId - secondary owner user id
* @param testClass - test class name
* @param testMethod - test method name
* @return registered test case
*/
public TestCaseType registerTestCase(Long suiteId, Long primaryOwnerId, Long secondaryOwnerId, String testClass, String testMethod)
{
TestCaseType testCase = new TestCaseType(testClass, testMethod, "", suiteId, primaryOwnerId, secondaryOwnerId);
String testCaseDetails = "testClass: %s, testMethod: %s, info: %s, testSuiteId: %d, primaryOwnerId: %d, secondaryOwnerId: %d";
LOGGER.debug("Test Case details for registration:" + String.format(testCaseDetails, testClass, testMethod, "", suiteId, primaryOwnerId, secondaryOwnerId));
Response<TestCaseType> response = createTestCase(testCase);
testCase = response.getObject();
if (testCase == null)
{
throw new RuntimeException("Unable to register test case '"
+ String.format(testCaseDetails, testClass, testMethod, "", suiteId, primaryOwnerId) + "' for zafira service: " + serviceURL);
}
else
{
LOGGER.debug("Registered test case details:" + String.format(testCaseDetails, testClass, testMethod, "", suiteId, primaryOwnerId, secondaryOwnerId));
}
return testCase;
}
代码示例来源:origin: qaprosoft/zafira
@Override
public TestCaseType register()
{
this.testCaseType.setTestSuiteId(testSuiteTypeBuilder.getCurrentInstance().getId());
this.testCaseType = zafiraClient.createTestCase(this.testCaseType).getObject();
return this.testCaseType;
}
内容来源于网络,如有侵权,请联系作者删除!