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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
Yes Golan!! Thanks a lot!!
Cheers!!
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.