{"id":242,"date":"2022-08-30T14:58:05","date_gmt":"2022-08-30T14:58:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/08\/31\/problem-about-testng-record-and-share-programming-errors\/"},"modified":"2022-08-30T14:58:05","modified_gmt":"2022-08-30T14:58:05","slug":"problem-about-testng-record-and-share-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-testng-record-and-share-programming-errors\/","title":{"rendered":"problem about testng-Record and share programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/16bb8faf763fd7978ef13fd9a150fda9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ntester<br \/>\nselenium testng<br \/>\nI get the below error in console and in report as well. But I don&#8217;t want this error trace to be displayed in report. How to suppress this error that is getting displayed in report? I am calling this function Library.Test() with a custom fail message: My code is: AssertJUnit.assertTrue(&#8220;FAIL: Please check the logs in report. Either there are no more than 10 records and there is a problem in application.&#8221;,Library.Test()); My AssertionError trace as follows: FAILED: TC java.lang.AssertionError: FAIL: Please check the logs in report. Either there a<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9ccd3a2c422f40ad6c7c2f93d3afe5b6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPavel Janicek<br \/>\njava selenium testng<br \/>\nI am running a selenium Web Driver Project. I am taking an excel sheet as an input for my test case. I am getting the following errororg.testng.TestNGException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence. at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:340) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:88) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175) Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source) at com.s<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4043794ef7f6e43314432f2177407942?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLidia<br \/>\ntestng gradle reportng<br \/>\nHas anybody here successfully configured reportng with gradle 1.0-milestone-9? I downloaded a Selenium 2, TestNG sample developed with Gradle (from https:\/\/github.com\/iainrose\/page-objects). It works nicely (after adding System Properties to build.gradle for switching browsers) and now I would like to add ReportNG to the mix. I tried the following:dependencies { compile &#8220;org.seleniumhq.selenium:selenium-java:2.15.0&#8221; compile &#8220;org.testng:testng:6.3.1&#8221; compile &#8220;org.uncommons:reportng:1.1.2&#8221; }It produces the following error:Could not resolve all dependencies for configuration &#8216;:compile&#8217;. &gt; Artifact &#8216;org.testng:testng:6.3.1:jdk15@ja<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/77af01fe887432e49729c5728ffb08b2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDmitry Borovoy<br \/>\njava maven activemq testng fatal-error<br \/>\nI have java 1.6, maven 2, activeMQ 5.5 and functional tests with testng. When I launch it in Idea then OK, but when I try to launch them with maven from console then process suspends after trying to send message via activeMQ and after some time crashes with the following error in log:# # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006d92f7a6, pid=5716, tid=7000 # # JRE version: 6.0_27-b07 # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.2-b06 mixed mode windows-amd64 compressed oops) # Problematic frame: # V [jvm.dll+0x9f7a6] # # If you would like to submit a bug report, please visit: # http:\/\/java.sun.com\/webapps\/bugreport\/crash.jsp #&#8212;&#8212;&#8212;&#8212;&#8212; T H R E A D &#8212;&#8212;&#8212;&#8212;&#8212;Current thread (0x00000000072b6000): JavaThread &#8220;ActiveMQ Transport: tcp:\/\/localhost\/127.0.0.1:61616&#8243; [_thread_in_vm, id=7000, stack(0x000000000d630000,0x000000000d730000)]siginfo: ExceptionCode=0xc0000005, reading address 0x000000000bb02d5cRegisters: RAX=0x000000000bae2a70, RBX=0x00000000bd6a85f2, RCX=0x0000000000008000, RDX=0x00000000000080bb RSP=0x000000000d72f250, RBP=0x0000000000000002, RSI=0x0000000000000003, RDI=0x00000000000000a5 R8 =0x000000000bae2e00, R9 =0x000000006d890000, R10=0x000000000d72f430, R11=0x000000000000000c R12=0x0000000000000000, R13=0x00000000bd6a8600, R14=0x0000000000000000, R15=0x0000000000000006 RIP=0x000000006d92f7a6, EFLAGS=0x0000000000010206Top of Stack: (sp=0x000000000d72f250) 0x000000000d72f250: 0000000000000000 000000006d95294d 0x000000000d72f260: 000000000baf3800 000000006daea964 0x000000000d72f270: 00000000004ebb80 00000000072b6000 0x000000000d72f280: 0000000000000000 000000006d92f49c 0x000000000d72f290: 00000000bd6a85f0 000000006da7bc86 0x000000000d72f2a0: 0000000000000010 000000000bae2a70 0x000000000d72f2b0: 0000000000000000 00000000072b6000 0x000000000d72f2c0: 000000000d72f430 0000000000000020 0x000000000d72f2d0: 0000000000000014 000000006d92fec2 0x000000000d72f2e0: 000000000d72f430 0000000008cf3200 0x000000000d72f2f0: 0000000000000001 0000000000000001 0x000000000d72f300: 0000000000000001 00000000072b6000 0x000000000d72f310: 00000000072b6000 000000006d95294d 0x000000000d72f320: 000000000d72f398 00000000004e9920 0x000000000d72f330: 0000000000000000 000007fefdf7132c 0x000000000d72f340: 0000000000000000 000000006d9a7a6f Instructions: (pc=0x000000006d92f7a6) 0x000000006d92f786: 0f b7 44 1c 01 0f b6 c8 66 89 44 24 20 0f b6 44 0x000000006d92f796: 24 21 66 c1 e1 08 0f b7 d1 48 0b d0 49 8b 42 20 0x000000006d92f7a6: 0f b7 0c 90 66 41 89 4c 1c 01 e9 2a 01 00 00 45 0x000000006d92f7b6: 8d 46 01 48 8b d3 49 8b ca e8 8c f9 ff ff 44 8a Register to memory mapping:RAX=0x000000000bae2a70 is an unknown value RBX=0x00000000bd6a85f2 is an oop {constMethod} &#8211; klass: {other class}- method: 0x00000000bd6a8600 {method} &#8221; &#8216;(Ljava\/lang\/String;)V&#8217; in &#8216;java\/io\/EOFException&#8217;- exceptions: 0x00000000bae01ef8 bci_from(00000000BD6A85F2) = 2; print_codes(): RCX=0x0000000000008000 is an unknown value RDX=0x00000000000080bb is an unknown value RSP=0x000000000d72f250 is pointing into the stack for thread: 0x00000000072b6000 RBP=0x0000000000000002 is an unknown value RSI=0x0000000000000003 is an unknown value RDI=0x00000000000000a5 is an unknown value R8 =0x000000000bae2e00 is an unknown value R9 =0x000000006d890000 is an unknown value R10=0x000000000d72f430 is pointing into the stack for thread: 0x00000000072b6000 R11=0x000000000000000c is an unknown value R12=0x0000000000000000 is an unknown value R13=0x00000000bd6a8600 is an oop {method} &#8211; klass: {other class} R14=0x0000000000000000 is an unknown value R15=0x0000000000000006 is an unknown valueStack: [0x000000000d630000,0x000000000d730000], sp=0x000000000d72f250, free space=1020k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [jvm.dll+0x9f7a6]Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j java.io.DataInputStream.readInt()I+44 j org.apache.activemq.openwire.OpenWireFormat.unmarshal(Ljava\/io\/DataInput;)Ljava\/lang\/Object;+10 j org.apache.activemq.transport.tcp.TcpTransport.readCommand()Ljava\/lang\/Object;+8 j org.apache.activemq.transport.tcp.TcpTransport.doRun()V+1 j org.apache.activemq.transport.tcp.TcpTransport.run()V+47 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub&#8212;&#8212;&#8212;&#8212;&#8212; P R O C E S S &#8212;&#8212;&#8212;&#8212;&#8212;Java Threads: ( =&gt; current thread )0x000000000a457800 JavaThread &#8220;InactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@88821c2&#8221; daemon [_thread_blocked, id=5024, stack(0x0000000011100000,0x0000000011200000)]0x000000000a456800 JavaThread &#8220;InactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@32417348&#8221; daemon [_thread_blocked, id=5852, stack(0x0000000010e00000,0x0000000010f00000)]0x000000000a456000 JavaThread &#8220;InactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@5ea39955&#8221; daemon [_thread_blocked, id=6460, stack(0x0000000010d00000,0x0000000010e00000)]0x000000000a452800 JavaThread &#8220;InactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@35c71452&#8221; daemon [_thread_blocked, id=7196, stack(0x0000000010900000,0x0000000010a00000)]0x000000000a453000 JavaThread &#8220;InactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@14b28d06&#8221; daemon [_thread_blocked, id=7096, stack(0x000000000b150000,0x000000000b250000)]0x000000000a454800 JavaThread<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/53f606d2fb568594ab1a2ad34e93ed66?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ntwsel<br \/>\neclipse testng<br \/>\nI had my project in perfect condition and was able to right click on my testng.xml file and Run-As TestNG Suite with no errors.Now after upgrading both eclipse and testng via Eclipse&gt;Help&gt;Check for Updates, I get a whole bunch of<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e4f71bbfbdfe4588ea8e84ad29b5828f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTarken<br \/>\njava webdriver testng selenium-grid selenium-chromedriver<br \/>\nI am currently running my tests with RemoteWebDriver with Selenium Grid 2 through TestNG suites. This works fine with Firefox and IE. Now I added Chrome and the tests run fine, but I always get an Exception when calling driver.quit() after all tests of a suite (works fine for FF and IE).The Exception looks like this:Error communicating with the remote browser. It may have died. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.jav<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/85f19d1d09a8b76d6caf2064ea4816e1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRipon Al Wasim<br \/>\njava command-line testng command-prompt<br \/>\nHow exactly do I run a .java TestNG project from a DOS command line?I have read through the TestNG documentation, and tried the following to no avail: C:\\projectfred&gt; java org.testng.TestNG testng.xml &#8230; with the following testng.xml file in my project:<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-08-31 06:06:15. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>tester selenium testng I get the below error in console and in report as well. But I don&#8217;t want this error trace to be displayed in report. How to suppress this error that is getting displayed in report? I am calling this function Library.Test() with a custom fail message: My code is: AssertJUnit.assertTrue(&#8220;FAIL: Please check [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-242","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}