Forum Discussion

nimishbhuta's avatar
nimishbhuta
Frequent Contributor
7 years ago

ReadyAPI test is failing while running from TestComplete

Hello All, 

 

I am running ReadyAPI Test from Testcomplete by using command ReadyAPITest1.Test1.Execute(). It has started running but all the steps  are failing. But when I run just from ReadyAPI then it is running correctly. Below is the error message when I run the ReadyAPI test from TestComplete 

 

 

cmd.exe /C testrunner.bat -s"ToteCalc" -c"TC01-Single Direct Order" -r -j -a -f"C:\Users\nibh\AppData\Local\Temp\{DD4FA02C-6712-4C76-8B4D-932B67F03A46}" "C:\Project\ToteCalcProcess\ToteCalc\ReadyAPI1\ProjectXML\ToteCalc.xml" - No base packages specified - no classpath scanning will be done - Starting 'LifecycleManager@967677821' - Hibernate Validator 4.1.0.Final - Adding module 'com.smartbear.ready.cmd.CommandLineModule Configuring log4j from [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\soapui-log4j.xml] 14:50:26,600 INFO [license] ReadyAPI 2.3.0 (build 433) started - System properties: {OS=Windows 7, User name=nibh} 14:50:26,605 INFO [SoapUIExtensionClassLoader] Adding [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\ext\postgresql-9.3-1102.jdbc41.jar] to extensions classpath 14:50:26,605 INFO [SoapUIExtensionClassLoader] Adding [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\ext\sqljdbc42.jar] to extensions classpath 14:50:26,670 INFO [DefaultSoapUICore] Registered 2 JDBC drivers from extensions directory: [org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver] 14:50:26,947 INFO [DefaultSoapUICore] SoapUI settings were initialized from [C:\Users\nibh\soapui-settings.xml] 14:50:27,302 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\listeners\demo-listeners.xml] 14:50:27,324 WARN [SoapUIJasperReportManager] The path to the report directory has been set to the default value because the report format has changed. Please update your custom reports if you want to use them with ReadyAPI 2+. 14:50:28,930 INFO [PluginManager] 0 plugins loaded in 1 ms 14:50:28,930 INFO [DefaultSoapUICore] All plugins loaded 14:50:29,487 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI 14:50:29,488 DEBUG [LicenseManagerServiceImpl] No license found for SoapUI 14:50:29,493 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI 14:50:29,527 DEBUG [LicenseManagerServiceImpl] License host for SoapUI: DENU00DT0087 14:50:29,528 DEBUG [LicenseManagerServiceImpl] License host for SoapUI: DENU00DT0087 14:50:29,704 DEBUG [LicenseManagerServiceImpl] Valid license file found: C:\Users\nibh\.soapui\soapui.key, last modified: Tue Mar 27 09:20:55 CEST 2018 14:50:29,720 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for LoadUI 14:50:29,723 DEBUG [LicenseManagerServiceImpl] No license found for LoadUI 14:50:29,728 DEBUG [LicenseManagerServiceImpl] License host for LoadUI: DENU00DT0087 14:50:29,737 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for Secure 14:50:29,737 DEBUG [LicenseManagerServiceImpl] No license found for Secure 14:50:29,744 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for ServiceV 14:50:29,744 DEBUG [LicenseManagerServiceImpl] License host for Secure: DENU00DT0087 14:50:29,745 DEBUG [LicenseManagerServiceImpl] No license found for ServiceV 14:50:29,882 DEBUG [LicenseManagerServiceImpl] License host for ServiceV: DENU00DT0087 14:50:30,464 INFO [WsdlProject] Loaded project from [file:/C:/Project/ToteCalcProcess/ToteCalc/ReadyAPI1/ProjectXML/ToteCalc.xml] 14:50:30,997 INFO [SoapUIProTestCaseRunner] Running tests in the project [Tamro] 14:50:31,002 INFO [SoapUIProTestCaseRunner] Running TestCase [TC01-Single Direct Order] 14:50:31,012 INFO [SoapUIProTestCaseRunner] Running TestCase [TC01-Single Direct Order] 14:50:31,363 INFO [SoapUIProTestCaseRunner] running step [DataSource] 14:50:31,381 INFO [SoapUIProTestCaseRunner] running step [SalesOrderManagerWrapperPortBinding processSalesOrderWrapper-processSalesOrderWrapper Request] 14:50:37,881 INFO [SoapUIProTestCaseRunner] Assertion [Check for existence of [documentNumber]] has status PASS 14:50:37,897 INFO [SoapUIProTestCaseRunner] running step [Property Transfer] 14:50:38,026 INFO [SoapUIProTestCaseRunner] running step [DataSink] 14:50:38,036 INFO [SoapUIProTestCaseRunner] running step [DataSource Loop] 14:50:38,195 INFO [SoapUIProTestCaseRunner] Finished running TestCase [TC01-Single Direct Order], time taken: 6630ms, status: PASS 14:50:38,201 INFO [SoapUIProTestCaseRunner] TestCase [TC01-Single Direct Order] finished with status [PASS] in 6630ms ReadyAPI 2.3.0 TestCaseRunner Summary ----------------------------- Time Taken: 7204ms Total TestSuites: 0 Total TestCases: 1 (0 failed) Total TestSteps: 5 Total Request Assertions: 1 Total Failed Assertions: 0 Total Exported Results: 5 14:50:38,797 INFO [SoapUIProTestCaseRunner] Created report at file:/C:/Users/nibh/AppData/Local/Temp/%7BDD4FA02C-6712-4C76-8B4D-932B67F03A46%7D/index.html 14:50:38,798 INFO [license] ReadyAPI 2.3.0 shutting down The test runner has exited with code 0.

