Implementing automated Tests in. NET

Source: Internet
Author: User

Background

The title looks new. In fact, the automation here is limited to a wide range of Web tests, similar to the LoadRunner test scripts, and is a common concept for test engineers. Of course, as a. NET application, you can also use the product demo.

The background I use is an automated check module in the continuous integration, daily build system.

The reason is 30 seconds, because the following to introduce the project is really simple, but want to master, from the gods to the gap between the great God is still very big. I'll just get you started.

Tools

Selenium (official website http://www.seleniumhq.org/)

AutoIt (official website http://www.autoitscript.com/site/)

Concept

The concept of things you can Google, here is a brief introduction to literacy. The 30-second process is then described.

Selenium is ThoughtWorks company (in the field of software engineering is really very tiger ah, its continuous integration system go is also quite good, directly give up the Jenkins) developed a set of web-based test tools, run directly in the browser, Simulates the user's actions. Let's talk about SELENIUM1,SELENIUM1 there are 2 versions, one is called Selenium-core, one is called SELENIUM-RC. Selenium-core is the HTML way to write test scripts, you can also use Selenium-ide to record scripts, but currently selenium-ide only FireFox version. SELENIUM-RC is the Selenium-remote control abbreviation for writing test classes using specific languages. SELENIUM-RC supports a lot of languages, C#,java,python and so on.

Selenium2 can also be called Webdriver released, Selenium2.0 has a concise api,webdriver and webelement objects, better abstraction. and support multiple operating systems, multi-language, multiple browsers. At the same time, the Selenium2.0 was adjusted and upgraded: Selenium2.0 = Selenium1.0 + Webdriver (that is, SELENIUM2.0 merged the two projects), so decisively chose the latter.

AutoIt is used in scenarios where webdriver cannot be completed independently, such as Flash, such as various special boxes. It is designed for automation in the Windows GUI (graphical user interface). It uses analog keyboard keys, mouse movements, and window/control combinations to automate tasks. And this is something that other languages can't do or have no reliable way to achieve.

30 seconds.

If you start 30 seconds from 0, this is mainly the selenium-ide described above, which currently supports Firefox only. Above figure

First 1 seconds-10 seconds

Change base URL Click on the right red dot start recording browser behavior I'm looking for the right. Search for "Stay Up Late bugs" click the Search button to jump

First 10 seconds-20 seconds

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.