Bart Schelkens
Bart Schelkens

Reputation: 1293

Configuring Selenium WebDriverTests using app.config

I have a test-project which performs WebDriverTests.

At this moment I have the following in my code:

private readonly string url = @"http://localhost:3000/#/search/persons";

My application (including the webdrivertests) is deployed using TeamCity (installed on PC-A) and deploys the application to PC-B.

When the deployment is done, I want to run my webdrivertests on PC-B as part of the TeamCity-deployment. But with the above mentionned line this doesn't work since the application isn't deployed on the server where my TeamCity is running.

Is there a way to do this using an app.config? Or is there another way?

Upvotes: 0

Views: 1076

Answers (1)

Jim Holmes
Jim Holmes

Reputation: 1690

Absolutely. Richard Bradshaw (@FriendlyTester on Twitter) has a great approach to handle this. I use the same approach, Richard just has an existing great blogpost I can point you to.

Upvotes: 1

Related Questions