CN112835789A - Realization technology for automatic test of automatic test framework - Google Patents

Realization technology for automatic test of automatic test framework Download PDF

Info

Publication number
CN112835789A
CN112835789A CN202110053750.5A CN202110053750A CN112835789A CN 112835789 A CN112835789 A CN 112835789A CN 202110053750 A CN202110053750 A CN 202110053750A CN 112835789 A CN112835789 A CN 112835789A
Authority
CN
China
Prior art keywords
automatic
test
framework
script
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110053750.5A
Other languages
Chinese (zh)
Inventor
薛占国
杜崇崇
罗海斌
王鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing tulayan Technology Co.,Ltd.
Original Assignee
Beijing Gaoyin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gaoyin Technology Co ltd filed Critical Beijing Gaoyin Technology Co ltd
Priority to CN202110053750.5A priority Critical patent/CN112835789A/en
Publication of CN112835789A publication Critical patent/CN112835789A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to the technical field of UI (user interface) packaging, in particular to a realization technology of automatic testing of an automatic testing framework, which can realize the automatic testing function of a multi-platform UI (user interface), provides a whole set of automatic flow for integrating the realization of a bottom packaging framework, flexibly joints other automatic testing frameworks, realizes the matching of a plurality of ends and a plurality of frameworks to finish the automatic testing work, solves the problem that the automatic testing cannot be flexibly applied, freely switches a plurality of environments to implement the automatic testing and realizes the automatic high multiplexing; the system comprises a PC-UI automation framework, a mobile terminal-UI automation framework, an extensible automation execution framework, a flexible automation log module, a practical report, a mail, a message module and an interface module which can be continuously integrated in a butt joint mode.

Description

