Forum Discussion

rajeshmadhavan's avatar
rajeshmadhavan
New Contributor
7 years ago

LOADUI COMMAND LINE RUNNER - Requests are not sent

I am using the trail version of LoadUI. Created a loadtest to invoke an API. It runs fine while running through Ready!API UI by triggering manually. But when I tried to run the same load test using LOADUI command line runner, the test is getting initiated but the requests are not be sent to the API. Also verified the logs at API layer, no requests are reaching the API.

 

logs:-

 

Running Ready! API LoadUITestRunner for [BaseLoadTest]
directory: C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin
command: cmd.exe /C loadtestrunner.bat C:\Users\abc\Desktop\TEST\REST-Project-4-soapui-project.xml -nBaseLoadTest "-EDefault environment" -rC:\Users\abc\Desktop\TEST -FPDF -j
- No base packages specified - no classpath scanning will be done
- Starting 'LifecycleManager@2070160397'
- Hibernate Validator 4.1.0.Final
- Adding module 'com.smartbear.ready.cmd.CommandLineModule
- Adding module 'com.eviware.loadui.cmd.LoadUICmdBaseModule
Configuring log4j from [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\soapui-log4j.xml]
23:55:05,474 INFO [license] Ready! API 2.0.2 started - System properties: {OS=Windows 8.1, User name=abc}
23:55:05,634 INFO [SoapUI] Adding [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\ext\postgresql-9.3-1102.jdbc41.jar] to extensions classpath
23:55:05,634 INFO [SoapUI] Adding [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\ext\sqljdbc42.jar] to extensions classpath
23:55:06,470 INFO [DefaultSoapUICore] Registered 2 JDBC drivers from extensions directory: [org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver]
23:55:07,303 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\abc\soapui-settings.xml]
23:55:12,106 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\listeners\demo-listeners.xml]
23:56:14,570 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\soapui-swagger-plugin-2.5.3-dist.jar]
23:56:14,570 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-mqtt-plugin-dist.jar]
23:56:14,569 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-jira-plugin-1.1-dist.jar]
23:56:14,575 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-uxm-plugin-1.0.jar]
23:56:19,225 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-api-git-plugin-1.1.0.jar]
23:56:19,474 INFO [PluginManager] 5 plugins loaded in 5173 ms
23:56:19,474 INFO [DefaultSoapUICore] All plugins loaded
23:56:30,827 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI NG
23:56:30,828 DEBUG [LicenseManagerServiceImpl] No license found for SoapUI NG
23:56:30,829 DEBUG [LicenseManagerServiceImpl] License host for SoapUI NG: R-MADHAVAN
23:56:30,836 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI NG
23:56:30,836 DEBUG [LicenseManagerServiceImpl] License host for SoapUI NG: R-MADHAVAN
23:56:31,158 INFO [LicenseManagerServiceImpl] Invalid license for SoapUI NG: [2017-07-10 00:00:00] soapUI trial - f65c0679-b7b1-4f02-96b4-593adfd20450, issue date = Mon Jul 10 06:00:00 BST 2017, expiry date = Tue Jul 25 06:00:00 BST 2017
23:56:31,159 INFO [LicenseManagerServiceImpl] License expired at Tue Jul 25 06:00:00 BST 2017
23:56:31,160 INFO [LicenseManagerServiceImpl] No reserve license found
23:56:31,334 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for LoadUI NG
23:56:31,336 DEBUG [LicenseManagerServiceImpl] License host for LoadUI NG: R-MADHAVAN
23:56:31,461 DEBUG [LicenseManagerServiceImpl] Valid license file found: C:\Users\abc\.loadui\loadUI.key, last modified: Wed Aug 16 10:18:07 BST 2017
23:56:31,544 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for Secure
23:56:31,544 DEBUG [LicenseManagerServiceImpl] No license found for Secure
23:56:31,550 DEBUG [LicenseManagerServiceImpl] License host for Secure: R-MADHAVAN
23:56:31,553 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for ServiceV
23:56:31,554 DEBUG [LicenseManagerServiceImpl] No license found for ServiceV
23:56:31,554 DEBUG [LicenseManagerServiceImpl] License host for ServiceV: R-MADHAVAN
23:56:33,304 INFO [BaseExecutionManager] Initialized base directory to keep executions to C:\Users\abc\.readyapi\loadui\results
Configuring log4j from [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\soapui-log4j.xml]
23:56:35,267 INFO [license] Ready! API 2.0.2 started - System properties: {OS=Windows 8.1, User name=abc}
23:56:35,268 INFO [SoapUI] Adding [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\ext\postgresql-9.3-1102.jdbc41.jar] to extensions classpath
23:56:35,268 INFO [SoapUI] Adding [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\ext\sqljdbc42.jar] to extensions classpath
23:56:35,299 INFO [DefaultSoapUICore] Registered 2 JDBC drivers from extensions directory: [org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver]
23:56:35,303 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\abc\soapui-settings.xml]
23:56:35,307 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\listeners\demo-listeners.xml]
23:56:58,859 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-jira-plugin-1.1-dist.jar]
23:56:58,860 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-mqtt-plugin-dist.jar]
23:56:58,860 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\soapui-swagger-plugin-2.5.3-dist.jar]
23:56:58,862 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-uxm-plugin-1.0.jar]
23:56:59,223 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-api-git-plugin-1.1.0.jar]
23:56:59,526 INFO [PluginManager] 5 plugins loaded in 667 ms
23:56:59,526 INFO [DefaultSoapUICore] All plugins loaded
Running LoadUI Project Runner... project: C:\Users\abc\Desktop\TEST\REST-Project-4-soapui-project.xml
23:57:00,374 INFO [WsdlProject] Loaded project from [file:/C:/Users/abc/Desktop/TEST/REST-Project-4-soapui-project.xml]

