CN112035356B - Automatic testing method and system for web application compatibility - Google Patents
Automatic testing method and system for web application compatibility Download PDFInfo
- Publication number
- CN112035356B CN112035356B CN202010891866.1A CN202010891866A CN112035356B CN 112035356 B CN112035356 B CN 112035356B CN 202010891866 A CN202010891866 A CN 202010891866A CN 112035356 B CN112035356 B CN 112035356B
- Authority
- CN
- China
- Prior art keywords
- test
- compatibility
- flow
- testing
- automatic
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- 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 an automatic testing method and system for web application compatibility, which relate to the technical field of automatic testing, and the implementation process comprises the following steps: pushing web application codes to a code warehouse by a developer; a tester writes an automatic test script and pushes the automatic test script to a code warehouse; the research personnel logs in the system type and browser type of the visual page configuration required to test compatibility, and submits a test application; a tester logs in a visual page, selects a code warehouse and a code test script to be tested according to a test application, and configures an automatic test flow; triggering an automatic test flow manually or regularly to test; after the test is completed, a monitoring report and a test result report of the test flow process are output and fed back to the research and development personnel. The invention realizes visual configuration of the test flow, custom combination of the test scene, automation of the test process and monitoring of the whole flow, and can solve the problems of complex test process and easy error of web application compatibility.
Description
Technical Field
The invention relates to the technical field of automatic testing, in particular to an automatic testing method and system for web application compatibility.
Background
With the rapid development of internet technology, different processor architectures, different operating systems, different browser kernels and different browser types appear, and in order to ensure that the developed web application can be normally accessed in various software and hardware environments, various combined environment tests are required, so that the problems are: how to quickly build a test environment and perform a comprehensive test. The existing measures are often manual and manual treatment, and are low in efficiency and prone to error.
In the conventional mode, the test procedure is as follows:
step 1: deployment personnel manually install various required operating systems (e.g., windows, centOS, ubuntu) and need to manually judge hardware environment information (e.g., processor architecture: x86, arm, mips, etc.);
Step 2: the deployment personnel manually installs different browsers, and needs to select according to different systems and processor architectures;
step 3: manually installing a software package dependent operation ring and deploying an application by a deployment personnel;
step 4: the tester manually performs compatibility tests on different environments.
Disclosure of Invention
Aiming at the problems that in the existing compatibility test process of web application, a great deal of manpower is required to manually build environments and manually test according to different processor architectures, different systems and different browser types, the process is tedious and error is easy to occur, the invention provides an automatic test method and system for web application compatibility, which realize the functions of visual configuration of test flow, custom combination of test scenes, automatic test process, monitoring of the whole flow and the like, and solve the problems of tedious process and error is easy to occur.
Firstly, the invention provides an automatic testing method for web application compatibility, which solves the technical problems and adopts the following technical scheme:
An automatic test method for web application compatibility, comprising the following steps:
s1, pushing web application codes to a code warehouse by research personnel;
S2, a tester writes an automatic test script and pushes the automatic test script to a code warehouse;
s3, the research personnel logs in the system type and the browser type of the visual page configuration required to test the compatibility, and the research personnel logs in the visual page to submit a test application;
S4, logging in a visual page by a tester, selecting a code warehouse and a code test script to be tested according to a test application, and configuring an automatic test flow;
s5, manually or regularly triggering an automatic test flow to test;
And S6, after the test is completed, outputting a monitoring report and a test result report of the test flow process, and feeding back to the research personnel.
Optionally, in step S2, the automated test script written by the tester includes a functional test section, a compatibility test section, and a test report generation section, wherein,
The compatibility testing part performs picture preprocessing on stored screenshots through testing processes under different testing scenes to extract characteristic values of multiple latitudes, performs batch comparison analysis according to the extracted characteristic values of multiple latitudes, considers the characteristic values to be the same if the comparison result is within a specified range of a preset value, or considers the characteristic values to be different, and finally outputs the comparison result;
The test report generating part generates a report containing the functional test result and the compatibility test result in each scene, wherein the test report generating part generates a report of the compatibility test result according to the comparison result output by the compatibility test part.
Further alternatively, in step S3, the type of system for which compatibility is required to be tested may be windows-x86_64 or centos-x86_64 or centos-aarch64;
The browser type to be tested for compatibility may be a Chrome browser-Chrome kernel or a Firefox browser-Firefox kernel or a 360 browser-ie+chrome dual kernel.
Further optionally, in step S5, jenkins is used as a task scheduling tool, so as to implement configurable flow, meet requirements of different test scenarios, monitor flow process, meet traceable requirements of test process, trigger flow manually or regularly, and meet requirements of on-demand test.
Further optionally, the implementation background integration prometheus of step S5 is used for monitoring the running conditions of the whole test platform and the test case in real time, and reflecting the test process and the result;
And the implementation background of the step S5 is also integrated with ELK, which is used for collecting log information of the whole test platform and test examples in real time, and can be downloaded and checked or checked through pages so as to help research and development testers to find and analyze problems in the test process.
Further optionally, in step S3, the Kubernetes cluster-based container technology is combined with a container orchestration management tool to meet the combined test of different scenarios.
Secondly, the invention provides an automatic testing system for web application compatibility, which solves the technical problems and adopts the following technical scheme:
an automatic test system for web application compatibility comprises a code warehouse, a flow arrangement module, an automatic test module and a flow monitoring module;
The code warehouse stores web application codes pushed by the research personnel and automatic test scripts written by the testers;
When a developer logs in a visual page, a flow arranging module configures a system type and a browser type which need to be tested for compatibility based on a container technology of a Kubernetes cluster, and submits a test application by using the visual page after the configuration is completed;
When a tester logs in the visual page, a flow arrangement module uses jenkins as a task scheduling tool, selects a code warehouse and a code test script to be tested, and configures an automatic test flow;
The automatic test module is provided with two modes of manual triggering or timing triggering, performs functional test and compatibility test according to the automatic test flow configured by the flow arrangement module, and generates a report containing functional test results and compatibility test results in various scenes after the test is completed;
the flow monitoring module monitors and analyzes the whole automatic test flow and outputs a monitoring report.
Optionally, when the related automatic test module performs compatibility test according to the automatic test flow configured by the flow arrangement module, performing picture preprocessing on the stored screenshots to extract multi-latitude characteristic values by performing picture preprocessing on the test procedures under different test scenes, performing batch comparison analysis according to the extracted multi-dimensional characteristic values, if the comparison result is within a specified range of a preset value, considering the characteristic values to be the same, otherwise, considering the characteristic values to be different, outputting the comparison result, and finally generating a report containing the compatibility test result under each scene according to the comparison result.
Further alternatively, the type of system that requires compatibility testing may be windows-x86_64 or centos-x86_64 or centos-aarch;
The browser type to be tested for compatibility may be a Chrome browser-Chrome kernel or a Firefox browser-Firefox kernel or a 360 browser-ie+chrome dual kernel.
The automatic testing method and system for web application compatibility have the beneficial effects that compared with the prior art:
1) The invention is based on the container technology of the Kubernetes cluster, realizes the functions of visual configuration of the test flow, custom combination of the test scene, automation of the test process, monitoring of the whole flow and the like, and can solve the problems of complex and error-prone test process of web application compatibility;
2) The invention mainly solves the problems that the compatibility test scenes of different processor architectures, different operating systems and different kernel type browsers are numerous, and the complete test cannot be performed by manpower, and realizes the automatic test flow which can be arranged and configured in the whole scene and can be monitored.
Drawings
FIG. 1 is a flow chart of a method according to a first embodiment of the invention;
Fig. 2 is a connection block diagram of a second embodiment of the present invention.
The reference numerals in the drawings represent:
1. a code warehouse, a flow arranging module, a 3, an automatic testing module,
4. And 5, a flow monitoring module and a visual page.
Detailed Description
In order to make the technical scheme, the technical problems to be solved and the technical effects of the invention more clear, the technical scheme of the invention is clearly and completely described below by combining specific embodiments.
Embodiment one:
With reference to fig. 1, this embodiment proposes an automatic testing method for web application compatibility, including the following steps:
s1, pushing web application codes to a code warehouse by research personnel.
S2, the testers write an automatic test script and push the automatic test script to a code warehouse.
In this step, an automated test script written by a tester includes a functional test section, a compatibility test section, and a test report generation section, in which:
the compatibility testing part performs picture preprocessing on stored screenshots through testing processes under different testing scenes to extract characteristic values of multiple latitudes, performs batch comparison analysis according to the extracted characteristic values of multiple latitudes, considers the characteristic values to be the same if the comparison result is within a specified range of a preset value, or considers the characteristic values to be different, and finally outputs the comparison result;
The test report generating part generates a report containing the functional test result and the compatibility test result in each scene, wherein the test report generating part generates a report of the compatibility test result according to the comparison result output by the compatibility test part.
S3, a developer logs in a visual page, configures a system type and a browser type which need to be tested for compatibility based on a container technology of a Kubernetes cluster, and logs in the visual page to submit a test application.
In this step, the type of system that needs to be tested for compatibility may be windows-x86_64 or centos-x86_64 or centos-aarch64.
In this step, the browser type to be tested for compatibility may be a Chrome browser-Chrome kernel or a Firefox browser-Firefox kernel or a 360 browser-ie+chrome dual kernel.
S4, logging in a visual page by a tester, selecting a code warehouse and a code test script to be tested according to the test application, and configuring an automatic test flow.
S5, triggering an automatic test flow manually or regularly to test.
After the step of manually or periodically triggering the automatic test flow,
Jenkins is used as a task scheduling tool to realize the flow configurability, meet the requirements of different test scenes,
And the integrated prometheus is used for monitoring, monitoring the running conditions of the whole test platform and the test instance in real time, reflecting the test process and the result and meeting the traceable requirement of the test process.
In the testing process, log information of the whole testing platform and the testing instance is collected in real time through the ELK integrated in the background, and the log information can be downloaded and checked, or checked through pages, so that research and development testing personnel can be helped to find and analyze problems in the testing process.
And S6, after the test is completed, outputting a monitoring report and a test result report of the test flow process, and feeding back to the research personnel.
Embodiment two:
Referring to fig. 2, the embodiment proposes an automatic test system for web application compatibility, which includes a code warehouse 1, a process scheduling module 2, an automatic test module 3, and a process monitoring module 4.
The code repository 1 stores web application code pushed by the developer and automated test scripts written by the tester.
When a developer logs in the visual page 5, the flow arranging module 2 configures a system type and a browser type which need to be tested for compatibility based on a container technology of a Kubernetes cluster, and submits a test application by using the visual page 5 after the configuration is completed. In this embodiment, the system type requiring compatibility testing may be windows-x86_64 or centos-x86_64 or centos-aarch; the browser type to be tested for compatibility may be a Chrome browser-Chrome kernel or a Firefox browser-Firefox kernel or a 360 browser-ie+chrome dual kernel.
When a tester logs in the visual page 5, the flow arrangement module 2 uses jenkins as a task scheduling tool to select a code warehouse 1 and a code test script to be tested and configure an automatic test flow.
The automatic test module 3 has two modes of manual or timing triggering, the automatic test module 3 performs functional test and compatibility test according to the automatic test flow configured by the flow configuration module 2, and generates a report containing functional test results and compatibility test results in various scenes after the test is completed. In this embodiment, when the automated testing module 3 performs compatibility testing according to the automated testing procedure configured by the procedure arrangement module 2, the stored screenshot is subjected to image preprocessing to extract multi-latitude feature values, batch comparison analysis is performed according to the extracted multi-dimension feature values, if the comparison result is within the preset range of the preset value, the feature values are considered to be the same, otherwise, the comparison result is considered to be different, the comparison result is output, and finally a report including the compatibility testing result under each scene is generated according to the comparison result.
The flow monitoring module 4 monitors and analyzes the whole automatic test flow and outputs a monitoring report.
In summary, the automatic testing method and system for web application compatibility can realize the functions of visual configuration of a testing process, custom combination of testing scenes, automation of a testing process, monitoring of the whole process and the like, and can solve the problems of complex testing process and easy error of web application compatibility.
The foregoing has outlined rather broadly the principles and embodiments of the present invention in order that the detailed description of the invention may be better understood. Based on the above-mentioned embodiments of the present invention, any improvements and modifications made by those skilled in the art without departing from the principles of the present invention should fall within the scope of the present invention.
Claims (4)
1. An automated testing method for web application compatibility, comprising the steps of:
s1, pushing web application codes to a code warehouse by research personnel;
S2, writing an automatic test script by a tester, and pushing the automatic test script to a code warehouse, wherein: the automated test script comprises a function test part, a compatibility test part and a test report generation part; the compatibility testing part performs picture preprocessing on stored screenshots through testing processes under different testing scenes to extract characteristic values of multiple latitudes, performs batch comparison analysis according to the extracted characteristic values of multiple latitudes, considers the characteristic values to be the same if the comparison result is within a specified range of a preset value, or considers the characteristic values to be different, and finally outputs the comparison result; the test report generating part generates a report containing the functional test result and the compatibility test result in each scene, and the test report generating part generates a report of the compatibility test result according to the comparison result output by the compatibility test part;
S3, a container technology based on a Kubernetes cluster is combined with a container arrangement management tool, a developer logs in a system type and a browser type of which the visual page configuration needs to be tested for compatibility, and the developer logs in the visual page to submit a test application, wherein: the type of the system requiring compatibility testing can be windows-x86_64 or centos-x86_64 or centos-aarch, and the type of the browser requiring compatibility testing can be a Chrome browser-Chrome kernel or a Firefox browser-Firefox kernel or a 360 browser-IE+chrome dual kernel;
S4, logging in a visual page by a tester, selecting a code warehouse and a code test script to be tested according to a test application, and configuring an automatic test flow;
s5, manually or regularly triggering an automatic test flow to test;
And S6, after the test is completed, outputting a monitoring report and a test result report of the test flow process, and feeding back to the research personnel.
2. The automatic testing method of web application compatibility according to claim 1, wherein in step S5, jenkins is used as a task scheduling tool to implement configurable flow, meet different testing scene requirements, monitor flow process, meet traceable requirements of testing process, trigger flow manually or at regular time, and meet requirements of on-demand testing.
3. The automatic testing method of web application compatibility according to claim 1, wherein the implementation background integration prometheus of step S5 is used for monitoring the running condition of the whole testing platform and the testing instance in real time, and reflecting the testing process and the result;
And the implementation background of the step S5 is also integrated with ELK, which is used for collecting log information of the whole test platform and test examples in real time, and can be downloaded and checked or checked through pages so as to help research and development testers to find and analyze problems in the test process.
4. An automatic test system for web application compatibility is characterized by comprising a code warehouse, a flow arrangement module, an automatic test module and a flow monitoring module;
The code warehouse stores web application codes pushed by the research personnel and automatic test scripts written by the testers;
when a developer logs in a visual page, a flow arrangement module configures a system type and a browser type which need to be tested for compatibility based on a container technology of a Kubernetes cluster in combination with a container arrangement management tool, and submits a test application by using the visual page after the configuration is completed, wherein: the type of the system requiring compatibility testing can be windows-x86_64 or centos-x86_64 or centos-aarch, and the type of the browser requiring compatibility testing can be a Chrome browser-Chrome kernel or a Firefox browser-Firefox kernel or a 360 browser-IE+chrome dual kernel;
When a tester logs in the visual page, a flow arrangement module uses jenkins as a task scheduling tool, selects a code warehouse and a code test script to be tested, and configures an automatic test flow;
The automatic test module is provided with two modes of manual or timing triggering, the automatic test module performs functional test and compatibility test according to an automatic test flow configured by the flow arrangement module, generates reports containing functional test results and compatibility test results in various scenes after the test is completed, performs picture preprocessing on stored screenshots through the test processes in different test scenes to extract characteristic values of multiple latitudes, performs batch comparison analysis according to the extracted characteristic values of multiple latitudes, considers the characteristic values to be the same if the comparison result is within a specified range of a preset value, otherwise considers the characteristic values to be different, outputs comparison results, and generates reports containing the compatibility test results in various scenes according to the comparison result;
the flow monitoring module monitors and analyzes the whole automatic test flow and outputs a monitoring report.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010891866.1A CN112035356B (en) | 2020-08-28 | 2020-08-28 | Automatic testing method and system for web application compatibility |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010891866.1A CN112035356B (en) | 2020-08-28 | 2020-08-28 | Automatic testing method and system for web application compatibility |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112035356A CN112035356A (en) | 2020-12-04 |
CN112035356B true CN112035356B (en) | 2024-09-10 |
Family
ID=73587490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010891866.1A Active CN112035356B (en) | 2020-08-28 | 2020-08-28 | Automatic testing method and system for web application compatibility |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112035356B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113836036A (en) * | 2021-10-15 | 2021-12-24 | 中国电力科学研究院有限公司 | Browser compatibility automated testing method, system, device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103942137A (en) * | 2013-01-23 | 2014-07-23 | 腾讯科技(深圳)有限公司 | Browser compatibility testing method and device |
CN106411633A (en) * | 2016-08-23 | 2017-02-15 | 国家电网公司 | Web application compatibility testing method based on openstack and system thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6442714B1 (en) * | 1999-03-17 | 2002-08-27 | Cisco Technology | Web-based integrated testing and reporting system |
US9003423B1 (en) * | 2011-07-29 | 2015-04-07 | Amazon Technologies, Inc. | Dynamic browser compatibility checker |
CN109656643A (en) * | 2017-10-10 | 2019-04-19 | 武汉斗鱼网络科技有限公司 | More browser compatibility test methods, storage medium, electronic equipment and system |
-
2020
- 2020-08-28 CN CN202010891866.1A patent/CN112035356B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103942137A (en) * | 2013-01-23 | 2014-07-23 | 腾讯科技(深圳)有限公司 | Browser compatibility testing method and device |
CN106411633A (en) * | 2016-08-23 | 2017-02-15 | 国家电网公司 | Web application compatibility testing method based on openstack and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN112035356A (en) | 2020-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Ramya et al. | Testing using selenium web driver | |
KR101132560B1 (en) | System and method for automatic interface testing based on simulation for robot software components | |
US20110107307A1 (en) | Collecting Program Runtime Information | |
CN110046099A (en) | Intelligent software test macro and method | |
US20020091968A1 (en) | Object-oriented data driven software GUI automated test harness | |
US20130275946A1 (en) | Systems and methods for test development process automation for a test harness | |
US10846059B2 (en) | Automated generation of software bindings | |
CN112241360A (en) | Test case generation method, device, equipment and storage medium | |
CN111488275B (en) | UI (user interface) automatic testing method and device, storage medium and electronic equipment | |
CN112131116B (en) | Automatic regression testing method for embedded software | |
CN113238953A (en) | UI automation test method and device, electronic equipment and storage medium | |
Thooriqoh et al. | Selenium framework for web automation testing: A systematic literature review | |
CN117370203A (en) | Automatic test method, system, electronic equipment and storage medium | |
CN112035356B (en) | Automatic testing method and system for web application compatibility | |
CN119537213A (en) | A method for interface automation testing based on RPA | |
CN113986263A (en) | Code automation testing method, device, electronic device, storage medium | |
CN117992352A (en) | Software automatic test method and device, storage medium and computer equipment | |
US20210406158A1 (en) | Systems and methods for automated device testing | |
CN118227506A (en) | UI (user interface) automatic test system and method based on RPA (remote procedure alliance) robot | |
CN112015638A (en) | Automatic testing method and system | |
CN117667680A (en) | Use case testing method, system, equipment and storage medium | |
CN115934500A (en) | Pipeline construction method and device, computer equipment and storage medium | |
CN116089270A (en) | A layered testing system, method and medium | |
CN114328185A (en) | Continuous Integration Information Aggregation System | |
Qiujun et al. | Research on the Quality of Automotive Electronic Software Based on Code Checking |
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 |