Link WebdriverIO/NodeJs scripts to Taurus

199 views
Skip to first unread message

Annemarie D

unread,
Mar 16, 2018, 4:18:24 AM3/16/18
to codename-taurus
Hi,

Is it possible to link my automated tests (WebdriverIO and NodeJS) to Taurus to run them as a scenario for load test?
I've seen some info about using Selenium with Taurus, but this would still mean writing new scenarios and figuring out a new automation tool for me.

Kind regards,
Annemarie

Andrey Pokhilko

unread,
Mar 17, 2018, 4:09:43 AM3/17/18
to codenam...@googlegroups.com

Hi,

With Taurus, you can point to your existing scripts of NodeJS tests, if they are of supported kind of scripts (Mocha etc).

You can achieve certain level of load with Taurus by running many of tests in parallel.


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
16.03.2018 11:18, Annemarie D пишет:
CAUTION: This email originated from outside of CA. Do not click links or open attachments unless you recognize the sender and know the content is safe.

--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/b35d965e-d0aa-4643-8e37-136afaf1f8ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Annemarie D

unread,
Mar 27, 2018, 10:03:45 AM3/27/18
to codename-taurus
Thanks! Mocha is part of the test-stack, so that should be OK. I just have to figure out how to run the tests using Taurus when not the entire automation repo in in the taurus repo

Op zaterdag 17 maart 2018 09:09:43 UTC+1 schreef Andrey Pokhilko:

Annemarie D

unread,
Jul 10, 2018, 9:08:34 AM7/10/18
to codename-taurus
Hi Andrey,
I got Taurus to run my nodejs script (webdriver). However, I am wondering how I can achieve a level of load? I now have a set with one test, which I want to run 100 times concurrently. If I change the concurrency in my execution file it still only runs one test at the time. Using iterations it also only runs 1 test at a time. So I get no load, just the same behaviour as when I use my regular command to run a test.

For this example I used the following execution:

services:
  - module: shellexec

execution:
  - executor: wdio
    iterations: 5
    concurrency: 5
    scenario:
      script: wdio-config-loadtest.js

settings:
  artifacts-dir: ./test-reports/%Y-%m_%d_%H-%M-%S.%f


Any suggestions on how to get more load? Besides running multiple test files at the same time?

Best,
Annemarie

Op zaterdag 17 maart 2018 09:09:43 UTC+1 schreef Andrey Pokhilko:

Hi,

Andrey Pokhilko

unread,
Jul 10, 2018, 9:10:45 AM7/10/18
to codenam...@googlegroups.com

Hi,

You can use "-cloud" to run it via BlazeMeter cloud, where it will be "magically" scaled. The second option you already know - it's running same file multiple times.

--

Andrey Pokhilko
Open Source Initiatives Leader
CA
          BlazeMeter

10.07.2018 16:08, Annemarie D пишет:

Annemarie D

unread,
Jul 10, 2018, 9:16:29 AM7/10/18
to codename-taurus
Good tip! I will bug our ops guy for blazemeter access stuff. So you're saying if I run this in cloud the one test will magically be run multiple times concurrently?

And in the end the test set will include more then the one test that is now there ofcourse, maybe even in multiple files ;-)

Annemarie

Op dinsdag 10 juli 2018 15:10:45 UTC+2 schreef Andrey Pokhilko:

asingh...@gmail.com

unread,
Nov 8, 2018, 10:41:24 AM11/8/18
to codename-taurus
Hi, 

were you successful in setting this up on the cloud? 

I was able to run it however I get an error when the report is generated.

This was the bzt.log:

[2018-11-08 15:23:12,046 DEBUG Engine.shellexec.Task] Output for npm install:
up to date in 2.007s
found 0 vulnerabilities


[2018-11-08 15:23:12,046 WARNING Engine.shellexec.Task] Errors for npm install:
npm WARN saveError ENOENT: no such file or directory, open '/tmp/artifacts/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/tmp/artifacts/package.json'
npm WARN artifacts No description
npm WARN artifacts No repository field.
npm WARN artifacts No README data
npm WARN artifacts No license field.


[2018-11-08 15:23:12,047 DEBUG Engine.shellexec.Task] Task was finished with exit code 0: npm install
[2018-11-08 15:23:12,047 INFO Engine.shellexec.Task] Starting shell command: ./node_modules/webdriver-manager/bin/webdriver-manager update
[2018-11-08 15:23:12,916 WARNING Engine.shellexec.Task] Errors for ./node_modules/webdriver-manager/bin/webdriver-manager update:
/bin/sh: 1: ./node_modules/webdriver-manager/bin/webdriver-manager: not found

[2018-11-08 15:23:12,918 DEBUG Engine.shellexec.Task] Task was finished with exit code 127: ./node_modules/webdriver-manager/bin/webdriver-manager update
[2018-11-08 15:23:12,951 ERROR root] CalledProcessError: Command './node_modules/webdriver-manager/bin/webdriver-manager update' returned non-zero exit status 127
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/bzt/cli.py", line 257, in perform
    self.engine.prepare()
  File "/usr/local/lib/python2.7/dist-packages/bzt/engine.py", line 170, in prepare
    self.__prepare_services()
  File "/usr/local/lib/python2.7/dist-packages/bzt/engine.py", line 578, in __prepare_services
    module.prepare()
  File "/usr/local/lib/python2.7/dist-packages/bzt/modules/shellexec.py", line 75, in prepare
    task.start()
  File "/usr/local/lib/python2.7/dist-packages/bzt/modules/shellexec.py", line 160, in start
    self.check(sync=True)
  File "/usr/local/lib/python2.7/dist-packages/bzt/modules/shellexec.py", line 185, in check
    raise CalledProcessError(self.ret_code, self)
CalledProcessError: Command './node_modules/webdriver-manager/bin/webdriver-manager update' returned non-zero exit status 127
[2018-11-08 15:23:12,952 INFO Engine] Post-processing...
[2018-11-08 15:23:12,952 DEBUG Engine.consolidator] Consolidator buffer[0]: []
[2018-11-08 15:23:12,957 DEBUG Engine.cloud-utils] Request: POST https://a.blazemeter.com/api/v4/taurus/r-v4-5be4548e58c3c/notify {
 "status": "post-processing", 
 "token": "ci12NC01YmU0NTQ4ZTU4YzNjOjE1NDI5MDAxNzE6NmU4ODc3NzQzNjdhYjEzMGRiMTdlMjU5NWQzMDg2N2UwOWNiNDgwOGQ1MTA0YTc2MzkwMjc3YTIzYjk2ODBhZTU2ZTM0ZmRhZmFkYWNmMjJjYTBkYjc3ODY5YWY5Zjc5NTllNTliOGQ4MDgzNzdhNDFkOTE1ODgyNmQ1MjQ1MWY=
[2018-11-08 15:23:12,962 DEBUG urllib3.connectionpool] Starting new HTTPS connection (1): a.blazemeter.com
[2018-11-08 15:23:13,201 DEBUG urllib3.connectionpool] https://a.blazemeter.com:443 "POST /api/v4/taurus/r-v4-5be4548e58c3c/notify HTTP/1.1" 200 102
[2018-11-08 15:23:13,203 DEBUG Engine.cloud-utils] Response [200]: {
    "api_version": 4,
    "error": null,
    "result": {
        "status": "post-processing"
    }

Message has been deleted

Annemarie D

unread,
Nov 14, 2018, 1:44:57 PM11/14/18
to codename-taurus
Actually I haven't tried properly yet
Reply all
Reply to author
Forward
0 new messages