-----------------------------------------
STARTING LOADUI COMMAND LINE RUNNER
-----------------------------------------

-----------------------------------------
RUNNING TEST: BaseLoadTest
LIMITS: Time: 00:00:30 Requests: N/A Failures: N/A
-----------------------------------------
Time: 00:00:00 Requests: 0 Failures: 0
Time: 00:00:01 Requests: 0 Failures: 0
Time: 00:00:02 Requests: 0 Failures: 0
Time: 00:00:03 Requests: 0 Failures: 0
Time: 00:00:04 Requests: 0 Failures: 0
Time: 00:00:05 Requests: 0 Failures: 0
Time: 00:00:06 Requests: 0 Failures: 0
Time: 00:00:07 Requests: 0 Failures: 0
Time: 00:00:08 Requests: 0 Failures: 0
Time: 00:00:09 Requests: 0 Failures: 0
Time: 00:00:10 Requests: 0 Failures: 0
Time: 00:00:11 Requests: 0 Failures: 0
Time: 00:00:12 Requests: 0 Failures: 0
Time: 00:00:13 Requests: 0 Failures: 0
Time: 00:00:14 Requests: 0 Failures: 0
Time: 00:00:15 Requests: 0 Failures: 0
Time: 00:00:16 Requests: 0 Failures: 0
Time: 00:00:17 Requests: 0 Failures: 0
Time: 00:00:18 Requests: 0 Failures: 0
Time: 00:00:19 Requests: 0 Failures: 0
Time: 00:00:20 Requests: 0 Failures: 0
Time: 00:00:21 Requests: 0 Failures: 0
Time: 00:00:22 Requests: 0 Failures: 0
Time: 00:00:23 Requests: 0 Failures: 0
Time: 00:00:24 Requests: 0 Failures: 0
Time: 00:00:26 Requests: 0 Failures: 0
Time: 00:00:27 Requests: 0 Failures: 0
Time: 00:00:28 Requests: 0 Failures: 0
Time: 00:00:29 Requests: 0 Failures: 0
Time: 00:00:30 Requests: 0 Failures: 0
23:57:41,478 ERROR [MBassadorEventBus] Failed to publish message com.eviware.loadui.api.events.command.test.TestExecutionCommand@19497c4b to unknown listener method
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(Unknown Source)
at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(Unknown Source)
at java.util.concurrent.LinkedBlockingQueue.put(Unknown Source)
at net.engio.mbassy.bus.AbstractSyncAsyncMessageBus.addAsynchronousPublication(AbstractSyncAsyncMessageBus.java:75)
at net.engio.mbassy.bus.MBassador.publishAsync(MBassador.java:19)
at com.smartbear.ready.core.event.bus.impl.MBassadorEventBus.postAsync(MBassadorEventBus.java:56)
at com.eviware.loadui.impl.model.canvas.CanvasItemImpl$TimeLimitTask.run(CanvasItemImpl.java:905)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
-----------------------------------------
TEST EXECUTION COMPLETED
FINAL RESULTS: Time: 00:00:30 Requests: 5 Failures: 0
-----------------------------------------
23:57:42,508 INFO [CanvasItemImpl] Generating a summary report for CanvasItem BaseLoadTest.
23:58:38,163 INFO [license] Ready! API 2.0.2 shutting down

 

 

