CN108647147B - Automatic testing robot implemented by using atlas analysis and use method thereof - Google Patents

Automatic testing robot implemented by using atlas analysis and use method thereof Download PDF

Info

Publication number
CN108647147B
CN108647147B CN201810459148.XA CN201810459148A CN108647147B CN 108647147 B CN108647147 B CN 108647147B CN 201810459148 A CN201810459148 A CN 201810459148A CN 108647147 B CN108647147 B CN 108647147B
Authority
CN
China
Prior art keywords
test
script
data
robot
execution
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.)
Active
Application number
CN201810459148.XA
Other languages
Chinese (zh)
Other versions
CN108647147A (en
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.)
Nanjing Tinypace Information Technology Co ltd
Original Assignee
Nanjing Tinypace Information 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 Nanjing Tinypace Information Technology Co ltd filed Critical Nanjing Tinypace Information Technology Co ltd
Priority to CN201810459148.XA priority Critical patent/CN108647147B/en
Publication of CN108647147A publication Critical patent/CN108647147A/en
Application granted granted Critical
Publication of CN108647147B publication Critical patent/CN108647147B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic test robot executed by using atlas analysis and a using method thereof, the robot comprises a display layer, a system layer, a tool layer and a data layer, wherein the display layer is a test platform of a test robot, the system layer comprises service atlas management, test case management, test data management and test task management, the tool layer comprises natural language understanding, character recognition, image recognition, UIAutomator and JUnit, and the data layer comprises a service atlas, a test case, test data and a test report. The invention more intuitively displays the business process relation of the software product, changes the current situation that the existing test engineer compiles the test case according to experience, reduces the test technical threshold, improves the test coverage rate, reduces the technical requirements of script compiling personnel, and reduces the test deficiency caused by business change and the waste caused by full test. The perfect data acquisition and analysis system can comprehensively analyze the performance, function and compatibility problems of the application and report the problems in time.

Description

