You can do that by creating multiple environments:
http://nightwatchjs.org/guide#config-test-settings.
On Tue, Sep 23, 2014 at 4:43 PM, Aaron Briel <
aaron...@gmail.com> wrote:
> Hello! I am testing sites that have the same code base with different
> branding and only slightly different logic. I thus have a need to pass in
> custom command line variables such as site, which will then determine global
> data to be used such as URL, and also which can be accessed within test
> cases for site-specific conditionals to allow for the same test cases to be
> used across the different sites. I've determined that I can add a command
> line parameter to runner.js (as follows below), but I'm unsure of how to
> implement beyond this. Any ideas would be great!!
>
> cli.command('site')
> .description('Site to test: site1 staging (site1_stg), site1 development
> (site1_dev), site2 staging (site2_stg), site2 development (site2_dev)')
> .alias('s')
>
> --
> You received this message because you are subscribed to the Google Groups
> "NightwatchJs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
nightwatchjs...@googlegroups.com.
> To post to this group, send email to
nightw...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/nightwatchjs/66d24ae0-11d8-4fcc-8eca-065667751b5c%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.