gpt4 book ai didi

com.qaprosoft.zafira.client.ZafiraClient.createTestCase()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 12:40:38 27 4
gpt4 key购买 nike

本文整理了Java中com.qaprosoft.zafira.client.ZafiraClient.createTestCase()方法的一些代码示例,展示了ZafiraClient.createTestCase()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZafiraClient.createTestCase()方法的具体详情如下:
包路径:com.qaprosoft.zafira.client.ZafiraClient
类名称:ZafiraClient
方法名:createTestCase

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

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com