CN112631934A - Method and device for testing software online problems - Google Patents

Method and device for testing software online problems Download PDF

Info

Publication number
CN112631934A
CN112631934A CN202011617738.4A CN202011617738A CN112631934A CN 112631934 A CN112631934 A CN 112631934A CN 202011617738 A CN202011617738 A CN 202011617738A CN 112631934 A CN112631934 A CN 112631934A
Authority
CN
China
Prior art keywords
data
online
abnormal data
abnormal
position information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011617738.4A
Other languages
Chinese (zh)
Inventor
钱升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Gaodun Education Technology Co ltd
Original Assignee
Shanghai Gaodun Education 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 Shanghai Gaodun Education Technology Co ltd filed Critical Shanghai Gaodun Education Technology Co ltd
Priority to CN202011617738.4A priority Critical patent/CN112631934A/en
Publication of CN112631934A publication Critical patent/CN112631934A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/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)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a method for testing software online problems, which specifically comprises the following steps: s1, acquiring abnormal position information of the online client; s2, acquiring abnormal data of online abnormality through interfaces of the client and the server according to the position information, and storing the abnormal data in a development tool module of the server; s3, the development tool module acquires original on-line data, replaces the data corresponding to the position information with abnormal data, and analyzes the data through a corresponding interface to obtain an abnormal data analysis result; and S4, the server side carries out simulation test according to the abnormal data analysis result, repairs the abnormal data according to the test result to generate repair data, and the repair data is uploaded to the online client side after being tested to be correct, so that the abnormal data corresponding to the position information is replaced. Compared with the prior art, the method has the advantages of saving a large amount of time spent on abnormal positioning, improving the efficiency of repairing the online problem of the software and the like.

Description