Realization technology for automatic test of automatic test framework
Technical Field
The invention relates to the technical field of UI (user interface) packaging, in particular to a realization technology of automatic testing of an automatic testing framework.
Background
With the development of the IT industry, project services and processes are more complicated, manual efficiency and timeliness of manual testing greatly influence the time from project establishment to online of a project, automatic testing exists relative to functional testing and is an important link influencing functional testing all the time, and compared with functional testing, the automatic testing improves the execution efficiency of testing, saves time and cost, and liberates manpower to do more important work. Meanwhile, some testing work must be completed by means of automatic testing.
The automatic testing framework of the residence, Automationtest, is a collection of automatic testing frameworks, which collects: 1) PC-UI automation framework, 2) mobile-end-UI automation framework, 3) extensible automation execution framework, 4) flexible automation log module, 5) practical report, mail and message module, and 6) interface module capable of being butted and continuously integrated.
At present, UI (user interface) automatic test frames in the industry are various, frame packaging methods cannot meet specific service functions, automatic scripts are large in maintenance amount, codes of project products need to follow certain rules to ensure good multiplexing of the frame codes of the automatic test scripts, powerful technical support and solutions to specific problems are difficult to provide, the frame packaging methods have problems, cannot be applied, and are large in problem positioning difficulty and complex in processing. The automatic test results are tracked without perfect logs and reports, which are fundamental problems seriously restricting the realization of the automatic test.
Disclosure of Invention
In order to solve the technical problems, the invention provides a technology for realizing automatic testing of an automatic testing framework, which can realize the automatic testing function of a multi-platform UI, provides a whole set of automatic flow for integrating the realization of a bottom packaging framework, flexibly joints other automatic testing frameworks, realizes the matching of a plurality of ends and a plurality of frameworks to finish the automatic testing work, solves the problem that the automatic testing cannot be flexibly applied, freely switches a plurality of environments to implement the automatic testing, and realizes the high multiplexing of automation.
The invention relates to a technology for realizing automatic test of an automatic test framework, which comprises a PC-UI automatic framework, a mobile terminal-UI automatic framework, an extensible automatic execution framework, a flexible automatic log module, a practical report, a mail module, a message module and an interface module capable of being butted and continuously integrated.
The invention discloses a technology for realizing automatic test of an automatic test framework, which comprises the following steps: the automatic testing method comprises the steps that Python + Selenium + Unittest + loader can complete the establishment of a PC automatic testing framework, script compiling, script optimizing, script executing, log analyzing and establishment of a GitLab + Jenkins automatic server, the automatic script can be monitored in real time, the automatic testing server is updated by new codes, code updating of the automatic testing server is completed, real-time and timed execution of scripts can be achieved, continuous integration of automatic testing is achieved, automatic script log recording follow-up is added to the server, the reason for finding problems can be traced, the script executing can be completed by applying an HttpRunner report file to perform packaging method to generate an automatic visual testing report, automatic testing results can be synchronized in real time by packaged sending mails and nail information, the whole automatic testing result can be made to be consistent, and automatic testing function modules can be flexibly packaged according to actual requirements, And the switching of different environments of automatic testing is realized.
The invention discloses a technology for realizing automatic test of an automatic test framework, wherein a mobile terminal-UI automatic framework comprises the following steps: based on python language, remove end frame bottom encapsulation ATXserver and realize many equipment compatibility, it is automatic to use quick location element through the reporter to remove the end, the available location element method of encapsulation removal end, carry out the automation mechanized operation to the cell-phone, can judge whether the cell-phone is used to install when operating the cell-phone, APP packing method in the automatic execution jenkins of uninstallation meeting, the automatic pulling of APP package that finishes beating is to local project, the frame has encapsulated the methods of APP such as automatic installation, start, operation, carry out conventional automated test to removing end APP through these normal methods.
The invention discloses a technology for realizing automatic test of an automatic test framework, which comprises the following steps: the method comprises the steps of executing an automation script, packaging through a unit test frame unit frame of Python language, loading and executing the automation test script by using packaged ATXMethods.
The invention discloses a technology for realizing automatic test of an automatic test framework, which comprises the following steps: the method comprises the steps of recording and tracking errors generated during running through a LoggerMethods log module, adding log grades at different ends of an automatic log, generating output of specific logs of different projects, displaying an automatic execution result log through an application console and a report, analyzing the execution condition of an automatic test through the log, positioning the problem of errors of the automatic script, outputting an information log understood by an executor, enabling the automatic test result to be simple and readable, positioning the place and the reason of the errors of the script more easily for a functional tester executing the automatic test script, and quickly solving the problem of the script.
The invention discloses a technology for realizing automatic test of an automatic test framework, which comprises the following practical report, mail and message modules: the automatic test script is executed and completed, an automatic test report can be automatically generated, the automatic report can record the execution duration of the test script, the test result, the test execution chart, the test report case details, the test report log, the test report screenshot and other functions, the method of sending mails and nailing messages can be called after the report is generated, the automatic test report is sent to related personnel, the automatic test is made to have a basis, the automatic test can customize different reports and different message scenes in different scenes, and the whole automatic test result report output mechanism is perfected.
The invention relates to a technology for realizing automatic test of an automatic test framework, wherein an interface module capable of being continuously integrated in a butt joint mode: the method comprises the steps of submitting a script written by an automatic tester on a code server, automatically deploying and executing the code through the automatic test server, generating an automatic test visual report, finding a problem, collecting error logs in real time, and executing the automatic script regularly to ensure the sustainability of automatic execution.
Compared with the prior art, the invention has the beneficial effects that: the invention can realize the automatic test service of the integrated PC end and the mobile end, package a multi-end extensible automatic execution frame, realize the single file execution and the test set execution of the automatic script, execute the same automatic script on a plurality of mobile end devices, print output logs in real time, check script execution results, provide perfect extensible automatic test reports, integrate the automatic test reports to automatically send mails, nail messages and other services, realize the submission, pulling and execution of continuous integration of automatic codes, flexibly configure the execution mode, form a set of comprehensive automatic frame service, integrate the automatic test flow, the mediated automatic test frame multi-end integration, simultaneously execute the automatic script of the mobile end on a plurality of devices, automatically develop and customize the automatic log module, the automatic report, the mails, the nail module and the automatic script continuous integration flow, other related automated bottom-level packages also have many self-developed functions.
Drawings
FIG. 1 is a diagram of a PC-UI automation framework;
FIG. 2 is a mobile end-UI automation framework diagram;
FIG. 3 is a case load execution diagram of an ATXMethods.CaseTractetray automation script;
FIG. 4 is a block diagram of a log method;
FIG. 5 is a block diagram of a logging method;
FIG. 6 is a block diagram of a logging method;
FIG. 7 is a log output graph;
FIG. 8 is a test chart of a utility report, mail, message module;
FIG. 9 is a test chart of a utility report, mail, message module;
FIG. 10 is an automated script execution flow diagram.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
As shown in fig. 1 to 10, the technology for implementing the automated testing framework automatic testing of the present invention includes a PC-UI automation framework, a mobile-end-UI automation framework, an extensible automation execution framework, a flexible automation log module, a utility report, a mail, a message module, and an interface module capable of being continuously integrated by docking.
The technology for implementing automatic testing of the automatic testing framework of the invention is shown in figure 1, and the PC-UI automatic framework comprises the following steps: the automatic testing method comprises the steps that Python + Selenium + Unittest + loader can complete the establishment of a PC automatic testing framework, script compiling, script optimizing, script executing, log analyzing and establishment of a GitLab + Jenkins automatic server, the automatic script can be monitored in real time, the automatic testing server is updated by new codes, code updating of the automatic testing server is completed, real-time and timed execution of scripts can be achieved, continuous integration of automatic testing is achieved, automatic script log recording follow-up is added to the server, the reason for finding problems can be traced, the script executing can be completed by applying an HttpRunner report file to perform packaging method to generate an automatic visual testing report, automatic testing results can be synchronized in real time by packaged sending mails and nail information, the whole automatic testing result can be made to be consistent, and automatic testing function modules can be flexibly packaged according to actual requirements, And the switching of different environments of automatic testing is realized.
The technology for implementing automatic testing of the automatic testing framework of the invention is shown in fig. 2, and the mobile terminal-UI automatic framework: based on python language, the mobile terminal framework bottom layer is packaged with the ATXserver to realize multi-device compatibility, the mobile terminal automatically conducts application quick positioning elements through the mediator, a positioning element method which can be used by the mobile terminal is packaged, automatic operation is conducted on the mobile phone, whether the mobile phone application is installed or not can be judged while the mobile phone is operated, an APP packaging method in jenkins can be automatically executed when the mobile phone is not installed, the printed APP package is automatically pulled to a local project, APP methods such as automatic installation, starting and operation are packaged in the framework, and the APP of the mobile terminal is subjected to conventional automatic testing through the common methods;
the building of an automatic test framework of a mobile terminal, the maintenance of an automatic script and the execution of a cross-platform automatic script (android and IOS) can be completed through Python + uiautomator2+ ATXMethods, and the automatic script of the mobile terminal is executed on a plurality of devices simultaneously, so that the compatibility test of a plurality of device terminals of the mobile terminal is realized. The system supports automatic testing of wired and wireless connection mobile terminal equipment, is compatible with a log module of a PC (personal computer) frame, and is characterized in that a test report module adds a mobile terminal report screenshot function according to the characteristics of a mobile terminal project, and performs multi-equipment execution and report combination.
The technology for implementing automatic testing of the automatic testing framework of the invention is as shown in fig. 3, and the extensible automatic execution framework comprises: the method comprises the steps of executing an automation script, packaging through a unit test frame unit frame of Python language, loading and executing the automation test script by using packaged ATXMethods.
The technology for implementing automatic testing of the automatic testing framework of the invention is shown in fig. 4-7, and the flexible automatic log module: the method comprises the steps of recording and tracking errors generated during running through a LoggerMethods log module, adding log grades at different ends of an automatic log, generating output of specific logs of different projects, displaying an automatic execution result log through an application console and a report, analyzing the execution condition of an automatic test through the log, positioning the problem of errors of the automatic script, outputting an information log understood by an executor, enabling the automatic test result to be simple and readable, positioning the place and the reason of the errors of the script more easily for a functional tester executing the automatic test script, and quickly solving the problem of the script.
The technology for implementing automatic testing of the automatic testing framework of the invention is shown in fig. 8-9, and the practical report, mail and message module: the automatic test script is executed and completed, an automatic test report can be automatically generated, the automatic report can record the execution duration of the test script, the test result, the test execution chart, the test report case details, the test report log, the test report screenshot and other functions, the method of sending mails and nailing messages can be called after the report is generated, the automatic test report is sent to related personnel, the automatic test is made to have a basis, the automatic test can customize different reports and different message scenes in different scenes, and the whole automatic test result report output mechanism is perfected.
In the implementation technology of the automated testing framework of the present invention, as shown in fig. 10, the interface module capable of being continuously integrated by docking: submitting a script written by an automatic tester on a code server, automatically deploying and executing the code through the automatic test server, generating an automatic test visual report, finding a problem, collecting error logs in real time, and executing the automatic script regularly to ensure the sustainability of automatic execution;
deploying an automatic test script idea:
the automation server jenkins automatically draws the automatic test script codes submitted to the gitlab, jenkins can automatically build the submitted automatic codes, testers can automatically execute the automatic scripts immediately after clicking to build the automatic scripts, reports are generated, mails are sent, and nail driving reminding is achieved.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (7)

