开发者

Automated web application testing with Selenium IDE

开发者 https://www.devze.com 2023-04-01 04:46 出处:网络
I’m trying to use Selenium IDE to automate tests, so that I will not need to redo all the test cases for every update to the website functionality. However, I’m not sure if simple record-replay fash

I’m trying to use Selenium IDE to automate tests, so that I will not need to redo all the test cases for every update to the website functionality. However, I’m not sure if simple record-replay fashion is able to cope with the tests I need to run. To name a few, these look like (take the logging bit as an example):

  • Will a user get e-mail when he/she clicks “I forgot my password”?
  • If so, can he/she log in using new details?
  • If he/she enters two different passwords, or too short (less than 8 characters) password, will the system display proper error message?

Tests cover also issues like:

- “If admin changes rights for a user, will he/she be still able to do this or that?”

or

- “If a user enters a value into the quantity field, does the system check whether it is an integer? If it is, is the total price the result of quantity times price minus discount? (remember not every product/user is eligible for a di开发者_JAVA技巧scount).”

And so on. I’ve been looking for some tutorials, but so far I found only explanations on how to install Selenium IDE and do the record-replay. Thanks for your help in advance.


Do not use record and play for your test development. Your tests will be brittle and you will end up spending time in maintaining those. Write your own code!!


Selenium is more like an action record tool in your case, you still need to use selenium to generate the script/language you like(such as perl, python, java etc.) from the recorded action script, and run it for automated test.

tutorials can be found at http://seleniumhq.org/docs/05_selenium_rc.html#programming-your-test

0

精彩评论

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

关注公众号