Method and device for testing software online problems
Technical Field
The invention relates to the technical field of software testing, in particular to a method and a device for testing software online problems.
Background
In the process of developing software, from development to testing to online, the process needs to be long. In order to ensure that the problem is not exposed in the online environment, the test must be ensured to be complete during the software test, and the function of the software which is released is ensured to be complete.
However, in the real-time process, the complexity of data and the complexity of services often cause many problems that cannot occur in the test environment, and because the data is too complex, each actual scene related to the software function cannot be tested. Therefore, when a problem caused by data returned by the back end occurs on the line, how to locate the problem as soon as possible and how to repair the problem on the line as soon as possible are the first urgent tasks. The problem needs to be located and repaired in the shortest time possible, and the phenomenon that the use experience of a user is affected due to the long-term data abnormity of the online interface is avoided.
Disclosure of Invention
The invention aims to provide a method and a device for testing software online problems, which aim to overcome the defect that the prior art has the problem that data is too complex and cannot be timely positioned and returned by a back end.
The purpose of the invention can be realized by the following technical scheme:
a method for testing software online problems specifically comprises the following steps:
s1, acquiring abnormal position information of the online client;
s2, acquiring abnormal data of online abnormality through interfaces of the client and the server according to the position information, and storing the abnormal data in a development tool module of the server;
s3, the development tool module acquires original on-line data, replaces the data corresponding to the position information with abnormal data, and analyzes the data through a corresponding interface to obtain an abnormal data analysis result;
and S4, the server side carries out simulation test according to the abnormal data analysis result, repairs the abnormal data according to the test result to generate repair data, and the repair data is uploaded to the online client side after being tested to be correct, so as to replace the abnormal data corresponding to the position information.
In step S1, a simulation test is performed on the existing data of the online client to obtain the location information.
The online client exception comprises a front-end page error.
Further, the abnormal data is specifically page data of a front-end page that is reported in error.
And the data formats of the online client and the server for data transmission are the same.
Further, the data format of the interface for data transmission includes json format.
Further, the storage format of the abnormal data comprises a json format.
In step S3, the abnormal data is parsed through the API interface.
And in the step S4, the server side performs mock simulation test according to the abnormal data analysis result.
An apparatus using the testing method for the software online problem, comprising a memory and a processor, wherein the processor comprises an online client and a server, and the testing method is stored in the memory and executed by the processor, and when executed, the method realizes the following steps:
s1, acquiring abnormal position information of the online client;
s2, acquiring abnormal data of online abnormality through interfaces of the client and the server according to the position information, and storing the abnormal data in a development tool module of the server;
s3, the development tool module acquires original on-line data, replaces the data corresponding to the position information with abnormal data, and analyzes the data through a corresponding interface to obtain an abnormal data analysis result;
and S4, the server side carries out simulation test according to the abnormal data analysis result, repairs the abnormal data according to the test result to generate repair data, and the repair data is uploaded to the online client side after being tested to be correct, so as to replace the abnormal data corresponding to the position information.
Compared with the prior art, the invention has the following beneficial effects:
according to the method and the device, data capture is carried out at the abnormal position with the problem, and then the abnormal data is repaired through mock simulation test at the development tool module of the server, so that the process that the simulation data needs to be generated firstly, then the simulation data is tested, and then the problem is reproduced in the test environment to carry out positioning in the traditional scheme is omitted, a large amount of time spent on abnormal positioning is saved, and the efficiency of repairing the problem on a software line is improved.
Drawings
FIG. 1 is a schematic flow chart of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation manner and a specific operation process are given, but the scope of the present invention is not limited to the following embodiments.
A method for testing software online problems specifically comprises the following steps:
s1, acquiring abnormal position information of the online client;
s2, acquiring abnormal data of online abnormality through interfaces of the client and the server according to the position information, and storing the abnormal data in a development tool module of the server;
s3, the development tool module acquires original on-line data, replaces the data corresponding to the position information with abnormal data, and analyzes the data through a corresponding interface to obtain an abnormal data analysis result;
and S4, the server side carries out simulation test according to the abnormal data analysis result, repairs the abnormal data according to the test result to generate repair data, and the repair data is uploaded to the online client side after being tested to be correct, so that the abnormal data corresponding to the position information is replaced.
In step S1, a simulation test is performed on the existing data of the online client to obtain the location information.
The online client exception comprises a front-end page error.
The abnormal data is specifically page data of a front-end page with an error.
The data formats of the interfaces of the online client and the server for data transmission are the same.
The data format of the interface for data transmission comprises a json format.
The storage format of the exception data includes a json format.
In step S3, the abnormal data is analyzed through the API interface.
And in the step S4, the server side carries out mock simulation test according to the abnormal data analysis result.
An apparatus for using a method for testing software online problems, comprising a memory and a processor, the processor comprising an online client and a server, the method being stored in the memory and executed by the processor, and when executed performing the steps of:
s1, acquiring abnormal position information of the online client;
s2, acquiring abnormal data of online abnormality through interfaces of the client and the server according to the position information, and storing the abnormal data in a development tool module of the server;
s3, the development tool module acquires original on-line data, replaces the data corresponding to the position information with abnormal data, and analyzes the data through a corresponding interface to obtain an abnormal data analysis result;
and S4, the server side carries out simulation test according to the abnormal data analysis result, repairs the abnormal data according to the test result to generate repair data, and the repair data is uploaded to the online client side after being tested to be correct, so that the abnormal data corresponding to the position information is replaced.
Examples
When a certain learning product A is online, in the process of running day after day, a page opening error occurs in a first page suddenly, the error can be found only by the student account and needs to be processed immediately, otherwise, the student complains about refund, and certain economic impact is caused to a company.
Through one-time comparison, the test account number inside the company is found to have no problem, only the student account number can appear, the primary judgment is probably caused by some abnormal learning data, but under the project debugging environment, only the test server can be accessed for debugging, and the problem of the student on the line cannot be simulated.
And performing data simulation by using the student account, logging in the online account of the student, capturing a packet of the data of the home page, reporting an error after the request is successful, storing the data locally, and storing the file as test. And opening a development tool, placing the saved file locally, accessing the data of the file through a path, simulating the question data of the student on the home page, positioning and repairing the question. After the data is repaired, after the home page is confirmed to be normal, the data is delivered to a test to confirm whether other problems are influenced or not, and the data of the student is repaired immediately after the confirmation.
In addition, it should be noted that the specific embodiments described in the present specification may have different names, and the above descriptions in the present specification are only illustrations of the structures of the present invention. Minor or simple variations in the structure, features and principles of the present invention are included within the scope of the present invention. Various modifications or additions may be made to the described embodiments or methods may be similarly employed by those skilled in the art without departing from the scope of the invention as defined in the appending claims.

