I'm setting up a TestNG execution with custom report (I do write a specific custom test log data on a text file).
The thing is, when I get an error or some other coditions, I get a huge load of execution exceptions log in eclipse console, and I just need to finish the test case just clean and neat (and I do handle errors with screenshots and some data for user-oriented log) and move to the next one if exists.
I did tried 'throw new SkipExceptions', Sistem.quit(), and some other command with no success.
FAILED: Caso_0001
java.lang.AssertionError: null
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.fail(Assert.java:101)
at Core.Selenium.AccionesWeb.BuscarElemento(AccionesWeb.java:203)
at Core.Selenium.AccionesWeb.Click(AccionesWeb.java:81)
at Negocio.Web.BusquedaGoogle.RealizarBusquedaGoogle(BusquedaGoogle.java:37)
at Pruebas.Web.Regresion.Caso_0001(Regresion.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1123)
at org.testng.TestNG.run(TestNG.java:1031)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
I just wanna quit the test with making no trouble to the console or trace and I don't want to use TestNG reports, just quit or finish the test when defined conditions are met...
Or, in effect, if it possible to clean console log and get rid of 'at line','at line','at line','at line','at line','at line'...
Btw, I do have a boolean I wish to use to activate full or user-level log.
THANKS IN ADVANCE!!!
Aucun commentaire:
Enregistrer un commentaire