What is test automation/What are the benefits of                                                                                 automating a test case?

Automation Testing is a software testing technique that performs using special automated testing software tools to execute a test case suite. On the contrary, Manual Testing is performed by a human sitting in front of a computer carefully executing the test steps.
Successive development cycles will require execution of same test suite repeatedly. Using a test automation tool, it’s possible to record this test suite and re-play it as required. Once the test suite is automated, no human intervention is required. This improved ROI of Test Automation. The goal of Automation is to reduce the number of test cases to be run manually and not to eliminate Manual Testing altogether.
自动化测试是使用一种特殊的工具来执行一系列测试,而手动测试是坐在电脑前一步一步手动执行测试。连续的开发周期将要求执行相同并且重复性的测试套件。使用自动工具可以记录测试并且按照要求重新播放。一旦测试被自动化,不需要人干扰。这样提高了自动化测试的ROI。自动化测试不是为了取代手动测试,而是为了降低一些手动操作重复工作。

     
 When do you automate a test case?
If you need to run the test cases a lot number of times in a test cycle, automation testing is what you should be looking at. It can provide you a great return on your investment. Repeatability is not a time consuming activity when you consider automation.
如果当你在测试周期运行许多次测试用例的时候,自动化测试是很有必要的。当你考虑自动化的时候,重复就不会变成了消耗时间的活动了。

      How do you choose which test case to automate?
  • Some features have to be tested before the others. Sometimes,when a pre determined order has to be followed while testing the test cases. Achieving this can be cumbersome and time consuming in manual testing since the testers are either required to remember the order, or refer to an external source to know the order. But with automated testing, the scripts can be timed and ordered to execute based on our needs.
  • If the test case will be frequently updated, then automating it may have to be given a second thought because changing the automated script of the test case is time consuming and defeats the purpose of automating it.
  • When your testing demands that you run the same set of test cases simultaneously on more than one machine, then you need to use automation testing. With manual testing, you cannot type the same test cases to run exactly at the same time on several machines. However, with automation testing, you can schedule the scripts so that the test cases are executed exactly at the same time on more than one system.

有些时候,测试用例必须遵守之前制定的测试顺序。但是对于手动测试来讲多少有点复杂和耗费时间的。手动测试还需要记住顺序,或者参考外部来确定顺序。但是自动化测试基于我们的需求
另外如果测试用例频繁update,自动化测试可能要考虑一下,因为频繁的更改脚本可能是一个耗时的事情。与自动化测试的目的相违背。
当你同时运行一套测试用例用例同时在多个机器上时。自动化测试是必须的。


      e. What is IWebDriver and IWebElement?

The IWebElement interface represents an HTML element. Generally, all interesting operations to do with interacting with a page will be performed through this interface.

The IWebDriver interface is the main interface to use for testing, which represents an idealized web browser. The methods in this class fall into three categories,
Control of the browser itself.
Selection of IWebElements




Comments

Popular posts from this blog