Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gherkin + Chunk combination #1297

Closed
kulin24 opened this issue Oct 31, 2018 · 13 comments
Closed

Gherkin + Chunk combination #1297

kulin24 opened this issue Oct 31, 2018 · 13 comments

Comments

@kulin24
Copy link

kulin24 commented Oct 31, 2018

What are you trying to achieve?

I am trying to execute the gherkin scenarios in parallel using chunk functionality.

What do you get instead?

The scenarios are not executed in parallel. The chunk configuration is not taking effect.

Provide console output if related. Use --verbose mode for more details.

Admins-MacBook-Pro:Codeceptv1 admin$ npm run test

> codecept_poc@1.0.0 test /Users/admin/Desktop/My_Data/QuantumJS/Codeceptv1
> codeceptjs run-multiple wiki

Use JS config file
undefined
Nothing scheduled for execution
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! codecept_poc@1.0.0 test: `codeceptjs run-multiple wiki`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the codecept_poc@1.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/admin/.npm/_logs/2018-10-31T13_21_59_165Z-debug.log

Provide test source code if related

console.log('Use JS config file');

console.log(process.profile);
var deviceCaps = require('./test-config/devices/deviceCaps.json')

exports.config = {
    tests: './*_test.js',
    timeout: 10000,
    output: './output',
    helpers: {
        PerfectoWebDriverIO: {
            action: "PerfectoWebDriverIO Test",
            require: "./perfectowebdriverio.js",
            url: "https://google.com/",
            host: "<HOST>",
            path: "<PATH>",
            port: "<PORT>",
            jobName: "PerfectoWebDriverIO Test Job",
            buildNumber: 38,
            branch: "Not Branched Yet",
            projectName: "Perfecto-CodeceptJS Example Tests",
            projectVersion: "v0.1a",
            tags: ["codeceptjs", "webdriverio", "nodejs", "example tag"],
            restart: false,
            logLevel: "verbose",

            desiredCapabilities: {
                browserName: "Firefox",
                user: "<USER>",
                securityToken: "<TOKEN>",
                platformName: "Windows",
                platformVersion: "10",
                browserVersion: "62",
                resolution: "1280x1024",
                location: "US East"
            }
        }
    },
    mocha: {
        reporterOptions: {
            mochaFile: './output/result.xml',
        },
    },
    name: 'tests',
    bootstrap: './bootstrap.js',
    include: {
        I: "./custom_steps.js",
        Smth: "./pages/Smth.js",
        loginPage: "./pages/Login.js",
        signinFragment: "./fragments/Signin.js"
    },
    gherkin: {
        features: "./features/*.feature",
        steps: [
            "./step_definitions/steps.js",
            "./step_definitions/wiki_steps.js"
        ]
    },
    timeout: 10000,
    multiple: deviceCaps
};

DeviceCaps.json file:

{
"wiki": {
"chunks": 2,
"browsers": [
{
"browser": "Firefox",
"browserName": "Firefox",
"user": "kulins@perfectomobile.com",
"securityToken": "",
"platformName": "Windows",
"platformVersion": "10",
"browserVersion": "62",
"resolution": "1280x1024",
"location": "US East"
},
{
"browser": "Chrome",
"browserName": "Chrome",
"user": "",
"securityToken": "",
"platformName": "Windows",
"platformVersion": "10",
"browserVersion": "70",
"resolution": "1280x1024",
"location": "US East"
}
],
"grep": "@wiki"
}
}

Details

  • CodeceptJS version: 1.4.4
  • NodeJS Version: 5.7.1
  • Operating System: Mac
  • Protractor || WebDriverIO || Nightmare version (if related) WebdriverIO
  • Configuration file: Shared above
@kulin24
Copy link
Author

kulin24 commented Oct 31, 2018

If I remove the chunks configuration then the scenarios are executing as expected in sequential manner on two browsers chrome and firefox in parallel.

So the question is, do we support chunks with gherkin approach?

@kdelalic
Copy link

kdelalic commented Nov 29, 2018

Any updates here? @kulin24

@kulin24
Copy link
Author

kulin24 commented Nov 30, 2018

No, there is no update on this issue. This bug still exists as far as I know.

@vitoo
Copy link

vitoo commented Dec 4, 2018

Parralel execution is not working with Gherkin scenario 😞

@PredragPavlovic
Copy link

@kulin24 did you find out what is problem? Does it work now?

@mayankchincholkar
Copy link

Any updates on this issue?

@kulin24
Copy link
Author

kulin24 commented Feb 18, 2019

I don’t have any updates on this issue.
Because of this bug and one more issue we ended up writing our own Wdio + cucumber fraemwork.

I don’t think the owners of this framework has given us any acknowledgment on this issue nor do we have any ETA on the resolution of this issue.

@evanjmg
Copy link

evanjmg commented Sep 10, 2019

This is still an issue

@gkushang
Copy link
Contributor

Parallel Executions with Gherkin is still an issue

@eugengaspar
Copy link

Yes, unfortunately, it still is :(
Even with codecept 2.6.2

@gkushang
Copy link
Contributor

I have faced issues in Before After hooks when Browser session closes or launches, and issue is still there specifically with WebDriver.

cc @koushikmohan1996

@javierfuentesm
Copy link

@kulin24 do you have some docs of how to use , or where you get the PerfectoWebDriverIO helper ?im trying to check if there is a way to connect with perfecto mobile.
Thanks in advance

@ttupper92618
Copy link

@javierfuentesm / @kulin24 I'm looking for an example of perfecto integration - can either of you assist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests