Menu

Error while adding a test to a scenario

Help
2009-02-26
2012-09-15
  • krishnakishore B

    Iam getting the error while i add a test to scenario.it say"
    Failed adding a Test to scenario."the common reason for this is a problem in creating an instance of the test class"

    java.lang.NoSuchMethodException: com.calsoft.cli.tests.NASIPv6Tests.<init>(java.lang.String)
    at java.lang.Class.getConstructor0(Class.java:2706)
    at java.lang.Class.getConstructor(Class.java:1657)
    at jsystem.framework.scenario.RunnerTest.loadTestClass(RunnerTest.java:720)
    at jsystem.framework.scenario.RunnerTest.load(RunnerTest.java:629)
    at jsystem.framework.scenario.JTestContainer.addTest(JTestContainer.java:335)
    at jsystem.framework.scenario.MultipleScenarioOps.addTestToScenario(MultipleScenarioOps.java:281)
    at jsystem.treeui.teststable.TestsTableController.addTests(TestsTableController.java:1767)
    at jsystem.treeui.TestTreeView.addTests(TestTreeView.java:830)
    at jsystem.treeui.tree.TestsTreeController$1.run(TestsTreeController.java:385)

     
    • krishnakishore B

      Yes Golan!! Thanks a lot!!

      Cheers!!

       
    • Golan Derazon

      Golan Derazon - 2009-02-26

      Like the error indicates an exception is thrown in the initiation of the class.
      To discover what the problem is , create a new java class with a main method,
      in the main method try to create a new instance of your test class i.e. Test t = new MyTest()
      when running the class, an exception will be thrown and you will be able to understand what the
      problem is.

       

Log in to post a comment.