by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:44
    jsf-clabot commented #5604
  • 16:44
    morrme opened #5604
  • 15:49
    morrme commented #5603
  • 15:47
    morrme commented #5603
  • 11:42
    jayandran-Sampath commented #5602
  • 09:30
    christian-bromann labeled #5603
  • 09:30
    christian-bromann labeled #5603
  • 09:30
    christian-bromann labeled #5603
  • 09:30
    christian-bromann labeled #5603
  • 09:30
    christian-bromann opened #5603
  • 09:27
    christian-bromann commented #5602
  • Jul 11 15:46
    elaichenkov closed #5586
  • Jul 11 12:58
    jayandran-Sampath commented #5602
  • Jul 11 09:48
    jayandran-Sampath edited #5602
  • Jul 11 09:47
    jayandran-Sampath opened #5602
  • Jul 10 23:41

    christian-bromann on master

    Have `remote` and `multiremote`… (compare)

  • Jul 10 23:41

    christian-bromann on cb-typedef-fix

    (compare)

  • Jul 10 23:41
    christian-bromann closed #5599
  • Jul 10 23:41
    christian-bromann unlabeled #5599
  • Jul 10 23:41
    christian-bromann labeled #5599
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
oh btw, for now I'm doing commandling, not the start(), I'll migrate later
Christian Bromann
@christian-bromann
see this example: selenium-standalone start -- -role node -hub http://localhost:4444/grid/register -port 5556
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
so, following above, I thought selenium-standalone start -port 12345 will do it, but it's still 4444
Christian Bromann
@christian-bromann
oh really?
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
aaah
no --
dummy
Christian Bromann
@christian-bromann
:D
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
allrighty! thanks a lot
@christian-bromann You've been most helpful
Christian Bromann
@christian-bromann
@slawomir-brzezinski-at-travcorp you’re welcome ;)
Tony Keith
@onewithhammer

Hello,

I have successfully written many tests using Mocha/Should/WebDriverIO using selenium stand alone server for local testing and using saucelabs for remote testing. I use mocha and/or grunt as the test runner. The project is on github: https://github.com/onewithhammer/web-driver-io-tutorial

Now I want to connect Travis CL to github to test my test scripts automatically. I created a .travis.yml file and I believe it is configured properly however I can't get my scripts to connect to Sauce Connect.

What needs to be changed to the code to support connecting to Sauce Connect (port 4445)?

Does that make sense? Or do you have an example of connecting to Sauce Connect?
Christian Bromann
@christian-bromann
@onewithhammer yaml file looks good. you need to set user & key + port and host
user/key are youre sauce credentials and host is localhost and port is 4445
Tony Keith
@onewithhammer
Thank you. That was easy enough. That worked.
Is there anyway to detect a script is being run from Travis CL so I can dynamically set the user/key + port and host???
I mean dynamically change the options
Christian Bromann
@christian-bromann
travis usually has some specific env variables like process.env.BUILD_NUMBER(see http://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables)
you can check if one of these is set and set the properties according to that
Tony Keith
@onewithhammer
ok - thanks
Conrad Muan
@conradmuan
Does anybody know if webdriverio can do basic auth? Some of my test environments are behind http basic auth (can't help it, company thing). I tried something like client.url('http://' + encodeURIComponent(username) + ':' + encodeURIComponent(password) + '@' + url); but getting no results
Tony Keith
@onewithhammer
I use this method all the time. What error you getting?
Conrad Muan
@conradmuan
well it looks like it works if capabilities are chrome or ff. But I don't think it's getting authenticated in phantomjs
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
Hi everyone! Good day! Does anyone know if the 'running scenarios in parallel to reduce run time' (webdriverio/webdriverio#205) can be achieved in any framework supported way?
(i'm using WDIO + cucumber)
Christian Bromann
@christian-bromann
@slawomir-brzezinski-at-travcorp just define multiple capabilities in your conf file
currently it is unfortunatelly one process per capability. In future it will be one process per capability per test spec
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
@christian-bromann Thanks! Any guess on when this would be possible? Meanwhile, Is there a way to assign each capability a different set of specs (even a dirty way?)
(but ideally not so dirty that it require to break the source of specs manually :) )
perhaps, 5 capabilities each assigned index 0-4, each executing only testSpec which testSpecIndex % x = 0
:D
Dan Dascalescu
@dandv
webdriver-sync has a really nice syntax - https://github.com/jsdevel/webdriver-sync#in-favor-of-this. How close can WebdriverIO get to sync? Is there an example somewhere?
Christian Bromann
@christian-bromann
@slawomir-brzezinski-at-travcorp not yet unfortunatelly .. dirty way would be to fork the project and hack a temporary solution
currently I am not able to spend much time doing open source but this will change in 2 weeks, there is a lot of stuff to catch up with
@dandv I was experimenting with fibers to get sync in webdriverio .. got it working for protocol commands but not for nested commands, definitelly something I wanna add to webdriverio
but this is kinda possible already today using yield
e.g.
expect(yield browser.getTitle()).to.be.equal(“something”);
Dan Dascalescu
@dandv
Thanks. And last question for today: what's the easiest way to get started with WebdriverIO and Cucumber? Still https://github.com/webdriverio/cucumber-boilerplate?
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
@christian-bromann Thanks. I did consider forking. If I embarked on that quest, a noob node.js, or specifically npm question: how easy is it for the wdio package to come from my fork in my project? Is it a matter of changing one url?
Christian Bromann
@christian-bromann
I would use the wdio test runner and maybe port all these snippets over
@dandv ^^^
cucumber-boilerplate is still a good start though
@slawomir-brzezinski-at-travcorp in your package.json just grab your fork
”webdriverio”: "slawomir-brzezinski-at-travcorp/webdriverio”
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
awesome
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
another noob node/npm question. Everywhere I see people running 'wdio wdio.conf.js' but I get ''wdio' is not recognized as an internal or external command'. Is it because everyone installs wdio globally?
asd
I need to have the thing self contained, so I don't want it to pollute the machine globally. The only thing I have global is node. Keeping that in mind, is doing 'node_modules.bin\wdio wdio.conf.js' is the easiest way to run?
Christian Bromann
@christian-bromann
right .. but you can also call it like ./node_modules/.bin/wdio wdio.conf.js
yeah