CN109144863A - A kind of automated testing method based on network system - Google Patents
A kind of automated testing method based on network system Download PDFInfo
- Publication number
- CN109144863A CN109144863A CN201810910082.1A CN201810910082A CN109144863A CN 109144863 A CN109144863 A CN 109144863A CN 201810910082 A CN201810910082 A CN 201810910082A CN 109144863 A CN109144863 A CN 109144863A
- Authority
- CN
- China
- Prior art keywords
- test
- script
- system page
- test case
- case
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test 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)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of automated testing methods based on network system, the following steps are included: formulating software metrics demand according to original demands first, test case set, test script set and the system page set with Software match are established simultaneously, and establish the association of testing requirement, test case, test script, the system page;When there is regression test demand, the associated system page will be screened from system page set according to testing requirement, associated test case is screened from the set of test case according to the system page, and associated test script is filtered out from the set of test script according to test case;Operation test script simultaneously generates test report.The association of testing requirement, test case, test script, the system page that technical staff can be established by early period quickly screens associated test script according to testing requirement and carries out operation test, can effectively improve the efficiency of test.
Description
Technical field
The present invention relates to technical field of software development more particularly to a kind of automated testing methods based on network system.
Background technique
Now with informationization technology in the continuous popularization of network system, the assessment business scale of information system is also more next
It is bigger, artificial progress is still relied on for the assessment work of information system at present, especially selection test case and test foot
This when, need to cause the efficiency of assessment work lower and occupy by the technical staff with rich experiences and outstanding professional ability
A large amount of human resources carry out repeated work, and the human cost of assessment is caused to be difficult to decrease.
Summary of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide one kind, and quickly test and feedback test knot can be achieved
The automated testing method based on network system of fruit.
In order to achieve the goal above, the technical scheme adopted by the invention is that: a kind of automation survey based on network system
Method for testing, comprising the following steps:
S1. software metrics demand is formulated according to original demands first, while established and the test case set of Software match, test
Script set and system page set, and establish the association of testing requirement, test case, test script, the system page;
S2. when there is regression test demand, the associated system page will be screened from system page set according to testing requirement, according to
Associated test case is screened from the set of test case according to the system page, according to test case from the set of test script
Filter out associated test script;
S3. it runs test script and generates test report.
Further, the test report generated in the step S3 includes the percent of pass of script test, demand backtracking and system
Meter analysis.
The beneficial effects of the present invention are: the present invention is after adopting the above scheme, when there is regression test demand, technical staff can
The association of the testing requirement, test case, test script, the system page established by early period, which is quickly screened according to testing requirement, closes
The test script of connection simultaneously carries out operation test, can effectively improve the efficiency of test.
Detailed description of the invention
Fig. 1 is model schematic of the invention.
Specific embodiment
Claimed technical solution of the invention is described in further detail now in conjunction with the drawings and specific embodiments.
It is shown in Figure 1, automated testing method of one of the present embodiment based on network system, including following step
It is rapid:
S1. software metrics demand is formulated according to original demands first, while established and the test case set of Software match, test
Script set and system page set, and establish the association of testing requirement, test case, test script, the system page.At this
It in embodiment, defines system requirements collection and is combined into S={ s1, s2, s3 ... }, testing requirement collection is combined into R={ r1, r2, r3 ... }, test
Set of uses case is combined into C={ c1, c2, c3 ... }, test record set L={ l1, l2, l3 ... }, defect set B=b1, b2,
b3…}。
S2. when there is regression test demand, associated system page will be screened from system page set according to testing requirement
Associated test case is screened according to the system page in face from the set of test case, according to test case from test script
Associated test script is filtered out in set;Assuming that the testing requirement being directly linked with arbitrary system requirement elements has several,
And priority is different, then defines testing requirement priority factor collection and be combined into P={ p1, p2, p3 ... }, and p ∈ [0,1];Assuming that with
The test case that any testing requirement is directly linked also has several of different priorities, then defines priorities of test cases coefficient
Collection is combined into Q={ q1, q2, q3 ... }, and q ∈ [0,1];Assuming that the association between system requirements, testing requirement, test case chases after
The relationship of tracing back can meet functional relation, then define s=SR (r), r=RC (c), c=CL (l), l=LB (b), and si=pjSR (rj)
=p (j+n) SR (r (j+n))=p (j+m) SR (r (j+m))=..., ri=qjRC (rj)=q (j+n) RC (r (j+n))=q (j
+ m) RC (r (j+m))=...;Have lateral incidence relation between system requirements and system requirements, it is assumed that the incidence relation it is tight
Close degree is determined by transverse coupling coefficient, therefore defines matrix transverse coupling coefficient sets as K={ k12, k23, k13 ... }, and k ∈
[0,1], the then relationship between system requirements set element and element are as follows: si=kijsj=kj (j+n) sj+n=....
S3. run test script and generate test report, test report include the percent of pass of script test, demand backtracking with
And statistically analyze, the script execution tool of regression test in the present embodiment includes and is not limited to Selenium, Lemontree etc.
Deng.
Now by taking certain project carries out frequent iteration tests as an example, testing requirement is established in by above-mentioned steps S1, test is used
Example, test script, the system page correlation model after, when needing regression test, it is only necessary to submit this change demand (or
The page), tester can select regression test range, the automatic test script that automatic screening executes, and be automated
Test execution.Interpretation of result report is automatically generated according to script execution result after executing completion.
When early period set up testing requirement, test case, test script, the system page association after, automatic screening use-case
Algorithm is as follows:
Trace matrix model from demand: ci=qiRC-1 (tj)=ci=qiRC-1 [pjSR-1 (sn)] is meeting letter
When number relationship, main affecting factors qi, pj can obtain ci=after being abstracted the formula of use-case and system requirements incidence relation
QipjSC-1 (sn), qipj, that is, priority factor, it is assumed that the priority of X=f (qipj), X and test case has direct relation, X
It can determine the screening of test case;When regression test, static state selects the associated epicycle test in several longitudinal directions to be measured minimum preferential
Grade use-case obtains the optimal value xb of X by calculating, and:
Thus set of uses case C '={ c | all test cases for meeting xn >=xb } is filtered out, C ' is to trace matrix by demand to indulge
Collection on probation to be measured after about subtracting to association.
Because of the relationship between system requirements set element and element are as follows: si=kijsj=kj (j+n) sj+n=..., therefore
In conjunction with ci=qipjSC-1 (sn) formula, ci=qipjSC-1 (sn)=ci=qipjSC-1 [knm (sm)], therefore it is found that screen
Laterally associated system requirements are also related with k to application examples, it is assumed that Y=f (qipj knm), Y can determine laterally it is associated other
Screening of the system requirements to application examples;The corresponding lowest priority use-case of several interconnected system demands of static filtering, passes through calculating
The optimal value yb of Y is obtained, and:
Thus set of uses case C "={ c | all test cases for meeting yn >=yb } is filtered out, C " is to trace matrix cross by demand
Collection on probation to be measured after about subtracting to association.C '+C " be meet epicycle regression test requirement the pending test case of whole (to
Test script) collection.
The embodiment of the above is only presently preferred embodiments of the present invention, not does limit in any form to the present invention
System.Anyone skilled in the art, without departing from the scope of the technical proposal of the invention, all using the disclosure above
Technology contents more possible variations and retouching are made to technical solution of the present invention, or be revised as the equivalence enforcement of equivalent variations
Example.Therefore all contents without departing from technical solution of the present invention, equivalent equivalence changes, should all cover made by thinking according to the present invention
In in protection scope of the present invention.
Claims (2)
1. a kind of automated testing method based on network system, which comprises the following steps:
S1. software metrics demand is formulated according to original demands first, while established and the test case set of Software match, test
Script set and system page set, and establish the association of testing requirement, test case, test script, the system page;
S2. when there is regression test demand, the associated system page will be screened from system page set according to testing requirement, according to
Associated test case is screened from the set of test case according to the system page, according to test case from the set of test script
Filter out associated test script;
S3. it runs test script and generates test report.
2. a kind of automated testing method based on network system according to claim 1, it is characterised in that: the step
The test report generated in S3 includes the percent of pass of script test, demand backtracking and statistical analysis.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810910082.1A CN109144863A (en) | 2018-08-10 | 2018-08-10 | A kind of automated testing method based on network system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810910082.1A CN109144863A (en) | 2018-08-10 | 2018-08-10 | A kind of automated testing method based on network system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109144863A true CN109144863A (en) | 2019-01-04 |
Family
ID=64792751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810910082.1A Pending CN109144863A (en) | 2018-08-10 | 2018-08-10 | A kind of automated testing method based on network system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109144863A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918141A (en) * | 2019-03-15 | 2019-06-21 | Oppo广东移动通信有限公司 | Thread execution method, device, terminal and storage medium |
CN110554962A (en) * | 2019-08-14 | 2019-12-10 | 平安普惠企业管理有限公司 | Regression testing process covering method, server and computer readable storage medium |
CN111427760A (en) * | 2019-01-09 | 2020-07-17 | 阿里巴巴集团控股有限公司 | Page testing method, device, equipment and storage medium |
CN113934646A (en) * | 2021-12-17 | 2022-01-14 | 中建电子商务有限责任公司 | System and method for software testing |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521700A (en) * | 2011-12-13 | 2012-06-27 | 广东电网公司信息中心 | Electrical network informatization evaluation rapid test system |
CN102541735A (en) * | 2011-12-28 | 2012-07-04 | 云海创想信息技术(天津)有限公司 | Automatic software test method |
-
2018
- 2018-08-10 CN CN201810910082.1A patent/CN109144863A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521700A (en) * | 2011-12-13 | 2012-06-27 | 广东电网公司信息中心 | Electrical network informatization evaluation rapid test system |
CN102541735A (en) * | 2011-12-28 | 2012-07-04 | 云海创想信息技术(天津)有限公司 | Automatic software test method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111427760A (en) * | 2019-01-09 | 2020-07-17 | 阿里巴巴集团控股有限公司 | Page testing method, device, equipment and storage medium |
CN111427760B (en) * | 2019-01-09 | 2024-05-28 | 阿里巴巴集团控股有限公司 | Page test method, device, equipment and storage medium |
CN109918141A (en) * | 2019-03-15 | 2019-06-21 | Oppo广东移动通信有限公司 | Thread execution method, device, terminal and storage medium |
CN109918141B (en) * | 2019-03-15 | 2020-11-27 | Oppo广东移动通信有限公司 | Thread execution method, thread execution device, terminal and storage medium |
CN110554962A (en) * | 2019-08-14 | 2019-12-10 | 平安普惠企业管理有限公司 | Regression testing process covering method, server and computer readable storage medium |
CN113934646A (en) * | 2021-12-17 | 2022-01-14 | 中建电子商务有限责任公司 | System and method for software testing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109144863A (en) | A kind of automated testing method based on network system | |
CN110232024B (en) | Software automation test framework and test method | |
CN107506303A (en) | Method, apparatus and system for automatic test | |
CN107122298A (en) | The methods of exhibiting of visual software development process quality | |
CN106681912A (en) | Method and device for automatic testing of code coverage rate, applied to Android system | |
CN105760296B (en) | Automatic test control method, device and terminal | |
CN105893253A (en) | Application software testing method, device and equipment | |
CN106155884A (en) | A kind of log analysis method and system | |
CN109491922A (en) | One kind being based on model-driven test method and apparatus | |
CN105279092A (en) | Software testing method and apparatus | |
CN111782532B (en) | Software fault positioning method and system based on network abnormal node analysis | |
CN103123607A (en) | Software regression testing method based on formal conceptual analysis | |
Asghar et al. | Role of requirements elicitation & prioritization to optimize quality in scrum agile development | |
Walunj et al. | Graphevo: Characterizing and understanding software evolution using call graphs | |
CN116954624B (en) | Compiling method based on software development kit, software development system and server | |
CN111045938B (en) | Reliability modeling method for introducing open-source software based on Pareto distributed faults | |
Kayarvizhy et al. | Analysis of quality of object oriented systems using object oriented metrics | |
CN112966921A (en) | Innovation ability evaluation method based on programming ability evaluation | |
Déry et al. | Investigation of the effort data consistency in the ISBSG repository | |
Li et al. | Constructing a hybrid software process simulation model in practice: An exemplar from industry | |
CN102436525B (en) | Method for automatically repairing hold time violation in multi-node parallel mode in integrated circuit designing process | |
Wang et al. | Quantitative analysis of requirements evolution across multiple versions of an industrial software product | |
Maina et al. | A New Complexity Metric for UML Sequence Diagrams | |
CN112560290A (en) | Automatic testing method and system based on countermeasure simulation platform | |
Waghmode et al. | A collective study of PCA and neural network based on COCOMO for software cost estimation |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190104 |