problem about testng-Record and share programming errors


  • tester
    selenium testng
    I get the below error in console and in report as well. But I don’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(“FAIL: Please check the logs in report. Either there are no more than 10 records and there is a problem in application.”,Library.Test()); My AssertionError trace as follows: FAILED: TC java.lang.AssertionError: FAIL: Please check the logs in report. Either there a

  • Pavel Janicek
    java selenium testng
    I 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

  • Lidia
    testng gradle reportng
    Has 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 “org.seleniumhq.selenium:selenium-java:2.15.0” compile “org.testng:testng:6.3.1” compile “org.uncommons:reportng:1.1.2” }It produces the following error:Could not resolve all dependencies for configuration ‘:compile’. > Artifact ‘org.testng:testng:6.3.1:jdk15@ja

  • Dmitry Borovoy
    java maven activemq testng fatal-error
    I 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 #————— T H R E A D —————Current thread (0x00000000072b6000): JavaThread “ActiveMQ Transport: tcp://localhost/127.0.0.1:61616″ [_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} – klass: {other class}- method: 0x00000000bd6a8600 {method} ” ‘(Ljava/lang/String;)V’ in ‘java/io/EOFException’- 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} – 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————— P R O C E S S —————Java Threads: ( => current thread )0x000000000a457800 JavaThread “InactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@88821c2” daemon [_thread_blocked, id=5024, stack(0x0000000011100000,0x0000000011200000)]0x000000000a456800 JavaThread “InactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@32417348” daemon [_thread_blocked, id=5852, stack(0x0000000010e00000,0x0000000010f00000)]0x000000000a456000 JavaThread “InactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@5ea39955” daemon [_thread_blocked, id=6460, stack(0x0000000010d00000,0x0000000010e00000)]0x000000000a452800 JavaThread “InactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@35c71452” daemon [_thread_blocked, id=7196, stack(0x0000000010900000,0x0000000010a00000)]0x000000000a453000 JavaThread “InactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@14b28d06” daemon [_thread_blocked, id=7096, stack(0x000000000b150000,0x000000000b250000)]0x000000000a454800 JavaThread

  • twsel
    eclipse testng
    I 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>Help>Check for Updates, I get a whole bunch of

  • Tarken
    java webdriver testng selenium-grid selenium-chromedriver
    I 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

  • Ripon Al Wasim
    java command-line testng command-prompt
    How 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> java org.testng.TestNG testng.xml … with the following testng.xml file in my project:

Originally posted 2013-08-31 06:06:15.