by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:12
    wswebcreation commented #5569
  • 05:56
    jsf-clabot commented #5583
  • 05:56
    ojkelly-vha opened #5583
  • 05:44
    monil20 commented #5568
  • 01:01
    JumiDeluxe review_requested #5572
  • 00:41
    JumiDeluxe synchronize #5572
  • 00:22
    JumiDeluxe synchronize #5572
  • Jul 06 23:46
    JumiDeluxe synchronize #5572
  • Jul 06 22:07

    christian-bromann on master

    Added Documentation to devtools… (compare)

  • Jul 06 22:07

    christian-bromann on DevToolsDocumentation

    (compare)

  • Jul 06 22:06
    christian-bromann closed #5573
  • Jul 06 21:52
    christian-bromann assigned #3351
  • Jul 06 21:51
    christian-bromann labeled #3351
  • Jul 06 21:50
    christian-bromann unlabeled #3351
  • Jul 06 21:50
    christian-bromann unlabeled #3351
  • Jul 06 21:50
    christian-bromann unlabeled #3351
  • Jul 06 21:31
    christian-bromann closed #5568
  • Jul 06 21:31
    christian-bromann commented #5568
  • Jul 06 19:35

    christian-bromann on npm_and_yarn

    (compare)

  • Jul 06 19:35
    dependabot-preview[bot] commented #5581
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
and the builds all run on the same machine
how do I vary the port?
Christian Bromann
@christian-bromann
ahh I see, well then it would make sense to run the server as a process in the background and not to start it everytime you kick of a build
or maybe do that and set the port to the current build number
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
well, but I want all the source projects to be self contained, I don't want any dependency
yeah, ok, I just don't know how to set it :)
where to make it not the default 4444
will look around
Christian Bromann
@christian-bromann
you can pass some options to as parameter to that start method (see https://github.com/vvo/selenium-standalone#seleniumstartopts-cb)
but your selenium infrastructure should be independent from your projects and tests
I recommend to have a global server running somewhere in the background
your projects are still self contained then
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
this is too heavy for now, I don't control the build machines
Christian Bromann
@christian-bromann
I see ok
slawomir-brzezinski-at-travcorp
@slawomir-brzezinski-at-travcorp
I still don't see where I specify the port. I found 'selenium-standalone start -- -role node -hub http://localhost:4444/grid/register -port 5556' , but I guess this has to do with grids
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