Friday, March 23, 2018
asp.net - Selenium tests class library app.config appSettings ignored
Answer
Answer
I am testing an ASP.Net MVC web application using selenium and i would like to use the app settings in the app.config of the test project instead of those in the web.config of the actual web application. However they appear to be getting ignored. This is how they appear in both config files (obviously with different values)
The above are the appsettings and values from the test project, but these are not being used, instead the values from the web.config file are being used.
Can someone help me to solve this problem and have it so that the settings from the app.config from the test project are used instead?
Answer
In the end, i used selenium to set the JavaScript variables (containing the values from the config file) directly using:
((IJavaScriptExecutor)driver).ExecuteScript("myJsVariable = 5;");
plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV
In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...
-
This question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programm...
-
I need to do the following: My current address looks like: https://www.domain.com I want to redirect with htaccess: www.domain.com TO https:...
-
using namespace std; So far in my computer science courses, this is all we have been told to do. Not only that, but it's all tha...
No comments:
Post a Comment