GUI testing for a webapplication

Soldato
Joined
27 Oct 2005
Posts
13,737
Location
Netherlands
Hello,


I'm currently looking for ways to ''record'' a set of actions of an MVC webapplication, to automatise testing to save time for manual testing.

My current solution is using PhantomJS ( headless browser), in combination with CasperJS with the Resurrectio plugin for chrome, this works ( it records user action and creates a CassperJS script which can be run with Phantom), however Resurrectio has problems recording actions within a frame ( yes I know, I frames are old but this particular website is built this way and will take a while to dump the iframes), and I have to manually script the navigation to certain pages, it is a bit time consuming to manually write all the scripts.

Do any of you guys know/have experience with a user-friendly/easier solution to record a set of actions of a website ( logging in, clicking a dozen buttons, asserting if something exists, making screenshots at various stages, etc?
 
Associate
Joined
10 Nov 2013
Posts
1,808
A company I worked at use Selenium - seems pretty decent, but I don't know much about it - no idea how easy it is to setup or use.
 
Associate
Joined
25 Jan 2009
Posts
1,903
Location
UK
Hi snowdog,

I'm very knowledgeable with Selenium and use it on a daily basis. What language are you looking to write tests in? C#?

You can download Selenium Webdriver as a Nuget package in Visual Studio.

Once done, you can utilise it (it is a library) in your solution as part of unit tests using any runner you like (MSTest, NUnit, etc). It will handle frames without issue. I have done this many times running against old classic .asp websites.

Let me know if you need help with getting going. There really is no better tool or library out there for front end web test automation. But you need to do all the coding. No record and play feature.

If you need record and play and have Visual Studio Premium, check out CodedUI. It is a Microsoft tool and very good.
 
Last edited:
Soldato
OP
Joined
27 Oct 2005
Posts
13,737
Location
Netherlands
Thanks guys, haven't been at work due to being ill for a while but I'll be going today!

Well, the language wasn't that important as it was the actions that were important, however, seeing as it supports C#, I'll go with that for webdriver, but for now I'll save them in html.

I have tried Selenium IDE for Firefox and it is much more user friendly than CasperJS.

I haven't yet tried the Selenium Webdriver in VS, I will give Webdriver a go next week though.
 
Last edited:
Associate
Joined
25 Jan 2009
Posts
1,903
Location
UK
If I were you snowdog I'd focus on Webdriver and forget IDE. It is only really for doing very basic stuff and you will learn a lot by using Webdriver. If you are already familiar with C# and VS then the jump to using Webdriver will be quite painless and you will end up with some decent tests within your solution.
 
Back
Top Bottom