3 Replies

  • JamesLunan's avatar
    JamesLunan
    SmartBear Alumni (Retired)

    Hello Rajesh, 

     

    Are you using the latest version of LoadUI? I assume so if you just downloaded a trial. 

     

    Are you able to use one of the sample projects (select LoadUI [Projects] in the left pane tree to find sample projects) and run a small load test from one of those? This would tell us if your issue is related to your project file or the ReadyAPI setup. 

     

    I am able to successfully complete a load test when I right click a load project and select Launch LoadUITestRunner. This was after deactivating all licenses except LoadUI.

     

    I hope this helps.

    • rajeshmadhavan's avatar
      rajeshmadhavan
      New Contributor

      Thanks James for your response.

       

      I have downloaded the latest Ready!API(v2.0.2) and using the trail version of it.

       

      As suggested, I have tried running one of the samples project i.e. "Baseline Load Sample Project". For testing purpose, I have disabled the Datasource and Datasource loop test steps and configured Geo Search API to invoke google api endpoint.

       

      While running throught GUI it works fine but with loadtestrunner utility still requests are not being sent successfully. Please validate and confirm.

       

       

      logs:-

       

      Running Ready! API LoadUITestRunner for [Baseline Load Test (Geocoding)]
      directory: C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin
      command: cmd.exe /C loadtestrunner.bat C:\Users\abc\Desktop\TEST\Baseline-Load-Sample-Project-soapui-project.xml "-nBaseline Load Test (Geocoding)" "-EDefault environment"
      - No base packages specified - no classpath scanning will be done
      - Starting 'LifecycleManager@647149086'
      - Hibernate Validator 4.1.0.Final
      - Adding module 'com.smartbear.ready.cmd.CommandLineModule
      - Adding module 'com.eviware.loadui.cmd.LoadUICmdBaseModule
      Configuring log4j from [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\soapui-log4j.xml]
      09:51:33,214 INFO [license] Ready! API 2.0.2 started - System properties: {OS=Windows 8.1, User name=abc}
      09:51:33,246 INFO [SoapUI] Adding [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\ext\postgresql-9.3-1102.jdbc41.jar] to extensions classpath
      09:51:33,247 INFO [SoapUI] Adding [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\ext\sqljdbc42.jar] to extensions classpath
      09:51:35,726 INFO [DefaultSoapUICore] Registered 2 JDBC drivers from extensions directory: [org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver]
      09:51:37,685 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\abc\soapui-settings.xml]
      09:51:48,819 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\listeners\demo-listeners.xml]
      09:57:25,490 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-jira-plugin-1.1-dist.jar]
      09:57:25,491 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-mqtt-plugin-dist.jar]
      09:57:25,490 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\soapui-swagger-plugin-2.5.3-dist.jar]
      09:57:25,498 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-uxm-plugin-1.0.jar]
      09:57:36,163 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-api-git-plugin-1.1.0.jar]
      09:57:36,416 INFO [PluginManager] 5 plugins loaded in 10998 ms
      09:57:36,417 INFO [DefaultSoapUICore] All plugins loaded
      09:57:44,916 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI NG
      09:57:44,918 DEBUG [LicenseManagerServiceImpl] No license found for SoapUI NG
      09:57:44,935 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI NG
      09:57:44,940 DEBUG [LicenseManagerServiceImpl] License host for SoapUI NG: R-MADHAVAN
      09:57:44,941 DEBUG [LicenseManagerServiceImpl] License host for SoapUI NG: R-MADHAVAN
      09:57:45,048 INFO [LicenseManagerServiceImpl] Invalid license for SoapUI NG: [2017-07-10 00:00:00] soapUI trial - f65c0679-b7b1-4f02-96b4-593adfd20450, issue date = Mon Jul 10 06:00:00 BST 2017, expiry date = Tue Jul 25 06:00:00 BST 2017
      09:57:45,048 INFO [LicenseManagerServiceImpl] License expired at Tue Jul 25 06:00:00 BST 2017
      09:57:45,049 INFO [LicenseManagerServiceImpl] No reserve license found
      09:57:45,156 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for LoadUI NG
      09:57:45,158 DEBUG [LicenseManagerServiceImpl] License host for LoadUI NG: R-MADHAVAN
      09:57:45,364 DEBUG [LicenseManagerServiceImpl] Valid license file found: C:\Users\abc\.loadui\loadUI.key, last modified: Wed Aug 16 10:18:07 BST 2017
      09:57:45,409 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for Secure
      09:57:45,412 DEBUG [LicenseManagerServiceImpl] No license found for Secure
      09:57:45,420 DEBUG [LicenseManagerServiceImpl] License host for Secure: R-MADHAVAN
      09:57:45,424 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for ServiceV
      09:57:45,424 DEBUG [LicenseManagerServiceImpl] No license found for ServiceV
      09:57:45,425 DEBUG [LicenseManagerServiceImpl] License host for ServiceV: R-MADHAVAN
      09:57:46,265 INFO [BaseExecutionManager] Initialized base directory to keep executions to C:\Users\abc\.readyapi\loadui\results
      Configuring log4j from [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\soapui-log4j.xml]
      09:57:48,216 INFO [license] Ready! API 2.0.2 started - System properties: {OS=Windows 8.1, User name=abc}
      09:57:48,218 INFO [SoapUI] Adding [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\ext\postgresql-9.3-1102.jdbc41.jar] to extensions classpath
      09:57:48,219 INFO [SoapUI] Adding [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\ext\sqljdbc42.jar] to extensions classpath
      09:57:48,260 INFO [DefaultSoapUICore] Registered 2 JDBC drivers from extensions directory: [org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver]
      09:57:48,263 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\abc\soapui-settings.xml]
      09:57:48,266 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\SmartBear\ReadyAPI-2.0.2\bin\listeners\demo-listeners.xml]
      09:58:12,362 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-jira-plugin-1.1-dist.jar]
      09:58:12,363 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\soapui-swagger-plugin-2.5.3-dist.jar]
      09:58:12,362 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-mqtt-plugin-dist.jar]
      09:58:12,367 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-uxm-plugin-1.0.jar]
      09:58:12,695 INFO [PluginManager] Adding plugin from [C:\Users\abc\.soapui\plugins\ready-api-git-plugin-1.1.0.jar]
      09:58:12,933 INFO [PluginManager] 5 plugins loaded in 573 ms
      09:58:12,934 INFO [DefaultSoapUICore] All plugins loaded
      Running LoadUI Project Runner... project: C:\Users\abc\Desktop\TEST\Baseline-Load-Sample-Project-soapui-project.xml
      09:58:13,609 INFO [WsdlProject] Loaded project from [file:/C:/Users/abc/Desktop/TEST/Baseline-Load-Sample-Project-soapui-project.xml]

      -----------------------------------------
      STARTING LOADUI COMMAND LINE RUNNER
      -----------------------------------------

      -----------------------------------------
      RUNNING TEST: Baseline Load Test (Geocoding)
      LIMITS: Time: 00:00:20 Requests: N/A Failures: N/A
      -----------------------------------------
      Time: 00:00:00 Requests: 0 Failures: 0
      Time: 00:00:01 Requests: 0 Failures: 0
      Time: 00:00:02 Requests: 0 Failures: 0
      Time: 00:00:03 Requests: 0 Failures: 0
      Time: 00:00:04 Requests: 0 Failures: 0
      Time: 00:00:05 Requests: 0 Failures: 0
      Time: 00:00:06 Requests: 0 Failures: 0
      Time: 00:00:07 Requests: 0 Failures: 0
      Time: 00:00:08 Requests: 0 Failures: 0
      Time: 00:00:09 Requests: 0 Failures: 0
      Time: 00:00:10 Requests: 0 Failures: 0
      Time: 00:00:11 Requests: 0 Failures: 0
      Time: 00:00:12 Requests: 0 Failures: 0
      Time: 00:00:13 Requests: 0 Failures: 0
      Time: 00:00:14 Requests: 0 Failures: 0
      Time: 00:00:15 Requests: 0 Failures: 0
      Time: 00:00:16 Requests: 0 Failures: 0
      Time: 00:00:17 Requests: 0 Failures: 0
      Time: 00:00:18 Requests: 0 Failures: 0
      Time: 00:00:19 Requests: 0 Failures: 0
      Time: 00:00:20 Requests: 0 Failures: 0
      09:58:46,604 ERROR [MBassadorEventBus] Failed to publish message com.eviware.loadui.api.events.command.test.TestExecutionCommand@777d1a16 to unknown listener method
      java.lang.InterruptedException
      at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(Unknown Source)
      at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(Unknown Source)
      at java.util.concurrent.LinkedBlockingQueue.put(Unknown Source)
      at net.engio.mbassy.bus.AbstractSyncAsyncMessageBus.addAsynchronousPublication(AbstractSyncAsyncMessageBus.java:75)
      at net.engio.mbassy.bus.MBassador.publishAsync(MBassador.java:19)
      at com.smartbear.ready.core.event.bus.impl.MBassadorEventBus.postAsync(MBassadorEventBus.java:56)
      at com.eviware.loadui.impl.model.canvas.CanvasItemImpl$TimeLimitTask.run(CanvasItemImpl.java:905)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      09:58:47,529 ERROR [VirtRunnerTestStepListener] java.lang.NullPointerException
      -----------------------------------------
      TEST EXECUTION COMPLETED
      FINAL RESULTS: Time: 00:00:20 Requests: 0 Failures: 0
      -----------------------------------------
      09:58:47,618 INFO [license] Ready! API 2.0.2 shutting down

      • JamesLunan's avatar
        JamesLunan
        SmartBear Alumni (Retired)

        Rajesh, someone has reached out to you to try to connect regarding this issue. I will drop off this thread and report back if we find out more.