Claims (10)

1. A method for testing software online problems is characterized by comprising the following steps:
s1, acquiring abnormal position information of the online client;
s2, acquiring abnormal data of online abnormality through interfaces of the client and the server according to the position information, and storing the abnormal data in a development tool module of the server;
s3, the development tool module acquires original on-line data, replaces the data corresponding to the position information with abnormal data, and analyzes the data through a corresponding interface to obtain an abnormal data analysis result;
and S4, the server side carries out simulation test according to the abnormal data analysis result, repairs the abnormal data according to the test result to generate repair data, and the repair data is uploaded to the online client side after being tested to be correct, so as to replace the abnormal data corresponding to the position information.
2. The method as claimed in claim 1, wherein the step S1 is performed by performing a simulation test on the existing data of the online client to obtain the location information.
3. The method of claim 1, wherein the online client exception comprises a front-end page fault.
4. The method according to claim 3, wherein the abnormal data is page data of a front-end page that is reported in error.
5. The method for testing the software online problem according to claim 1, wherein the data formats of the interfaces of the online client and the server for data transmission are the same.
6. The method as claimed in claim 5, wherein the data format for the interface to transmit data comprises json format.
7. The method of claim 6, wherein the storage format of the exception data comprises a json format.
8. The method for testing the software online problem according to claim 1, wherein the abnormal data is analyzed through an API interface in the step S3.
9. The method for testing the software online problem according to claim 1, wherein in the step S4, the server performs mock simulation test according to the analysis result of the abnormal data.
10. An apparatus using the method for testing software online problems of claim 1, comprising a memory and a processor, the processor comprising an online client and a server, the method being stored in the memory and executed by the processor, and when executed, performing the steps of:
s1, acquiring abnormal position information of the online client;
s2, acquiring abnormal data of online abnormality through interfaces of the client and the server according to the position information, and storing the abnormal data in a development tool module of the server;
s3, the development tool module acquires original on-line data, replaces the data corresponding to the position information with abnormal data, and analyzes the data through a corresponding interface to obtain an abnormal data analysis result;
and S4, the server side carries out simulation test according to the abnormal data analysis result, repairs the abnormal data according to the test result to generate repair data, and the repair data is uploaded to the online client side after being tested to be correct, so as to replace the abnormal data corresponding to the position information.
CN202011617738.4A 2020-12-30 2020-12-30 Method and device for testing software online problems Pending CN112631934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011617738.4A CN112631934A (en) 2020-12-30 2020-12-30 Method and device for testing software online problems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011617738.4A CN112631934A (en) 2020-12-30 2020-12-30 Method and device for testing software online problems

Publications (1)

Publication Number Publication Date
CN112631934A true CN112631934A (en) 2021-04-09

Family

ID=75287179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011617738.4A Pending CN112631934A (en) 2020-12-30 2020-12-30 Method and device for testing software online problems

Country Status (1)

