Error sending results after run a test

Wednesday, February 6, 2019
Avatar

I'm executing a sample test with testNG, but I got this error, so it doesn't send results to Spira.

 

 

[RemoteTestNG] detected TestNG version 6.14.3
Starting test run...

Test Failed
Test Failed
Stack Trace:
org.junit.Assert.fail(Assert.java:86) org.junit.Assert.assertTrue(Assert.java:41) org.junit.Assert.assertTrue(Assert.java:52) PruebaSpiraMaven.PruebaSpiraMaven.AppTest.testAdd(AppTest.java:39) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) org.testng.internal.Invoker.invokeMethod(Invoker.java:583) org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719) org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989) org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) org.testng.TestRunner.privateRun(TestRunner.java:648) org.testng.TestRunner.run(TestRunner.java:505) org.testng.SuiteRunner.runTest(SuiteRunner.java:455) org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) org.testng.SuiteRunner.run(SuiteRunner.java:364) org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) org.testng.TestNG.runSuitesLocally(TestNG.java:1137) org.testng.TestNG.runSuites(TestNG.java:1049) org.testng.TestNG.run(TestNG.java:1017) org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115) org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77) 
Matches SpiraTest test case id: TC22

Test run finished with 1 Failures.

Error sending results to SpiraTest server (Failed to access the WSDL at: http://localhost/SpiraTest/Login.aspx?ReturnUrl=%2fSpiraTest%2f3%2fTestCase%2fList.aspx/Services/v3_0/ImportExport.svc?WSDL. It failed with: 
    Invalid WSDL http://localhost/SpiraTest/Login.aspx?ReturnUrl=%2fSpiraTest%2f3%2fTestCase%2fList.aspx/Services/v3_0/ImportExport.svc?WSDL, expected {http://schemas.xmlsoap.org/wsdl/}definitions found html at (lineLine number = 3
Column number = 17
System Id = http://localhost/SpiraTest/Login.aspx?ReturnUrl=%2fSpiraTest%2f3%2fTestCase%2fList.aspx/Services/v3_0/ImportExport.svc?WSDL
Public Id = null
Location Uri= http://localhost/SpiraTest/Login.aspx?ReturnUrl=%2fSpiraTest%2f3%2fTestCase%2fList.aspx/Services/v3_0/ImportExport.svc?WSDL
CharacterOffset = 36
).)

0 test results were successfully transmitted to SpiraTest (1 errors) (0 not configured).

1 Replies
Wednesday, February 6, 2019
Avatar
inflectra.jimx
re: anagallardo03 Wednesday, February 6, 2019

I think you have the wrong URL to connect to SpiraTest.

http://localhost/SpiraTest/Login.aspx?ReturnUrl=%2fSpiraTest%2f3%2fTestCase%2fList.aspx/Services/v3_0/ImportExport.svc?WSDL

implies that you tried to use:

http://localhost/SpiraTest/3/TestCase/List.aspx

instead of just:

http://localhost/SpiraTest

Regards

Jim

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Wednesday, February 6, 2019
  • Last Reply: Wednesday, February 6, 2019
  • Replies: 1
  • Views: 9501