1. The automatic testing implementation technology of the automatic testing framework is characterized by comprising a PC-UI automation framework, a mobile terminal-UI automation framework, an extensible automation execution framework, a flexible automation log module, a practical report, a mail, a message module and an interface module which can be continuously integrated in a butt joint mode.
2. The implementation technique for automated testing of an automated testing framework of claim 1, wherein the PC-UI automation framework: the automatic testing method comprises the steps that Python + Selenium + Unittest + loader can complete the establishment of a PC automatic testing framework, script compiling, script optimizing, script executing, log analyzing and establishment of a GitLab + Jenkins automatic server, the automatic script can be monitored in real time, the automatic testing server is updated by new codes, code updating of the automatic testing server is completed, real-time and timed execution of scripts can be achieved, continuous integration of automatic testing is achieved, automatic script log recording follow-up is added to the server, the reason for finding problems can be traced, the script executing can be completed by applying an HttpRunner report file to perform packaging method to generate an automatic visual testing report, automatic testing results can be synchronized in real time by packaged sending mails and nail information, the whole automatic testing result can be made to be consistent, and automatic testing function modules can be flexibly packaged according to actual requirements, And the switching of different environments of automatic testing is realized.
3. The implementation technique for automated testing of an automated testing framework of claim 2, wherein the mobile end-UI automation framework: based on python language, remove end frame bottom encapsulation ATXserver and realize many equipment compatibility, it is automatic to use quick location element through the reporter to remove the end, the available location element method of encapsulation removal end, carry out the automation mechanized operation to the cell-phone, can judge whether the cell-phone is used to install when operating the cell-phone, APP packing method in the automatic execution jenkins of uninstallation meeting, the automatic pulling of APP package that finishes beating is to local project, the frame has encapsulated the methods of APP such as automatic installation, start, operation, carry out conventional automated test to removing end APP through these normal methods.
4. The automated testing framework automated testing implementation technique of claim 3, wherein the extensible automated execution framework: the method comprises the steps of executing an automation script, packaging through a unit test frame unit frame of Python language, loading and executing the automation test script by using packaged ATXMethods.
5. The automated testing framework automated testing implementation technique of claim 4, wherein the flexible automated logging module: the method comprises the steps of recording and tracking errors generated during running through a LoggerMethods log module, adding log grades at different ends of an automatic log, generating output of specific logs of different projects, displaying an automatic execution result log through an application console and a report, analyzing the execution condition of an automatic test through the log, positioning the problem of errors of the automatic script, outputting an information log understood by an executor, enabling the automatic test result to be simple and readable, positioning the place and the reason of the errors of the script more easily for a functional tester executing the automatic test script, and quickly solving the problem of the script.
6. The automated test framework automated test implementation technique of claim 5, wherein the utility reports, mails, messages module: the automatic test script is executed and completed, an automatic test report can be automatically generated, the automatic report can record the execution duration of the test script, the test result, the test execution chart, the test report case details, the test report log, the test report screenshot and other functions, the method of sending mails and nailing messages can be called after the report is generated, the automatic test report is sent to related personnel, the automatic test is made to have a basis, the automatic test can customize different reports and different message scenes in different scenes, and the whole automatic test result report output mechanism is perfected.
7. The automated test framework automated test implementation technique of claim 6, wherein the dockable persistent integrated interface module: the method comprises the steps of submitting a script written by an automatic tester on a code server, automatically deploying and executing the code through the automatic test server, generating an automatic test visual report, finding a problem, collecting error logs in real time, and executing the automatic script regularly to ensure the sustainability of automatic execution.
CN202110053750.5A 2021-01-15 2021-01-15 Realization technology for automatic test of automatic test framework Pending CN112835789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110053750.5A CN112835789A (en) 2021-01-15 2021-01-15 Realization technology for automatic test of automatic test framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110053750.5A CN112835789A (en) 2021-01-15 2021-01-15 Realization technology for automatic test of automatic test framework

