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