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

x33g5p2x  于2022-02-05 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(67)

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

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

相关文章