Finding ways to automate website testing

We are developing custom survey websites, and I am looking for a way to automate the testing of templates for these sites. Surveys often contain many complex rules and branches that are triggered as answers to questions. All surveys are thoroughly tested before being released to customers. This test leads to a lot of manual work. I would like to learn about some of the options that I could use to automate these tests by answering questions and checking the results in a database. Survey sites are created by an engine that creates and writes asp pages and receives responses to the process in the database. Thus, the only way I can define for testing the site is to interact with the web pages themselves. I guess I need to build some kind of bot; I really don't know much about the design behind them.

Can someone please give some suggestions on how to achieve this? Thank you for your time.

Brett

+4
source share
9 answers

You can also check out WatiN .

+5
source

It looks like your engine can generate a test script using something like Test :: WWW :: Mechanize

0
source

Conventional testing methods are used; white box and black box.

Testing the white box for you may mean that the application should be able to make it go into a specific state, then you can predict the expected result.

A black box may mean that you click on a page, and then consider the possible results. Repeat and rinse until you get enough coverage.

Another thing that we use is monitoring statistics for our service. Did we get the expected number of views on this page. We run a / b tests regularly, and I checked a / b tests with refactored code to make sure that nothing has changed before rolling over.

/ Allan

0
source

I can imagine a couple of good web application testing kits that should do the job - one free / open source and one commercial:

Both allow you to create test packages by checking database records based on interaction with a web application.

The fact that you are based on Windows / ASP may mean that TestComplete will speed up and speed up work, as it is native to Windows and .NET. You can download a free trial to see if it will work for you before investing.

0
source

Check out the lime testing module that comes with the Symfony framework. http://www.symfony-project.org/book/1_0/15-Unit-and-Functional-Testing . You did not specify the language, lime is php.

0
source

I would suggest a mechanical stone available for ruby. This is pretty intuitive.

0
source

I am using QEngine (commerical) for the same purpose. I need to add data and check it in the user interface. I am writing one script that does this and calls it in a loop. data can be transferred via csv or excel. check that www.qengine.com, you can also try Watir.

0
source

My suggestion is QA Agent ( http://qaagent.com ). This seems to be a new approach because you don't need to install anything. Just create your web tests in ide browser. By the way, you can develop your tests using jQuery and java script. Really cool!

0
source

Source: https://habr.com/ru/post/1276726/


All Articles