Package net.sf.parteg.base.testcasegraph.testgeneration

Examples of net.sf.parteg.base.testcasegraph.testgeneration.TestCaseGeneratorRunner


  @Override
  public TestCase createTestCase(TestCaseGraphHelper in_oTCGHelper)
  {
    TCGNode oNode = (TCGNode)getElement();

    TestCaseGeneratorRunner oRunner = new TestCaseGeneratorRunner(in_oTCGHelper);
    //oRunner.getRuntimeState().setActiveNode(oNode); // delayed until postfix determination
    oRunner.searchBackwardsFromNodeWithEventConditionConjunction(
        oNode, getEventToBeCalled(), getDNFToBeSatisfied(), true);
    return oRunner.getCreatedTestCase();

//    if(TCGNodeHelperClass.nodeHasNoSubNodes(oNode)) {
//      TestCaseGeneratorRunner oRunner = new TestCaseGeneratorRunner(in_oTCGHelper);
//      //oRunner.getRuntimeState().setActiveNode(oNode); // delayed until postfix determination
//      oRunner.searchBackwardsFromNodeWithEventConditionConjunction(
View Full Code Here


  public TestCase createTestCase(TestCaseGraphHelper in_oTCGHelper)
  {
    TCGNode oNode = (TCGNode)getElement();
    // if composite state: try test generation for each sub state
    if(TCGNodeHelperClass.nodeHasNoSubNodes(oNode)) {
      TestCaseGeneratorRunner oRunner = new TestCaseGeneratorRunner(in_oTCGHelper);
      // initialize the runtime state
      oRunner.searchBackwardsFromNodeWithEventConditionConjunction(
          oNode, null, null, false);
//      oRunner.getRuntimeState().setActiveNode(oNode);
//      oRunner.searchBackwardsFromNode(oNode);
      return oRunner.getCreatedTestCase();
    }
    else
      return createTestCaseForSubNode(in_oTCGHelper,oNode);
  }
View Full Code Here

 
  public TestCase createTestCaseForSubNode(TestCaseGraphHelper in_oTCGHelper,TCGNode oNode)
  {
    if(TCGNodeHelperClass.nodeHasNoSubNodes(oNode))
    {
      TestCaseGeneratorRunner oRunner =
        new TestCaseGeneratorRunner(in_oTCGHelper);
      oRunner.searchBackwardsFromNodeWithEventConditionConjunction(
          oNode, null, null, false);
      return oRunner.getCreatedTestCase();
    }
    else
    {
      List<TCGNode> colSubNodes = TCGNodeHelperClass.getAllSubNodes(oNode);
      colSubNodes = TCGNodeHelperClass.prioritizeNodeList(colSubNodes, true);
View Full Code Here

TOP

Related Classes of net.sf.parteg.base.testcasegraph.testgeneration.TestCaseGeneratorRunner

Copyright © 2018 www.massapicom. 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.