Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Testing application on multiple ports #564

Closed
mohit-excelindia opened this issue Mar 3, 2014 · 3 comments
Closed

Testing application on multiple ports #564

mohit-excelindia opened this issue Mar 3, 2014 · 3 comments

Comments

@mohit-excelindia
Copy link

Hi @juliemr @wlingke

My application runs on various ports and to check that every page is working fine on all ports I have created a test suite. But I am facing a problem, how can I test all ports as I have three of them and I want to run each of them in one run only.

Thanks
Mohit Gupta

@juliemr
Copy link
Member

juliemr commented Mar 3, 2014

You can change the baseUrl of the config in the command line, via protractor <yourconf> --baseUrl='http://myapponport:5555'

@mohit-excelindia
Copy link
Author

I tried your code @juliemr but I am not able to call this baseUrl in my running tests, earlier I was defining a baseUrl in my config file and calling it as
console.log(config.baseUrl);
but since with your code I am defining it through command prompt only then how wd my test know that config.baseUrl no longer exists and it should pick up the url from command prompt.
Kindly revert !

Thanks,

@mohit-excelindia
Copy link
Author

There was a problem the way I was accessing it.
I got to know it from #213.

Closing it.

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

No branches or pull requests

2 participants