How do I use WATIN(Visual Studio 2005) to Automate Multiple USER web login?

WATIN Test, script building in Visual Studion 2005
How do I use WATIN to Automate Multiple USER web login

I wonder if anyone can help me, where I am working requires testing of Credit Card online Applications. They have a number of requirements of which the following are to be completed.

Multiple Users logging into the Website and performing different tasks……

I would have thought this was not possible, this would surely means opening multiple(Not sure how many, to stress a system it should be in the thousands) Web Browsers and logging in as different users performing different tasks all at the same time.........

Can this type of Test be carried out using WATIN, and if so how can it be done?

Hope somebody has some advice.......

Thank You


Comment actions Permalink

I am attempting this ( MSTests with WatiN running inside them), but having an issue:

System.Threading.ThreadStateException : The CurrentThread needs to have it's ApartmentState set to ApartmentState.STA to be able to automate Internet Explorer.
at WatiN.Core.IE.CheckThreadApartmentStateIsSTA()
at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, LogonDialogHandler logonDialogHandler, Boolean createInNewProcess)
at WatiN.Core.IE..ctor(String url)
at ScrapeCompare.UnitTest1.WatiNTest() in c:\Program Files\TeamCity\buildAgent\work\741796eb2b4d6e6a\ScrapeCompare\UnitTest1.cs:line 49

here's the simple test:

public void WatiNTest()
IE ie = new IE("http://localhost/samplewebapplication/default.aspx");

List pages = new List]]>();

foreach (Link link in ie.Links)
Assert.AreEqual(3, pages.Count, "Link count has changed.");

Comment actions Permalink

This could be the problem related to the .config files support in NUnit TeamCity
could you please have a look/watch/vote for
Does the solution helped?


Eugene Petrenko
JetBrains s.r.o.


Please sign in to leave a comment.