コード例 #1
0
  public static void startSuite() throws IOException {
    if (robotTestSuite == null) {
      final PythonAware pythonAware =
          new DefaultPythonProvider(Config.getParameter("atddengine.libraries-path"));

      final RobotSettings robotSettings = new RobotSettings();

      robotSettings.setOutputDir(
          new File(Config.getParameter("atddengine.report-path"), "quotation"));
      robotSettings.setLogName("InsuranceQuotation_Test-log");
      robotSettings.setOutputName("InsuranceQuotation_Test-output");
      robotSettings.setReportName("InsuranceQuotation_Test-report");

      final RobotTestSuiteFactory robotTestSuiteFactory =
          new PythonRobotTestSuiteFactory(pythonAware);

      robotTestSuite =
          robotTestSuiteFactory.parseTestSuite(
              robotSettings,
              new File(
                  "/opt/bamboo-agent/xml-data/build-dir/HYM-IA1-JOB1/source/financialacceleratorstorefrontatddtests/genresources/robottests/InsuranceQuotation_Test.txt"));
    }

    if (!robotTestSuite.isStarted()) {
      robotTestSuite.start();
    }
  }
コード例 #2
0
  @Test
  public void Test_Create_Travel_Insurance_Quotation() {
    modelService.detachAll();

    final String robotTestName = "Test_Create_Travel_Insurance_Quotation";

    final RobotTest robotTest = robotTestSuite.getRobotTest(robotTestName);

    currentRobotTest = robotTestSuite.getRobotTest(robotTestName);
    assertNotNull("Robot test: '" + robotTestName + "' not found", currentRobotTest);

    final RobotTestResult robotTestResult = robotTest.run();
    assertTrue(robotTestResult.getMessage(), robotTestResult.isSuccess());
  }
コード例 #3
0
 @AfterClass
 public static void tearDownSuite() {
   robotTestSuite.close();
 }