cmd.exe /C testrunner.bat  -s"ToteCalc" -c"TC01-Single Direct Order" -r -j -a -f"C:\Users\nibh\AppData\Local\Temp\{DD4FA02C-6712-4C76-8B4D-932B67F03A46}" "C:\Project\ToteCalcProcess\ToteCalc\ReadyAPI1\ProjectXML\ToteCalc.xml"
- No base packages specified - no classpath scanning will be done
- Starting 'LifecycleManager@967677821'
- Hibernate Validator 4.1.0.Final
- Adding module 'com.smartbear.ready.cmd.CommandLineModule
Configuring log4j from [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\soapui-log4j.xml]
14:50:26,600 INFO  [license] ReadyAPI 2.3.0 (build 433) started - System properties: {OS=Windows 7, User name=nibh}
14:50:26,605 INFO  [SoapUIExtensionClassLoader] Adding [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\ext\postgresql-9.3-1102.jdbc41.jar] to extensions classpath
14:50:26,605 INFO  [SoapUIExtensionClassLoader] Adding [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\ext\sqljdbc42.jar] to extensions classpath
14:50:26,670 INFO  [DefaultSoapUICore] Registered 2 JDBC drivers from extensions directory: [org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver]
14:50:26,947 INFO  [DefaultSoapUICore] SoapUI settings were initialized from [C:\Users\nibh\soapui-settings.xml]
14:50:27,302 INFO  [DefaultSoapUICore] Adding listeners from [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\listeners\demo-listeners.xml]
14:50:27,324 WARN  [SoapUIJasperReportManager] The path to the report directory has been set to the default value because the report format has changed. Please update your custom reports if you want to use them with ReadyAPI 2+.
14:50:28,930 INFO  [PluginManager] 0 plugins loaded in 1 ms
14:50:28,930 INFO  [DefaultSoapUICore] All plugins loaded
14:50:29,487 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI
14:50:29,488 DEBUG [LicenseManagerServiceImpl] No license found for SoapUI
14:50:29,493 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI
14:50:29,527 DEBUG [LicenseManagerServiceImpl] License host for SoapUI: DENU00DT0087
14:50:29,528 DEBUG [LicenseManagerServiceImpl] License host for SoapUI: DENU00DT0087
14:50:29,704 DEBUG [LicenseManagerServiceImpl] Valid license file found: C:\Users\nibh\.soapui\soapui.key, last modified: Tue Mar 27 09:20:55 CEST 2018
14:50:29,720 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for LoadUI
14:50:29,723 DEBUG [LicenseManagerServiceImpl] No license found for LoadUI
14:50:29,728 DEBUG [LicenseManagerServiceImpl] License host for LoadUI: DENU00DT0087
14:50:29,737 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for Secure
14:50:29,737 DEBUG [LicenseManagerServiceImpl] No license found for Secure
14:50:29,744 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for ServiceV
14:50:29,744 DEBUG [LicenseManagerServiceImpl] License host for Secure: DENU00DT0087
14:50:29,745 DEBUG [LicenseManagerServiceImpl] No license found for ServiceV
14:50:29,882 DEBUG [LicenseManagerServiceImpl] License host for ServiceV: DENU00DT0087
14:50:30,464 INFO  [WsdlProject] Loaded project from [file:/C:/Project/ToteCalcProcess/ToteCalc/ReadyAPI1/ProjectXML/ToteCalc.xml]
14:50:30,997 INFO  [SoapUIProTestCaseRunner] Running tests in the project [Tamro]
14:50:31,002 INFO  [SoapUIProTestCaseRunner] Running TestCase [TC01-Single Direct Order]
14:50:31,012 INFO  [SoapUIProTestCaseRunner] Running TestCase [TC01-Single Direct Order]
14:50:31,363 INFO  [SoapUIProTestCaseRunner] running step [DataSource]
14:50:31,381 INFO  [SoapUIProTestCaseRunner] running step [SalesOrderManagerWrapperPortBinding processSalesOrderWrapper-processSalesOrderWrapper Request]
14:50:37,881 INFO  [SoapUIProTestCaseRunner] Assertion [Check for existence of [documentNumber]] has status PASS
14:50:37,897 INFO  [SoapUIProTestCaseRunner] running step [Property Transfer]
14:50:38,026 INFO  [SoapUIProTestCaseRunner] running step [DataSink]
14:50:38,036 INFO  [SoapUIProTestCaseRunner] running step [DataSource Loop]
14:50:38,195 INFO  [SoapUIProTestCaseRunner] Finished running TestCase [TC01-Single Direct Order], time taken: 6630ms, status: PASS
14:50:38,201 INFO  [SoapUIProTestCaseRunner] TestCase [TC01-Single Direct Order] finished with status [PASS] in 6630ms