Country Link
CN (1) CN112631934A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246735A (en) * 2013-05-13 2013-08-14 中国工商银行股份有限公司 Abnormal data processing method and abnormal data processing system
CN106649581A (en) * 2016-11-17 2017-05-10 青岛海信电器股份有限公司 Method for repairing webpage and client side
US20170300402A1 (en) * 2016-04-19 2017-10-19 Sap Se Mock server and extensions for application testing
CN108052440A (en) * 2017-12-22 2018-05-18 平安养老保险股份有限公司 To the modification method of operation system operation logic, device, equipment and storage medium
CN108363662A (en) * 2018-01-29 2018-08-03 深圳壹账通智能科技有限公司 A kind of applied program testing method, storage medium and terminal device
CN109240874A (en) * 2017-07-05 2019-01-18 北京国双科技有限公司 Website page method for detecting abnormality, apparatus and system
CN109271325A (en) * 2018-10-26 2019-01-25 携程旅游网络技术(上海)有限公司 Test method, system, electronic equipment and the storage medium of application
CN109388569A (en) * 2018-10-08 2019-02-26 金蝶软件(中国)有限公司 Method, testing service device and the storage medium of long-range detection client environment exception
CN109656806A (en) * 2018-10-29 2019-04-19 口碑(上海)信息技术有限公司 A kind of the playback test method and device of interface data
CN110262926A (en) * 2019-06-05 2019-09-20 世纪龙信息网络有限责任公司 Metadata restorative procedure, device, system and the computer equipment of server
CN111625381A (en) * 2020-04-09 2020-09-04 腾讯音乐娱乐科技(深圳)有限公司 Method, device and equipment for reproducing running scene of application program and storage medium
CN111679979A (en) * 2020-06-03 2020-09-18 中国银行股份有限公司 Destructive testing method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246735A (en) * 2013-05-13 2013-08-14 中国工商银行股份有限公司 Abnormal data processing method and abnormal data processing system
US20170300402A1 (en) * 2016-04-19 2017-10-19 Sap Se Mock server and extensions for application testing
CN106649581A (en) * 2016-11-17 2017-05-10 青岛海信电器股份有限公司 Method for repairing webpage and client side
CN109240874A (en) * 2017-07-05 2019-01-18 北京国双科技有限公司 Website page method for detecting abnormality, apparatus and system
CN108052440A (en) * 2017-12-22 2018-05-18 平安养老保险股份有限公司 To the modification method of operation system operation logic, device, equipment and storage medium
CN108363662A (en) * 2018-01-29 2018-08-03 深圳壹账通智能科技有限公司 A kind of applied program testing method, storage medium and terminal device
CN109388569A (en) * 2018-10-08 2019-02-26 金蝶软件(中国)有限公司 Method, testing service device and the storage medium of long-range detection client environment exception
CN109271325A (en) * 2018-10-26 2019-01-25 携程旅游网络技术(上海)有限公司 Test method, system, electronic equipment and the storage medium of application
CN109656806A (en) * 2018-10-29 2019-04-19 口碑(上海)信息技术有限公司 A kind of the playback test method and device of interface data
CN110262926A (en) * 2019-06-05 2019-09-20 世纪龙信息网络有限责任公司 Metadata restorative procedure, device, system and the computer equipment of server
CN111625381A (en) * 2020-04-09 2020-09-04 腾讯音乐娱乐科技(深圳)有限公司 Method, device and equipment for reproducing running scene of application program and storage medium
CN111679979A (en) * 2020-06-03 2020-09-18 中国银行股份有限公司 Destructive testing method and device

Similar Documents

Publication Publication Date Title
CN108763076A (en) A kind of Software Automatic Testing Method, device, equipment and medium
CN107370637B (en) Vehicle-mounted ECU communication function automatic test system and method
CN112181854B (en) Method, device, equipment and storage medium for generating process automation script
CN110704323A (en) Data automatic testing method and device based on rail transit line data
CN111078547A (en) Automatic testing framework system for PYTHON general APP software
CN117421217A (en) Automatic software function test method, system, terminal and medium
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN108415886A (en) A kind of data label error correction method and device based on production process
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN112631934A (en) Method and device for testing software online problems
CN109815124A (en) Method and device, the interlock system of interlock defect analysis based on MBSE
CN112612665A (en) Testing method, device and equipment of financial intelligent equipment
CN115794639B (en) Visual test based on flow and visual simulation test system and method
CN112579699A (en) Quality monitoring method, system and storage medium for service data processing link
WO2023125706A1 (en) Test method and system for mileage order generation of battery swapping vehicle, device and medium
CN112035300A (en) Server BMC automatic test system, method, storage medium and electronic device
CN105991322B (en) Processing method and device for acquisition adapter management system
CN115934559A (en) Testing method of intelligent form testing system
CN113238940B (en) Interface test result comparison method, device, equipment and storage medium
CN108536587A (en) A kind of automated testing method and system based on Appium
CN114879647A (en) ECU fault code test system, electronic controller and car
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN114625664A (en) Automatic testing method, device, equipment and storage medium
CN101976219A (en) Method and system for debugging automatic testing script and agent device
CN114490163B (en) Fault self-healing method and device and electronic equipment

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: 20210409