webdriverio-boneyard / wdio-sauce-service

WebdriverIO v4 service for better Sauce Labs integration
http://webdriver.io
MIT License
18 stars 21 forks source link

Running Dynamic Tests using jasmine data provider on Sauce #54

Open kandarp1691 opened 6 years ago

kandarp1691 commented 6 years ago

Hello,

I am trying to create tests on runtime using jasmine-data-provider. Below is a simple test which displays what is possible and helps avoid creating multiple tests.

const using = require('jasmine-data-provider');

const textValues = {
'test1' : { name : 'test1'},
'test2' : { name : 'test2'}
}

describe('Two tests in one file', function(){
     using(textValues, function(data){
        it('print each value', function(){
              console.log(data.name);
             }
        } 
}

When running it on sauce labs, it fails with invalid message. I am not sure if sauce labs support this kind of tests. Please help