![]() The advantage of having the tests in this fashion means that if a test one particular browser fails then you can quickly see the problem and the results form the other browsers. ![]() By using attributes, you can define multiple different browsers, each one will generate a separate test. The concept is simple, have the instance of the browser created for you outside of your test and provided the instance as a argument during execution. As such, I created a very similar xUnit Browser Attribute, code can be found on my GitHub repository along with the binaries. This harms readability and maintainability of your tests and is just pain wrong. WatiN supports FireFox, IE and Chrome so that wasn’t a problem, however in order to test the application on difference browsers I would have to duplicate the logic multiple times. Recently I wanted to run a web UI test across multiple different browsers using WatiN.
0 Comments
Leave a Reply. |