Automatic testing robot implemented by using atlas analysis and use method thereof
Technical Field
The invention relates to the technical field of software testing, in particular to a robot for executing automatic testing by using spectrum analysis and a using method thereof.
Background
Software testing is a means to ensure quality. With the surge of internet economy, companies are expanding their own services at the mobile end, and ensuring the quality of mobile apps must be paid sufficient attention. On the other hand, the high testing cost of the software is a problem to be faced, and many small companies which are just established have difficulty doing enough work in the software testing process if the fund is insufficient. On the other hand, if the test is insufficient, the software quality problem flows into the market, and the cost of the solution can not be measured. Many companies encounter this discrepancy, which is difficult to justify in the investment of software testing.
In the traditional test flow, a test expert firstly compiles a test plan, then performs requirement analysis and compiles a test case, prepares a test environment and finally executes the test. If the test script needs to be automatically executed, a special automatic engineer compiles the test script, the test technology threshold is high, and the technical requirement on a writer is high. In the existing automatic testing scheme, a script is basically written by using a programming language, then the test is compiled and executed by a compiler, the script compiling work naturally has certain requirements, and at least the programming language is needed; and the test data is written in the test script, so that the test script can not be isolated from the test data, if another group of data needs to be tested, the code script of the data needs to be refilled, recompiled and executed again, and the problem of low test efficiency is brought.
Disclosure of Invention
The present invention is directed to a robot for performing an automatic test using a spectrum analysis and a method for using the same, which solve the problems of the related art.
In order to achieve the purpose, the invention provides the following technical scheme:
the robot comprises a display layer, a system layer, a tool layer and a data layer, wherein the display layer is a test platform of the test robot, the system layer comprises service map management, test case management, test data management and test task management, the tool layer comprises natural language understanding, character recognition, image recognition, UIAutomator and JUnit, and the data layer comprises a service map, a test case, test data and a test report. The use method of the robot testing machine for automatically testing by using the atlas analysis comprises the following steps:
A. test preparation, input of test patterns
a. The method comprises the steps of inputting a graph on a testing robot graph input page, building a node, editing node content, constructing a relationship among nodes in a dragging mode, wherein the node types comprise scene nodes, operation nodes and result nodes.
b. The service map is constructed in a CSV file import mode, the types of the nodes and the relation between the nodes are recorded in the CSV file, and the service map is directly constructed in a one-key import mode.
c. Analyzing the use paths of the users by analyzing the log, and combining the use paths of all the users to construct a map;
B. test preparation, compiling a natural language test script;
compiling a test script according to the service requirement of the tested software, setting a word slot in the test script, and storing the script in a corresponding operation node of the map;
in a system for testing a robot, a set of grammars is provided that can be scripted in Chinese. The user can edit the test script in the natural language by clicking, sliding, dragging and the like.
C. Test analysis, automatic test case splitting, extracting key path
The test robot system automatically traverses and analyzes all test cases according to the service map, combines scripts required by all test cases, and obtains a main test path of the software product according to the weight, and if the main test path is registered, logged in, inquired and transferred, the following four cases are removed:
a. firstly, inputting a user name, a mobile phone number and a password; secondly, clicking to register;
b. firstly, inputting a user name, a mobile phone number and a password; secondly, clicking to register; inputting user name and password; fourthly, clicking to log in;
c. firstly, inputting a user name, a mobile phone number and a password; secondly, clicking to register; inputting user name and password; fourthly, clicking to log in; fifthly, opening the My; selecting one of the bank cards; seventhly, clicking to inquire balance;
d. firstly, inputting a user name, a mobile phone number and a password; secondly, clicking to register; inputting user name and password; fourthly, clicking to log in; inputting the name, bank card information and telephone number of the opposite party; sixthly, selecting the transfer card and inputting the amount; and seventhly, submitting, inputting a verification code and confirming the transfer.
The third and fourth use cases relate to a large number of use cases, and the result of the system analysis is the critical path.
And along with the disassembly of the test cases, the corresponding test scripts can be automatically disassembled and assembled, and each test case has a Chinese test script.
D. Test preparation, test data entry
After the test cases and the Chinese test scripts are analyzed and split, the test robot can automatically analyze word slots in the test scripts of each test case and store the word slots in a test data database, and operations of adding, deleting, checking and changing the test data can be provided on an independent test data management page. And because the test script and test data are isolated, a test script may have multiple sets of data.
E. Test execution, integration of test scripts and test data
And (4) executing the test, namely selecting a test case and test data to be tested, and automatically filling the test data into a word slot of the test script by the system to form a complete executable Chinese test script. And storing the task to the task distribution server to wait for the task to be distributed. Each script has a corresponding scene directory, each directory code has a scene, and the directory name is a test scene name; the scripts of all the test cases of the scene are stored in the scene directory, the script of each test case is stored as a text file, the file name is the name of the test case, and when a test case selects multiple groups of data, the file name is the combination of the test case name and the test data group name.
F. Test execution, test task distribution
The test task distribution mode comprises the following steps: all executed, random execution.
All the steps are carried out as follows: and all the test scripts are completely distributed to each mobile phone, and each mobile phone is ensured to execute all the test scripts.
Randomly executing: and randomly distributing all the test scripts to each mobile phone to ensure that all the test scripts can be executed once.
G. Test execution, artificial intelligence platform understanding natural language and execution
The test task is distributed to a controller of each mobile phone, and the controller is a computer with an operating system of Linux and is responsible for controlling the mobile phones, installing and uninstalling apps, executing automation and the like.
The Chinese test script execution program is stored in the controller, and once the Chinese test script is received, the Chinese test script reads the script and analyzes the action of each step of the script, extracts the test data, converts the action and the data into a program instruction which can be understood by the mobile phone and sends the program instruction to the mobile phone for execution.
H. Test report for recording and analyzing the performance, function and compatibility of application
When the script is executed, performance data, a system log, a script log and an application screenshot in the application running process can be generated.
The test robot will summarize the results of all cell phone executions and generate a test report.
As a still further scheme of the invention: after the map is constructed, the testing robot system automatically traverses the map database, automatically splits the test cases, extracts the test paths, stores the test paths in the test case library, and displays and manages the test cases.
As a still further scheme of the invention: after the test cases are analyzed and disassembled, test data are recorded aiming at the Chinese test script of each test case, and one test case supports recording of multiple groups of test data.
During test execution, according to the selected Chinese test script of the test case and the test data combination, the test data is replaced into the word slot of the test script to form the executable Chinese test script.
The specific execution mode comprises the following steps: all executed, random execution. After the test task is completed, the system log, the script log, the screenshots and the running problems generated on each mobile phone are collected to generate a test report.
Compared with the prior art, the invention has the beneficial effects that: the invention displays the business process relation of the software product more intuitively in a map mode. The test case is intelligently analyzed and split, the key path is extracted, the current situation that the test case is compiled by the existing test engineer according to experience is changed, the test technology threshold is reduced, and the test coverage rate is improved. An artificial intelligent platform is used for understanding the operation process and verification points of natural language writing, a case machine test script is constructed in a full-automatic mode, and the technical requirements of script writers are lowered. The test cases influenced by the existing service change are quickly positioned, and the test insufficiency caused by the service change and the waste caused by the full test are reduced. The perfect data acquisition and analysis system can comprehensively analyze the performance, function and compatibility problems of the application and report the problems in time. The invention is an intelligent testing tool integrating a plurality of technologies such as artificial intelligence, mobile interconnection and testing, and can be applied to App and Web terminals in all industries. After a user designs a test scene, frames test contents in a foolproof manner and prepares test data through a natural language, the test scene and a case are automatically executed, test results are automatically compared, and the traditional manual test and automatic script test are really replaced.
Drawings
Fig. 1 is a system block diagram of an automated test robot and method of using the same using map analysis.
Fig. 2 is a flow chart of use of an automated test robot and method of use thereof using atlas analysis.
Fig. 3 is a business map for performing an automated test robot and a method of using the same using map analysis.
Detailed Description
The technical solution of the present patent will be described in further detail with reference to the following embodiments.
Referring to fig. 1 to 3, an automatic test robot using atlas analysis execution includes a presentation layer, a system layer, a tool layer, and a data layer, the presentation layer is a test platform of a test robot, the system layer includes service atlas management, test case management, test data management, and test task management, the tool layer includes natural language understanding, character recognition, image recognition, UIAutomator, and a joint, and the data layer includes a service atlas, a test case, test data, and a test report. The use method of the robot testing machine for automatically testing by using the atlas analysis comprises the following steps:
A. test preparation, input of test patterns
a. The method comprises the steps of inputting a graph on a testing robot graph input page, building a node, editing node content, constructing a relationship among nodes in a dragging mode, wherein the node types comprise scene nodes, operation nodes and result nodes.
b. The service map is constructed in a CSV file import mode, the types of the nodes and the relation between the nodes are recorded in the CSV file, and the service map is directly constructed in a one-key import mode.
c. Analyzing the use paths of the users by analyzing the log, and combining the use paths of all the users to construct a map
B. Test preparation, compiling natural language test script
In the execution of the conventional automatic test, a special person is always required to write a test script, a writer needs to have the capability of writing codes, common programming languages are java, python, c + + and the like, and the programming languages cause the problem that the automation is not easy to use.
In a system for testing a robot, a set of grammars is provided that can be scripted in Chinese. And compiling a test script according to the service requirement of the tested software, setting a word slot in the test script, and storing the script in a corresponding operation node of the map. The specific syntax is as follows:
inputting:
Figure GDA0002736602650000041
inputting a short message verification code to { control ResourceID attribute value } through ResourceID
Figure GDA0002736602650000042
Inputting short message verification code to { sequential number } th { display text of control } through OCR
Figure GDA0002736602650000051
Inputting characters needing to be input into the control through the resource ID (the character is input into the control) to obtain the resource ID attribute value
Figure GDA0002736602650000052
Inputting from Text { character to be input } to control Text attribute }
Figure GDA0002736602650000053
Inputting { character required to input } to { sequential number } of { character displayed for control } by OCR
Figure GDA0002736602650000054
Clicking { soft keyboard character needing to be input } through a soft keyboard
Waiting:
Figure GDA0002736602650000055
wait for { time-number } s
Figure GDA0002736602650000056
Wait for { control ResourceID attribute value } to appear through ResourceID, wait for { time number } s at most
Figure GDA0002736602650000057
Wait for { control Text attribute value } to occur by Text, at most, wait for { time number } s
Figure GDA0002736602650000058
Wait for { display text of widget } occurrence by OCR, at most for { time number } s
Figure GDA0002736602650000059
Png waits for the occurrence of the '# test #' through Image and waits for { time number } s at most
Clicking:
Figure GDA00027366026500000510
png, records as' # test # }, { upper left corner, upper right corner, lower left corner, middle (five choices) of { control screenshot filename, such as testOne) }
Figure GDA00027366026500000511
Clicking the display text of the { sequential number } th { control } by OCR
Figure GDA00027366026500000512
Click by position [ { coordinate x-axis }, { coordinate y-axis }]
Figure GDA00027366026500000513
Clicking the { sequential number } sub-control of { control ResourceID attribute value } through ResourceID
Figure GDA00027366026500000514
Click { control ResourceID attribute value } through ResourceID
Figure GDA00027366026500000515
Click { control Text attribute } through Text
Sliding:
Figure GDA00027366026500000516
sliding is continuously performed until the occurrence of the { control resource ID attribute value } is found through resource ID
Figure GDA00027366026500000517
Sliding is continuously performed until the occurrence of the control Text attribute value is found through the Text
Figure GDA00027366026500000518
Continuously sliding up, down, left and right (one of four) until the display characters of the controls appear through OCR
Figure GDA0002736602650000061
Sliding up, down, left and right (one out of four) continuously until the screenshot file name of the control, such as test, is found through Image, recording as '# test #' } occurrence
Figure GDA0002736602650000062
Png slides from { upper left corner, upper right corner, lower left corner, middle (one of five) } recorded as '# test # } to { upper left corner, upper right corner, lower left corner, middle (one of five) } of { target control, png records { upper left corner, upper right corner, lower left corner, middle (one of five) } of' # test # }
Figure GDA0002736602650000063
Sliding from { sequentially number } th { display text of origin control } to { sequentially number } th { display text of target control } by OCR
Figure GDA0002736602650000064
Slide from { starting control ResourceID attribute value } to { target control ResourceID attribute value } through ResourceID
Figure GDA0002736602650000065
Slide through Text from { starting control Text attribute value } to { target control Text attribute value }
Figure GDA0002736602650000066
The pass-through position is from [ { starting point coordinate x-axis }, { starting point coordinate y-axis }]Slide to [ { target point coordinate x-axis }, { target point coordinate y-axis }]
Dragging:
Figure GDA0002736602650000067
png, drag from { upper left corner, upper right corner, lower left corner, middle (one of five) } recorded as '# test # } to { upper left corner, upper right corner, lower left corner, middle (one of five) } of { target control, png, record as' # test # } { upper left corner, upper right corner, lower left corner, middle (one of five) }
Figure GDA0002736602650000068
Dragging from display text of { sequentially numbered } th { start control } to display text of { sequentially numbered } th { target control } by OCR
Figure GDA0002736602650000069
Dragging from the initial control ResourceID attribute value to the target control ResourceID attribute value through ResourceID
Figure GDA00027366026500000610
Dragging from { starting control Text attribute value } to { target control Text attribute value } by Text
And (4) verification point:
Figure GDA00027366026500000611
verifying whether the { control ResourceID attribute value } exists through ResourceID [ { verification point name }]
Figure GDA00027366026500000612
Verify by Text whether a { control Text attribute } exists- [ { verify point name }]
Figure GDA00027366026500000613
Png verifies through Image whether the screenshot file name of the { control, such as test # '}, is recorded as' # test # } exists [ { verification point name }]
Figure GDA0002736602650000071
Verifying existence of display characters of controls by OCR [ { verification point name }]
Figure GDA0002736602650000072
Verifying whether the value of the { control ResourceID attribute value } is { control Text attribute value } - [ { verification point name }through ResourceID]
And others:
Figure GDA0002736602650000073
return to
Figure GDA0002736602650000074
Screenshot
Wherein, resource ID and Text are attribute values of the control and are suitable for standard controls; OCR, Image, web page or game display text or pictures, requiring additional calls for text recognition services and Image recognition services.
When scripts are actually written, the scripts are input into operation nodes of a service graph, and word slots are set in the scripts according to service requirements by the scripts, for example:
xxx, id/et tel, by inputting user name to com by resource ID
Xxx, id/et passcode is input through ResourceID
user _ name and user _ password, which are respectively a user name and a user password required for login.
C. Test analysis, automatic test case splitting, extracting key path
The test robot system automatically traverses and analyzes all test cases according to the service map, combines scripts required by all the test cases, and obtains a main test path of the software product according to the weight. As shown in FIG. 3, the following four cases are removed from the registration, login, inquiry, and transfer scenarios:
a. firstly, inputting a user name, a mobile phone number and a password; secondly, clicking to register;
b. firstly, inputting a user name, a mobile phone number and a password; secondly, clicking to register; inputting user name and password; fourthly, clicking to log in;
c. firstly, inputting a user name, a mobile phone number and a password; secondly, clicking to register; inputting user name and password; fourthly, clicking to log in; fifthly, opening the My; selecting one of the bank cards; seventhly, clicking to inquire balance;
d. firstly, inputting a user name, a mobile phone number and a password; secondly, clicking to register; inputting user name and password; fourthly, clicking to log in; inputting the name, bank card information and telephone number of the opposite party; sixthly, selecting the transfer card and inputting the amount; and seventhly, submitting, inputting a verification code and confirming the transfer.
The third and fourth use cases relate to a large number of use cases, and the result of the system analysis is the critical path. And along with the disassembly of the test cases, the corresponding test scripts can be automatically disassembled and assembled, and each test case has a Chinese test script.
D. Test preparation, test data entry
After the test cases and the Chinese test scripts are analyzed and split, the test robot can automatically analyze word slots in the test scripts of each test case and store the word slots in a test data database, and operations of adding, deleting, checking and changing the test data can be provided on an independent test data management page. And because the test script and test data are isolated, a test script may have multiple sets of data.
E. Test execution, integration of test scripts and test data
And (4) executing the test, namely selecting a test case and test data to be tested, and automatically filling the test data into a word slot of the test script by the system to form a complete executable Chinese test script. And storing the task to the task distribution server to wait for the task to be distributed. Each script has a corresponding scene directory, each directory code has a scene, and the directory name is a test scene name; the scripts of all the test cases of the scene are stored in the scene directory, the script of each test case is stored as a text file, the file name is the name of the test case, and when a test case selects multiple groups of data, the file name is the combination of the test case name and the test data group name.
F. Test execution, test task distribution
The test task distribution mode comprises the following steps: all executed, random execution.
All the steps are carried out as follows: and all the test scripts are completely distributed to each mobile phone, and each mobile phone is ensured to execute all the test scripts.
Randomly executing: and randomly distributing all the test scripts to each mobile phone to ensure that all the test scripts can be executed once.
G. Test execution, artificial intelligence platform understanding natural language and execution
The test task is distributed to a controller of each mobile phone, and the controller is a computer with an operating system of Linux and is responsible for controlling the mobile phones, installing and uninstalling apps, executing automation and the like.
The Chinese test script execution program is stored in the controller, and once the Chinese test script is received, the Chinese test script reads the script and analyzes the action of each step of the script, extracts the test data, converts the action and the data into a program instruction which can be understood by the mobile phone and sends the program instruction to the mobile phone for execution.
H. Test report for recording and analyzing the performance, function and compatibility of application
When the script is executed, performance data, a system log, a script log and an application screenshot in the application running process can be generated.
The test robot will summarize the results of all cell phone executions and generate a test report.
The business map in the invention is used for storing and displaying the business logic of the application in the form of a graphic database. Such as registration, login, inquiry, transfer scenarios. The registration needs: firstly, inputting a user name, a mobile phone number and a password; secondly, clicking to register; the login needs: firstly, inputting a user name and a password; secondly, clicking to log in; the query needs: opening My; selecting one of the bank cards; clicking to inquire balance; transfer of funds requires: inputting the name, bank card information and telephone number of the opposite party; selecting a transfer card and inputting the amount; and thirdly, submitting, inputting a verification code and confirming the transfer.
In addition, in the process of building the map, the Chinese test scripts of the corresponding steps are recorded into the nodes (when the Chinese test scripts are executed, special Chinese test script execution programs are used for analyzing and executing the Chinese test scripts), and test data required to be filled in according to the corresponding steps are obtained. A word slot is prepared in the chinese test script. The method is used for entry management of test data.
After the map is constructed, the testing robot system automatically traverses the map database, automatically splits the test cases, extracts the test paths, stores the test paths in the test case database and can display and manage the test cases.
After the test cases are analyzed and disassembled, test data can be input aiming at the Chinese test script of each test case, one test case supports inputting of multiple groups of test data, for example, the input test case can be tested by using two groups of user names and passwords.
During test execution, the test data can be replaced into the word slot of the test script according to the selected Chinese test script of the test case and the test data combination to form the executable Chinese test script.
The specific execution mode comprises the following steps: all executed, random execution. After the test task is completed, the system log, script log, screenshot and operation problems generated on each mobile phone are collected to generate a test report.
The invention stores and displays the business logic relation of the application in a graphic database form, and is more intuitive. And (4) intelligently analyzing the split test case and extracting a key path. And (3) understanding the operation process and verification points written by the natural language by using an artificial intelligent platform, and fully automatically constructing a case machine test script. The test script is separated from the test data, and the script and the data are combined randomly, so that the test efficiency is improved.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (5)

1. Use of a robot for performing automated tests using atlas analysis, the use comprising the steps of:
A. test preparation, test map input:
a. inputting a map on a test robot map input page, creating a node, editing node content, wherein the node type comprises a scene node, an operation node and a result node, and the relationship between the nodes is established in a dragging mode;
b. the method comprises the steps that a service map is constructed in a CSV file import mode, the type of nodes and the relation between the nodes are recorded in the CSV file, and the service map is directly constructed in a one-key import mode;
c. analyzing the use paths of the users by analyzing the log, and combining the use paths of all the users to construct a map;
B. test preparation, compiling a natural language test script;
compiling a test script according to the service requirement of the tested software, setting a word slot in the test script, and storing the script in a corresponding operation node of the map;
C. test analysis, automatic splitting of test cases, and extraction of key paths:
the testing robot system automatically traverses and analyzes all test cases according to the service map, combines scripts required by all the test cases, and obtains a main testing path of the software product according to the weight; along with the disassembly of the test cases, the corresponding test scripts can be automatically disassembled and assembled, and each test case has a Chinese test script;
D. test preparation, test data entry:
after analyzing the map and splitting the test cases and the Chinese test scripts, the test robot can automatically analyze the word slots in the test scripts of each test case and store the word slots in a test data database, and can provide operations of adding, deleting, checking and changing the test data on an independent test data management page;
E. test execution, integration of test scripts and test data:
test execution, selecting test cases and test data to be tested, and automatically filling the test data into a word slot of a test script by the system to form a complete executable Chinese test script; storing the task to a task distribution server and waiting for task distribution; each script has a corresponding scene directory, each directory represents a scene, and the directory name is a test scene name; storing scripts of all test cases of the scene in a scene directory, wherein the script of each test case is stored as a text file, the file name is the name of the test case, and when a test case selects multiple groups of data, the file name is the combination of the name of the test case and the name of a test data group;
F. executing the test and distributing the test task;
G. and (3) test execution, wherein the artificial intelligence platform understands natural language and executes:
the test task is distributed to a controller of each mobile phone, and the controller is a computer with an operating system of Linux and is responsible for controlling the mobile phones, installing and uninstalling Apps and executing automatic operation; the Chinese test script execution program is stored in the controller, and once the Chinese test script is received, the Chinese test script reads the script and analyzes the action of each step of the script, extracts test data, converts the action and the data into a program instruction which can be understood by the mobile phone and sends the program instruction to the mobile phone for execution;
H. and (3) a test report is used for comprehensively recording and analyzing the performance, function and compatibility problems of the application:
when the script is executed, generating performance data, a system log, a script log and an application screenshot in the application running process; the test robot will summarize the results of all cell phone executions and generate a test report.
2. The method of claim 1, wherein the test task distribution comprises: all execution and random execution; all the steps are carried out as follows: all the test scripts are distributed to each mobile phone, and each mobile phone is guaranteed to execute all the test scripts; randomly executing: and randomly distributing all the test scripts to each mobile phone to ensure that all the test scripts can be executed once.
3. The method of using a robot for performing automated testing using profiling according to claim 1 further comprising constructing a business profile, storing and presenting business logic of an application in the form of a graphical database.
4. The method of claim 3, wherein after the map is constructed, the testing robot system automatically traverses the map database, automatically splits the test cases, extracts the test paths, stores the test paths in the test case database, and displays the management test cases.
5. The method of using a robot for performing automated testing using graph analysis of claim 4, wherein test data is entered for the Chinese test script of each test case after the test case analysis is disassembled, one test case supports entry of multiple sets of test data; during test execution, according to the selected Chinese test script of the test case and the test data combination, replacing the test data into a word slot of the test script to form an executable Chinese test script; the specific execution mode comprises the following steps: all execution and random execution; after the test task is completed, the system log, the script log, the screenshots and the running problems generated on each mobile phone are collected to generate a test report.
CN201810459148.XA 2018-05-15 2018-05-15 Automatic testing robot implemented by using atlas analysis and use method thereof Active CN108647147B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810459148.XA CN108647147B (en) 2018-05-15 2018-05-15 Automatic testing robot implemented by using atlas analysis and use method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810459148.XA CN108647147B (en) 2018-05-15 2018-05-15 Automatic testing robot implemented by using atlas analysis and use method thereof

Publications (2)

Publication Number Publication Date
CN108647147A CN108647147A (en) 2018-10-12
CN108647147B true CN108647147B (en) 2021-06-29

Family

ID=63755513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810459148.XA Active CN108647147B (en) 2018-05-15 2018-05-15 Automatic testing robot implemented by using atlas analysis and use method thereof

Country Status (1)

Country Link
CN (1) CN108647147B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491898B (en) * 2018-10-30 2021-11-12 武汉思普崚技术有限公司 Test efficiency improving method and equipment based on automatic test and case management
CN110502643A (en) * 2019-08-28 2019-11-26 南京璇玑信息技术有限公司 A kind of next model autocreating technology of the prediction based on BERT model
CN111443987A (en) * 2020-02-19 2020-07-24 北京数字精准医疗科技有限公司 Image video script processing system and method based on web system
CN112612691A (en) * 2020-11-30 2021-04-06 北京思特奇信息技术股份有限公司 Method and system for realizing automatic test data management and control based on SVN, electronic device and storage medium
CN112579443B (en) * 2020-12-08 2022-07-12 温氏食品集团股份有限公司 Automatic testing method and platform of intelligent testing robot

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521120A (en) * 2011-11-16 2012-06-27 中国民航信息网络股份有限公司 Software automation test system and method
CN106547689A (en) * 2016-10-20 2017-03-29 金航数码科技有限责任公司 A kind of automatic test cases development system and method based on web

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8856594B2 (en) * 2011-06-29 2014-10-07 Infosys Limited Method and system for an end-to-end solution in a test automation framework

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521120A (en) * 2011-11-16 2012-06-27 中国民航信息网络股份有限公司 Software automation test system and method
CN106547689A (en) * 2016-10-20 2017-03-29 金航数码科技有限责任公司 A kind of automatic test cases development system and method based on web

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
自动化测试平台策略之自动化测试管理平台;散步的SUN;《http://www.51testing.com/html/03/n-805203-2.html》;20111227;第1-2页 *

Also Published As

Publication number Publication date
CN108647147A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN108647147B (en) Automatic testing robot implemented by using atlas analysis and use method thereof
CN110309071B (en) Test code generation method and module, and test method and system
CN100492316C (en) System and method for test automation
CN102804147B (en) Perform the code check executive system of the code check of ABAP source code
CN108345532A (en) A kind of automatic test cases generation method and device
KR102237877B1 (en) Intelligent software auto development system with real-time collaboration support and method thereof
US11455150B2 (en) Accelerating application modernization
US7895575B2 (en) Apparatus and method for generating test driver
CN104111828A (en) Automatic generation method and system of human-computer interaction interface
US10380526B2 (en) System and method for providing a process player for use with a business process design environment
CN112328229A (en) Method for quickly creating Jenkins assembly line
CN109710528A (en) A kind of test script generation method, device, equipment and medium
CN114297961A (en) Chip test case processing method and related device
CN113051262A (en) Data quality inspection method, device, equipment and storage medium
CN108090355A (en) A kind of APK automatic triggers instrument
EP4002101A1 (en) Computer implemented software modification system and method
CN108763066A (en) A kind of natural language test script edit methods of word slot design and test machine people
US20070162259A1 (en) Method for converting a log of user manipulations of a computer program into task documentation
Greevy et al. How developers develop features
CN115269387A (en) Automatic interface testing method and device
CN114443467A (en) Interface interaction method and device based on sandbox, electronic equipment, medium and product
US20080022258A1 (en) Custom database system and method of building and operating the same
US8631393B2 (en) Custom database system and method of building and operating the same
US12026077B2 (en) Accelerating application interrogation and interaction mapping
Pulido Applying behavior driven development practices and tools to low-code technology

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
GR01 Patent grant
GR01 Patent grant