开发者

Writing Logs/results or generating reports using Selenium C# API

I am testing the web application using Selenium RC. All things works fine and I have written many test cases and executing these test cases using Nunit.

Now the hurdle that I am facing is how to keep track of failures or how to generate the Reports?

Please advice which could be best way to capture this开发者_开发百科.


Because you're using NUnit you'll want to use NUnits reporting facilities. If the GUI runner is enough, that's great. But if you're running from the command line, or NAnt, you'll want to use the XML output take a look at the NAnt documentation for more information.

If you're using Nant you'll want to look at NUnit2Report. It's nolonger maintained, but it may suit your needs. Alternatively, you could extract it's XSLT files and apply it against the XML output.

Selenium itself doesn't have report because it is only a library used by many different languages.


For anyone else happening randomly into this question, the 'nunit2report' task is now available in NAntContrib.

NantContrib Nunit2report task

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