Publications (1)

Publication Number Publication Date
CN112835789A true CN112835789A (en) 2021-05-25

Family

ID=75928233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110053750.5A Pending CN112835789A (en) 2021-01-15 2021-01-15 Realization technology for automatic test of automatic test framework

Country Status (1)

Country Link
CN (1) CN112835789A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116340190A (en) * 2023-05-30 2023-06-27 安元科技股份有限公司 Method for realizing multi-terminal fusion automation test

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851356A (en) * 2019-10-30 2020-02-28 河海大学 Selenium-based Web application automatic test framework and construction method and system thereof
CN110928774A (en) * 2019-11-07 2020-03-27 杭州顺网科技股份有限公司 Automatic test system based on node formula
CN111078547A (en) * 2019-12-05 2020-04-28 紫光云(南京)数字技术有限公司 Automatic testing framework system for PYTHON general APP software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851356A (en) * 2019-10-30 2020-02-28 河海大学 Selenium-based Web application automatic test framework and construction method and system thereof
CN110928774A (en) * 2019-11-07 2020-03-27 杭州顺网科技股份有限公司 Automatic test system based on node formula
CN111078547A (en) * 2019-12-05 2020-04-28 紫光云(南京)数字技术有限公司 Automatic testing framework system for PYTHON general APP software

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LINPENGCHENG: "ATX 基于 ATX-Server 的 UI 自动化测试框架", pages 1, Retrieved from the Internet <URL:https://testerhome.com/topics/14699> *
ST_君华: "Jenkins+GitLab+Python自动化测试持续集成", pages 1 - 5, Retrieved from the Internet <URL:https://blog.csdn.net/Wuli_SmBug/article/details/106365158> *
ST_君华: "python+selenium+unittest自动化测试框架", pages 1 - 6, Retrieved from the Internet <URL:https://blog.csdn.net/Wuli_SmBug/article/details/86617212?spm=1001.2014.3001.5502> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116340190A (en) * 2023-05-30 2023-06-27 安元科技股份有限公司 Method for realizing multi-terminal fusion automation test

