Automated testing method and system
A technology of automated testing and test scripts, applied in software testing/debugging and other directions, can solve problems such as difficulty in getting started, not easy to share, and unintuitive model codes, so as to reduce maintenance costs, reduce learning costs, and have flexible applications.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] For example, the interface to be tested is a Web interface. First generate a current interface that has not added any controls or sub-modules, and then place controls directly under the current interface. This control is used most in scripts and has nothing to do with other controls. This interface model is easy to use, and the calling method is simple and intuitive. Such as image 3 In the search page 30 shown, the modeling of the search box 301 and the search button 302 is as follows:
[0042] English name Chinese name Selector submodule collection
[0043] txt_search_box search box input[name=q][id=title] no no
[0044] btn_search search button button[type=submit] no no
[0045] Script call:
[0046] page.txt_search_box.set "automan" #Enter automan in the search box
[0047] page.btn_search.click #search
Embodiment 2
[0049] When the number or content of elements is variable, and more than three similar controls appear on the interface, use a set of controls, that is, a set of controls directly placed under the current interface. This interface model has a flexible calling method and supports an indefinite number of controls. controls. Such as Figure 4 In the shown interface 40, there are 5 similar controls under the list 401 of "Today's Hot Spots", so they are treated as an array set, and the specific modeling method is as follows:
[0050] English name Chinese name Selector submodule collection
[0051] lnk_today_hots hot link div.hot a no yes
[0052] Script call:
[0053] page.lnk_today_hots[0].text=>“Dress” #Take the content ranked first among the hots
[0054] page.lnk_today_hots["female bag"].click #click the link of female bag
[0055] page.lnk_today_hots["octopus"].exist? =>false #There is no octopus in this popular list
Embodiment 3
[0058] When there are many points to be measured on the interface and there are too many controls, it is necessary to classify the controls, and the interface is too large, and the search speed is slow. The sub-module is saved as a variable (that is, buffered) to improve the speed. This interface model The classification is clear, which can solve problems such as messy controls. Such as Figure 5 The shown search interface 50 and many other controls on the interface 50 are not described in this embodiment, so they are omitted here. Such as Figure 5 As shown, there are 6 controls in the self-service page 501, so these 6 controls are classified into a sub-module, and then the controls are placed under the sub-module. The specific modeling method is as follows:
[0059]
[0060]
[0061] Script call:
[0062] page.self_service.lnk_forgot_password.click # Click to retrieve the login password
[0063] page.self_service.lnk_refund_list.click #Point refund appeal certifica...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com