Examples of TestCaseStep


Examples of br.eti.kinoshita.testlinkjavaapi.model.TestCaseStep

             * for(TestCaseStep step : testCaseSteps) steps.add(getTestCaseStepMap(step));
             */

            // Why uses an iterator over a foreach?
            for (Iterator<TestCaseStep> iterator = testCaseSteps.iterator(); iterator.hasNext();) {
                TestCaseStep testCaseStep = iterator.next();
                Map<String, Object> testCaseStepMap = getTestCaseStepMap(testCaseStep, true);
                steps.add(testCaseStepMap);
            }
        }

View Full Code Here

Examples of br.eti.kinoshita.testlinkjavaapi.model.TestCaseStep

             * for (TestCaseStep step : testCaseSteps) steps.add(step.getId());
             */

            // Why uses an iterator over a foreach?
            for (Iterator<TestCaseStep> iterator = testCaseSteps.iterator(); iterator.hasNext();) {
                TestCaseStep testCaseStep = iterator.next();
                steps.add(testCaseStep.getNumber());
            }
        }

        return steps;
    }
View Full Code Here

Examples of br.eti.kinoshita.testlinkjavaapi.model.TestCaseStep

    /**
     * @param map Case Step map
     * @return Test Case
     */
    public static TestCaseStep getTestCaseStep(Map<String, Object> map) {
        TestCaseStep step = null;
        if (map != null && map.size() > 0) {
            Object o = map.get(TestLinkResponseParams.ID.toString());
            if (o != null) {
                Integer id = Integer.parseInt(o.toString());

                if (id > 0) {
                    step = new TestCaseStep();
                    step.setId(id);
                    step.setActions(getString(map, TestLinkResponseParams.ACTIONS.toString()));
                    step.setActive(getBoolean(map, TestLinkResponseParams.ACTIVE.toString()));
                    Integer executionTypeValue = getInteger(map, TestLinkResponseParams.EXECUTION_TYPE.toString());
                    ExecutionType execution = ExecutionType.getExecutionType(executionTypeValue);
                    step.setExecutionType(execution);
                    step.setExpectedResults(getString(map, TestLinkResponseParams.EXPECTED_RESULTS.toString()));
                    step.setNumber(getInteger(map, TestLinkResponseParams.STEP_NUMBER.toString()));
                }

            }
        }
        return step;
View Full Code Here

Examples of br.eti.kinoshita.testlinkjavaapi.model.TestCaseStep

                    // }
                    Object[] stepsArray = (Object[]) getArray(map, TestLinkResponseParams.STEPS.toString());
                    if (stepsArray != null && stepsArray.length > 0) {
                        for (Object stepObject : stepsArray) {
                            Map<String, Object> stepMap = (Map<String, Object>) stepObject;
                            TestCaseStep step = Util.getTestCaseStep(stepMap);
                            testCase.getSteps().add(step);
                        }
                    }
                }
View Full Code Here

Examples of br.eti.kinoshita.testlinkjavaapi.model.TestCaseStep

      for (
        Iterator<TestCaseStep> iterator = testCaseSteps.iterator();
        iterator.hasNext();
        )
      {
        TestCaseStep testCaseStep = iterator.next();
        Map<String, Object> testCaseStepMap = getTestCaseStepMap(testCaseStep);
        steps.add( testCaseStepMap );
      }
    }
    executionData.put(TestLinkParams.steps.toString(), steps);
View Full Code Here

Examples of br.eti.kinoshita.testlinkjavaapi.model.TestCaseStep

   * @param Test Case Step map
   * @return Test Case
   */
  public static TestCaseStep getTestCaseStep( Map<String, Object> map )
  {
    TestCaseStep step = null;
    if ( map != null && map.size() > 0 )
    {
      Object o = map.get( TestLinkResponseParams.id.toString());
      if ( o != null )
      {
        Integer id = Integer.parseInt( o.toString() );
       
        if ( id > 0 )
        {
          step = new TestCaseStep();
          step.setId( id );
          step.setActions( getString(map, TestLinkResponseParams.actions.toString()));
          step.setActive( getBoolean(map, TestLinkResponseParams.active.toString()) );
          Integer executionTypeValue = getInteger( map, TestLinkResponseParams.executionType.toString() );
          ExecutionType execution = ExecutionType.getExecutionType( executionTypeValue );
          step.setExecutionType( execution );
          step.setExpectedResults( getString(map, TestLinkResponseParams.expectedResults.toString()) );
          step.setNumber( getInteger(map, TestLinkResponseParams.stepNumber.toString()));
        }
       
      }     
    }
    return step;
View Full Code Here

Examples of br.eti.kinoshita.testlinkjavaapi.model.TestCaseStep

          if ( stepsArray != null && stepsArray.length > 0 )
          {
            for( Object stepObject : stepsArray )
            {
              Map<String, Object> stepMap = (Map<String, Object>)stepObject;
              TestCaseStep step = Util.getTestCaseStep(stepMap);
              testCase.getSteps().add( step );
            }
          }
        }
       
View Full Code Here

Examples of br.eti.kinoshita.testlinkjavaapi.model.TestCaseStep

      for (
        Iterator<TestCaseStep> iterator = testCaseSteps.iterator();
        iterator.hasNext();
        )
      {
        TestCaseStep testCaseStep = iterator.next();
        Map<String, Object> testCaseStepMap = getTestCaseStepMap(testCaseStep);
        steps.add( testCaseStepMap );
      }
    }
    executionData.put(TestLinkParams.steps.toString(), steps);
View Full Code Here

Examples of br.eti.kinoshita.testlinkjavaapi.model.TestCaseStep

      for (
        Iterator<TestCaseStep> iterator = testCaseSteps.iterator();
        iterator.hasNext();
        )
      {
        TestCaseStep testCaseStep = iterator.next();
        Map<String, Object> testCaseStepMap = getTestCaseStepMap(testCaseStep, true);
        steps.add( testCaseStepMap );
      }
    }
   
View Full Code Here

Examples of br.eti.kinoshita.testlinkjavaapi.model.TestCaseStep

      for (
        Iterator<TestCaseStep> iterator = testCaseSteps.iterator();
        iterator.hasNext();
        )
      {
        TestCaseStep testCaseStep = iterator.next();
        steps.add( testCaseStep.getNumber() );
      }
    }
   
    return steps;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.