Automated Testing: making preparations

Source: Internet
Author: User

Automated Testing: making preparations


Previously, I posted a reflection article on the promotion of automated testing applications in my blog. Many colleagues are wondering how to use the framework and whether it meets different website requirements, this framework will be used to design test cases in the future to meet the requirements of the audience, and practical examples will be used to explain how to operate


Taking Suning Tesco as an example, if you are an instructor of the framework, you only need to instruct students to learn XPATH.

 

Then fill in the data based on the template. If you are a functional tester and know how to write the XPATH path, what you need to do is

 

The following two steps can be used to compile an automation case.

 

 

Step 1: Enter XPATH

 

Get a unique Chinese name for each element (note that this is a Chinese name, which is the most difficult for Chinese people. No

 

In the same way as in pom, all the brain bubbles are represented by thousands of elements and the English name is used.) Fill in the xpath of the element in the second column.

 

 





Of course, if you are a senior engineer who has been in the automation industry for many years, I will evaluate it as soon as I use XPATH.

 

You can see how low the level is. xpath is the bottom of all positioning efficiency, and it is still mandatory to use xpath in the framework.

 

Yes, I do know the efficiency ranking relationship, which is the boss and the old one is the old one, because the target group of our framework will be

 

Colleagues in the manual testing field, because Firefox provides an xpath tool,




The new row student can check whether there is a problem with the path he/she has written in this tool before recording XPATH, so that the subsequent use cases can be written normally.

 

Now we can write test cases.

How to compile the use case? You only need to select the correct control Chinese name in the test object name column D, and the xpath will be automatically taken out later. In some input boxes, you need to enter data, if you enter the corresponding value in the test data, OK is displayed,

 

Functional testing only performs tests without comparing test results, which is not really automated, right? So we have another column to verify the data column,

 

Used to verify whether the expected and actual results are the same,



After all the settings are OK, we can run the test.

 

This framework case design is not simple. I am sure that this low-cost and efficient automated operation model will be widely used in the end, and I will spare no effort to promote the implementation and implementation of this technology,



If you have never been in touch with automation, take this opportunity to learn and recharge yourself so as not to lag behind.




Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

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.