Similar Documents

Publication Publication Date Title
CN109933522B (en) Test method, test system and storage medium for automatic case
CN102495799A (en) Automatic test system and method of movable terminal
CN111858336B (en) Automatic software testing method and system
CN112130956A (en) Jenkins-based automatic CI/CD pipeline method
CN111078547A (en) Automatic testing framework system for PYTHON general APP software
CN114490319A (en) Distributed continuous integration automatic test method and system
KR100794130B1 (en) Automatic Function Testing Equipment for Application Software and Additional Service of Mobile Communication Terminal
CN112835789A (en) Realization technology for automatic test of automatic test framework
CN107844486B (en) Method and system for analyzing webpage problems for client
CN110928796A (en) Automatic change test platform
CN112506772B (en) Web automatic test method, device, electronic equipment and storage medium
CN109634856B (en) IOS intelligent terminal remote real machine debugging system and method based on cloud service
Nagarani et al. A tool based approach for automation of GUI applications
Na et al. Extension and application based on robot testing framework
CN113641575B (en) Test method, device, equipment and storage medium
CN116298340A (en) Product defect detection method and system based on task scheduling
CN116028367A (en) Automatic test system and method
CN108536587A (en) A kind of automated testing method and system based on Appium
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN108845931A (en) A kind of automated test frame based on natural language
CN114996039A (en) Cloud native system joint debugging method, system and medium based on third-party system docking
CN114745313A (en) Terminal remote testing method and device, electronic equipment and readable medium
CN113934642A (en) Software compatibility testing method based on dynamic and static combination
CN115269375A (en) Multi-terminal interactive automatic testing method and device and electronic equipment
CN114385258A (en) Automatic testing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210825

Address after: 100000 1025, floor 1, No. 1, Kaifa Road, Shangdi Information Industry base, Haidian District, Beijing

Applicant after: Beijing tulayan Technology Co.,Ltd.

Address before: 100089 08a01, block D, 8 / F, No. a 28, information road, Haidian District, Beijing

Applicant before: Beijing Gaoyin Technology Co.,Ltd.

TA01 Transfer of patent application right