018 how to establish an automation framework how to bulid the framwork

Source: Internet
Author: User

This lecture includes:

I. Objective

Ii. How to bulid

3. KeyView of frawork (Key view)

Iv. Conclusion

Automation framwork: Automated Testing Framework aotumate: Functions and functions

1. For the detail, you are right, but for general, we can build a basic fram to fit the general purpose, here, what I'm taking is about this.

Ii. Example:

Purpose 1: this rule:

Ui action (click, Edit ....)

Handle (processing) the unexpected error

Validation, return the result of this: pass/fail

Purpose 2: create function library (create data function library), this is very userful concept (viewpoint, concept) to reduce the amount of your code quantity code and increase your code Quality

Of course, accroding the different situation, we can separate the function to the different level

Commom level

High Level

Here, I just create a Function Lib, and its contains two functions (meanwhile they are Cases)

Functing createtest ()

Steps

Validation

Return Value

End Function

Fuction Bucket Number ()

Steps

Validation

Return Value

End fuction

Purpose 3: output the result. There is important after execute all the cases. That's result analysis, so we need to make the result clear and easy to read and analysis.

Purpose 4: Define the drive

This is the most important things in the whole framwork, like the brain of Human

 

Iii. KeyView of framwork

Diver (opened in qtp)

Test (Excel file) Function Lib (vbs file) results (Excel file)

 

Iv. Conclusion

This is a high level framwork for the automation testing strategy, for the detail execution, we still need to add more things to make it more powerful.

 

018 how to establish an automation framework how to bulid the framwork

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.