Looking for the ways for test automation of web site

我是研究僧i 提交于 2020-02-01 05:01:46

问题


We develop custom survey web sites and I am looking for a way to automate the pattern testing of these sites. Surveys often contain many complex rules and branches which are triggered on how items are responded too. All surveys are rigorously tested before being released to clients. This testing results in a lot of manual work. I would like to learn of some options I could use to automate these tests by responding to questions and verifying the results in the database. The survey sites are produced by an engine which creates and writes asp pages and receives the responses to process into a database. So the only way I can determine to test the site is to interact with the web pages themselves. I guess in a way I need to build some type of bot; I really don't know much about the design behind them.

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

Brett


回答1:


Check out selenium: http://selenium.openqa.org/

Also, check out the answers to this other question: https://stackoverflow.com/questions/484/how-do-you-test-layout-design-across-multiple-browsersoss




回答2:


You could also check out WatiN.




回答3:


Sounds like your engine could generate a test script using something like Test::WWW::Mechanize




回答4:


Usual test methodologies applies; white box and black box.

White box testing for you may mean instrumenting your application to be able to make it go into a particular state, then you can predict the the result you expect.

Black box may mean that you hit a page, then consider of the possible outcomes valid. Repeat and rinse till you get sufficient coverage.

Another thing we use is monitoring statistics for our service. Did we get the expected number of hits on this page. We routinely run a/b tests, and I have run a/b tests against refactored code to verify that nothing changed before rolling things out.

/Allan




回答5:


I can think of a couple of good web application testing suites that should get the job done - one free/open source and one commercial:

  1. Selenium (open source/cross platform)
  2. TestComplete (commercial/Windows-based)

Both will let you create test suites by verifying database records based on interactions with the web app.

The fact that you're Windows/ASP based might mean that TestComplete will get you up and running faster, as it's native to Windows and .NET. You can download a free trial to see if it'll work for you before making the investment.




回答6:


Check out the unit testing framework 'lime' that comes with the Symfony framework. http://www.symfony-project.org/book/1_0/15-Unit-and-Functional-Testing. You didn't mention you language, lime is php.




回答7:


I would suggest the mechanize gem,available for ruby . It's pretty intuitive to use .




回答8:


I use the QEngine(commerical) for the same purpose. I need to add a data and check the same in the UI. I write one script which does this and call that in a loop. the data can be passed via either csv or excel. check that www.qengine.com , you can try Watir also.




回答9:


My proposal is QA Agent (http://qaagent.com). It seems this is a new approach because you do not need to install anything. Just develop your web tests in the browser based ide. By the way you can develop your tests using jQuery and java script. Really cool!



来源:https://stackoverflow.com/questions/69375/looking-for-the-ways-for-test-automation-of-web-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!