ReadyAPI 2.3.0 TestCaseRunner Summary
-----------------------------
Time Taken: 7204ms
Total TestSuites: 0
Total TestCases: 1 (0 failed)
Total TestSteps: 5
Total Request Assertions: 1
Total Failed Assertions: 0
Total Exported Results: 5

14:50:38,797 INFO  [SoapUIProTestCaseRunner] Created report at file:/C:/Users/nibh/AppData/Local/Temp/%7BDD4FA02C-6712-4C76-8B4D-932B67F03A46%7D/index.html
14:50:38,798 INFO  [license] ReadyAPI 2.3.0 shutting down

The test runner has exited with code 0.

 

11 Replies

  • Hello!

     

    The recent release of ReadyAPI 2.3 contains several changes that broke the integration with TestComplete. Specifically, ReadyAPI tests are still running correctly, but TestComplete misinterprets their results as failures. The issue is already fixed in the upcoming TestComplete 12.50 release (should happen within the next couple of weeks). If the issue is critical, you can either request a patch for the current version of TC from our support, or revert ReadyAPI to the previous release. Sorry for the inconvenience.

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    > Below is the error message when I run the ReadyAPI test from TestComplete 

    And where is it?

    • nimishbhuta's avatar
      nimishbhuta
      Frequent Contributor

      Please see the attached Log File.

       

      One thing to add though  tescomplete  shows an error message but it has executed ReadAPI test and I am getting all the results. I am not sure why it is giving this error message.Is there any way to avoid this error message. 

       

      • cunderw's avatar
        cunderw
        Community Hero

        It looks like your SoapUI test is passing without errors. What does the code you're using to run the test look like and what does the additional information for all of the steps in your test complete log show?