CN111949515A - Test scene reproduction method and device and electronic equipment - Google Patents

Test scene reproduction method and device and electronic equipment Download PDF

Info

Publication number
CN111949515A
CN111949515A CN202010719904.5A CN202010719904A CN111949515A CN 111949515 A CN111949515 A CN 111949515A CN 202010719904 A CN202010719904 A CN 202010719904A CN 111949515 A CN111949515 A CN 111949515A
Authority
CN
China
Prior art keywords
page
mobile terminal
instruction
information
scene
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
CN202010719904.5A
Other languages
Chinese (zh)
Inventor
徐治钦
周桂麟
冯育珠
吴江权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Hard Link Network Technology Co ltd
Original Assignee
Shanghai Hard Link Network 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 Hard Link Network Technology Co ltd filed Critical Shanghai Hard Link Network Technology Co ltd
Priority to CN202010719904.5A priority Critical patent/CN111949515A/en
Publication of CN111949515A publication Critical patent/CN111949515A/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/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a test scene reappearing method, a test scene reappearing device and electronic equipment, wherein the method comprises the following steps of: establishing remote connection with at least one mobile terminal, and mapping a first page of the mobile terminal according to the remote connection; acquiring an operation instruction, synchronizing the operation of the operation instruction on the mapped first page to the mobile terminal so as to form a second page on the mobile terminal, and mapping the second page; receiving page information of a second page from the mobile terminal, recording the page information into a host file, and binding the page information with a corresponding operation instruction; the page information comprises an IP address and a domain name; and responding to the scene reproduction instruction, extracting corresponding page information from the host file according to the scene reproduction instruction, and sending the corresponding operation instruction to the mobile terminal to reproduce the test scene.

Description

Test scene reproduction method and device and electronic equipment
Technical Field
The present disclosure relates to the field of testing technologies, and in particular, to a method and an apparatus for reproducing a test scenario, and an electronic device.
Background
In the prior front-end development, after the construction of a webpage is completed, webpage testing is generally required to ensure consistency before and after the webpage is published and compatibility on various browsers and/or various terminals. However, during the testing process, since the user's operation may not be exactly the same, the test scenario of the problem needs to be reproduced for a random problem or an abnormal problem found at a certain time.
The existing test scene reappearing method is to utilize third-party package capturing software or to enable a test scene to be reappeared similarly through operation records, but the reappearing method needs to depend on the stability of the third-party package capturing software, needs to waste a large amount of manpower and material resources to develop and adapt the third-party package capturing software, and cannot conveniently and quickly complete the reappearance of the test scene.
Disclosure of Invention
The present application is directed to at least one of the technical problems in the prior art, and provides a method and an apparatus for reproducing a test scenario, a computer-readable storage medium, and an electronic device, so as to restore the test scenario conveniently and quickly.
The embodiment of the application provides a test scene reappearing method, which comprises the following steps:
establishing remote connection with at least one mobile terminal, and mapping a first page of the mobile terminal according to the remote connection;
acquiring an operation instruction, synchronizing the operation of the operation instruction on the mapped first page to the mobile terminal so as to form a second page on the mobile terminal, and mapping the second page;
receiving the page information of the second page from the mobile terminal, recording the page information into a host file, and binding the page information with the corresponding operation instruction; the page information comprises an IP address and a domain name;
and responding to a scene reproduction instruction, extracting corresponding page information from the host file according to the scene reproduction instruction, and sending the corresponding operation instruction to the mobile terminal to reproduce the test scene.
Further, the mapping out the first page of the mobile terminal according to the remote connection includes:
and sending a page intercepting instruction to the mobile terminal based on the remote connection so as to map the first page intercepted by the mobile terminal according to the page intercepting instruction.
Further, the operation instruction comprises a click instruction;
the synchronizing the operation of the operation instruction on the mapped first page to the mobile terminal to form a second page on the mobile terminal includes:
and acquiring an operation position corresponding to the click command on the mapped first page, and synchronizing the position information of the operation position to the mobile terminal, so that the mobile terminal executes a corresponding operation test on the first page according to the position information to form the second page.
Further, the synchronizing the location information of the operation location to the mobile terminal includes:
establishing a coordinate axis uniquely corresponding to the first page by taking any angular vertex of the first page as a coordinate origin, acquiring coordinate information corresponding to the position information on the coordinate axis, and synchronizing the coordinate information to the mobile terminal corresponding to the first page.
Further, the extracting, according to the scene playback instruction, the corresponding page information from the host file and sending the page information to the mobile terminal includes:
and extracting corresponding page information from the host file according to the scene reappearing instruction, and sending the corresponding page information to the mobile terminal so that the mobile terminal restores the test scene by the extracted page information through the bound network proxy server.
Further, after extracting corresponding page information from the host file according to the scene reproduction instruction and sending the extracted page information to the mobile terminal, sending an operation instruction corresponding to the extracted page information to the mobile terminal to reproduce a test scene includes:
extracting corresponding page information from the host file according to the scene reappearing instruction and sending the corresponding page information to the mobile terminal so as to form a third page on the mobile terminal;
intercepting and mapping the third page, simulating the operation of an operation instruction corresponding to the extracted page information on the mapped third page, and synchronizing the operation instruction corresponding to the extracted page information to the mobile terminal so that the mobile terminal forms a fourth page;
and intercepting and mapping the fourth page.
Further, the method also comprises the following steps:
and when the test scene with preset times needs to be reproduced, executing the test scene reproduction operation with the preset times according to the scene reproduction instruction.
Further, an embodiment of the present application provides a test scenario reproducing apparatus, including:
the mobile terminal comprises a connection establishing module, a first page mapping module and a second page mapping module, wherein the connection establishing module is used for establishing remote connection with at least one mobile terminal and mapping the first page of the mobile terminal according to the remote connection;
the instruction synchronization module is used for acquiring an operation instruction, synchronizing the operation of the operation instruction on the mapped first page to the mobile terminal so as to form a second page on the mobile terminal, and mapping the second page;
the test recording module is used for receiving the page information of the second page from the mobile terminal, recording the page information into a host file, and binding the page information with the corresponding operation instruction; the page information comprises an IP address and a domain name;
and the scene reappearing module is used for responding to a scene reappearing instruction, extracting corresponding page information from the host file according to the scene reappearing instruction, sending the corresponding page information to the mobile terminal, and then sending an operation instruction corresponding to the extracted page information to the mobile terminal to reappear the test scene.
Further, the scene reproduction module is specifically configured to:
extracting corresponding page information from the host file according to the scene reappearing instruction and sending the corresponding page information to the mobile terminal so as to form a third page on the mobile terminal;
intercepting and mapping the third page, simulating the operation of an operation instruction corresponding to the extracted page information on the mapped third page, and synchronizing the operation instruction corresponding to the extracted page information to the mobile terminal so that the mobile terminal forms a fourth page;
and intercepting and mapping the fourth page.
Further, an embodiment of the present application provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the test scenario reproduction method as described in the above embodiments when executing the program.
Further, embodiments of the present application provide a computer-readable storage medium, where computer-executable instructions are stored, and the computer-executable instructions are configured to enable a computer to execute the test scenario reproduction method according to the embodiments.
Compared with the prior art, the embodiment utilizes the host file to quickly bind the environment, does not need a third-party software package, and has strong stability, so that the test environment can be restored more conveniently and quickly when the test scene needs to be restored, and the test scene is restored conveniently and quickly.
Drawings
The present application is further described with reference to the following figures and examples;
FIG. 1 is a diagram of an exemplary test scenario rendering method;
FIG. 2 is a flowchart illustrating a method for reproducing a test scenario according to one embodiment;
FIG. 3 is a flow diagram that illustrates scene reconstruction in one embodiment;
FIG. 4 is a flowchart illustrating a method for reproducing a test scenario in another embodiment;
FIG. 5 is a block diagram showing the construction of a test scene reproducing apparatus according to an embodiment;
FIG. 6 is a block diagram of a computer device in one embodiment.
Detailed Description
Reference will now be made in detail to the present embodiments of the present application, preferred embodiments of which are illustrated in the accompanying drawings, which are for the purpose of visually supplementing the description with figures and detailed description, so as to enable a person skilled in the art to visually and visually understand each and every feature and technical solution of the present application, but not to limit the scope of the present application.
The existing test scene reappearing method carries out scene reappearing through third-party package capturing software. The scene reappearing method has the problems of stability and compatibility besides the need of wasting a large amount of manpower, material resources and time to develop third-party package capturing software. For the device models which cannot be compatible with the third-party software package, the reproduction of the test scene cannot be realized or the stability of the test scene is poor.
To solve the above problem, fig. 1 is an application environment diagram of the test scenario reproduction method in an embodiment. Referring to fig. 1, the test scenario reproducing method may be applied to a remote live machine test, and may specifically be a web page test of a remote live machine, including a computer terminal 110, a server 120, and a mobile terminal 130. The computer terminal 110 is connected with the mobile terminal 130 and the server 120 through a network, and the computer terminal 110 binds a host in advance. The computer terminal 110 may specifically be a desktop terminal 110 or a mobile terminal 110, and the mobile terminal 130 may specifically be at least one or more of a mobile phone, a tablet computer, a notebook computer, and the like. The server 120 may be implemented as a stand-alone server 120 or as a server 120 cluster of multiple servers 120. Wherein, the computer terminal 110 establishes a remote connection with one or more mobile terminals 130 through the server 120 to synchronously display the web pages of the mobile terminals 130 on the display interface. When the user sends an operation instruction, the computer terminal 110 sends the operation instruction to the mobile terminal 130, and simultaneously, after the mobile terminal 130 updates the webpage according to the received operation instruction, records the IP address and the domain name of the updated webpage into the bound host file, stores the operation instruction, and binds the operation instruction with the corresponding IP address and the domain name. When the test scenario needs to be reproduced, the computer terminal 110 extracts the IP address and the domain name from the host file, and sends an operation instruction corresponding to the extracted IP address and domain name to the mobile terminal 130 through the server 120, so that the test scenario is reproduced on the mobile terminal 130, and the reproduced test scenario is mapped at the same time.
By the mode, the host file is utilized to quickly bind the environment, a third-party software package is not needed, and the stability is high, so that the test environment can be restored more conveniently and quickly when the test scene needs to be restored, and the test scene is restored conveniently and quickly.
Hereinafter, the test scenario reproduction method provided in the embodiments of the present application will be described and explained in detail through several specific embodiments.
As shown in fig. 2, in one embodiment, a test scenario reproduction method is provided. The embodiment is mainly illustrated by applying the method to computer equipment. The computer device may specifically be the computer terminal 110 in fig. 1 described above.
Referring to fig. 2, the method for reproducing the test scene specifically includes the following steps:
and step S11, establishing remote connection with at least one mobile terminal, and mapping a first page of the mobile terminal according to the remote connection.
In an embodiment, the computer terminal establishes a remote control connection with the mobile terminal in advance, and the established remote control connection may be, for example, a real-time synchronous connection, so that the computer terminal not only maps out a web page of the mobile terminal, but also enables the mobile terminal to synchronously execute operations on the computer terminal. The first page is a current webpage of the mobile terminal.
In order to reduce the transmission of the data volume under the requirement of ensuring page synchronization, in an embodiment, a page interception instruction is sent to the mobile terminal based on the remote connection, so as to map out a first page intercepted by the mobile terminal according to the page interception instruction.
After the establishment of the remote connection is completed, the computer terminal sends an interception instruction to the mobile terminal which opens the test webpage, so that a first page of the test webpage is intercepted, and the first page is received from the mobile terminal. Because the data volume of the page image is small, the computer terminal can map the test page of the mobile terminal without data transmission at any time by intercepting and receiving the page image from the mobile terminal, so that the communication resource consumption is reduced, and the method is very suitable for the webpage with a non-dynamic effect.
It should be noted that, the computer terminal establishes a remote control connection with one mobile terminal in advance, and also can establish a remote connection with a plurality of mobile terminals in advance, and at this time, the computer terminal can map out web pages of a plurality of mobile terminals.
And step S12, acquiring an operation instruction, synchronizing the operation of the operation instruction on the mapped first page to the mobile terminal so as to form a second page on the mobile terminal, and mapping the second page.
The operation instruction comprises single click, double click, dragging and the like, and can be generated by simulating the operation of a user by the computer terminal or input by the user. For example, a user clicks a mouse, and the mouse triggers a click signal, thereby forming an operation instruction.
In an embodiment, after the establishment of the remote connection is completed, when an operation instruction, such as a click operation of a user, is received on the computer terminal, the computer terminal synchronizes the click operation to the mobile terminal, so that a webpage page formed by the mobile terminal according to the click operation is used as a second page, and meanwhile, the computer terminal synchronizes the second page and displays the second page on the user interface.
In order to further reduce the transmission amount of data when the operation instruction received by the computer terminal is a click instruction, in an embodiment, the computer terminal obtains an operation position corresponding to the click instruction on the mapped first page, and synchronizes the position information of the operation position to the mobile terminal, so that the mobile terminal executes a corresponding operation test on the first page according to the position information to form a second page. In the process, only the position information is transmitted, and other data are not transmitted, so that the data transmission quantity is reduced.
Wherein the click command is a single click and a double click. The single click is an operation performed aiming at a single operation position, and the single click is only one single click action triggered and executed by one single click instruction; the double click is also an operation completed for a single operation position (when the coordinate point targeted by each click in the double click operation is within a predetermined range, it is considered that the double click operation for the single operation position is triggered), and the double click is two click actions that are sequentially triggered to be executed by two click instructions.
When the computer terminal is remotely connected with the mobile terminals, the computer terminal can map a plurality of first pages corresponding to the mobile terminals one by one. In order to avoid the misdelivery of the operation instruction, that is, the operation instruction which should be delivered to the mobile terminal a is delivered to the mobile terminal B, in an embodiment, a coordinate axis which is uniquely corresponding to the first page is established by taking any vertex of a first page on the computer terminal as a coordinate origin, coordinate information corresponding to the position information on the coordinate axis is acquired, and the coordinate information is synchronized to the mobile terminal corresponding to the first page, so that the mobile terminal executes a corresponding operation test according to the received coordinate information to form a second page. And establishing a unique coordinate axis of each first page, so that each mobile terminal can have a corresponding coordinate axis, and thus, when the real machine test of a plurality of terminals is carried out simultaneously, positioning errors can not occur.
And step S13, receiving the page information of the second page from the mobile terminal, recording the page information into a host file, and binding the page information with the corresponding operation instruction.
The page information includes an IP address and a domain name.
In an embodiment, when the mobile terminal updates the web page in response to the operation instruction, the computer terminal receives the page information of the updated web page and records the page information into the bound host file, so as to quickly bind the test environment. It should be noted that, each time the mobile terminal updates the web page in response to the operation instruction, the computer terminal records the page information of the web page formed in response to the operation instruction into the bound host file.
Step S14, in response to the scene playback instruction, extracting corresponding page information from the host file according to the scene playback instruction and sending the extracted page information to the mobile terminal, and then sending an operation instruction corresponding to the extracted page information to the mobile terminal to play back the test scene.
In an embodiment, when a test scenario needs to be reproduced, only corresponding page information needs to be extracted from a host file and sent to the mobile terminal, so that after a test environment is quickly restored through a bound host, an operation instruction corresponding to the extracted page information is sent, and therefore a corresponding operation is executed in the test environment, and the test scenario is restored.
In order to reproduce the test scenario more conveniently and quickly, in an embodiment, corresponding page information is extracted from a host file and sent to the mobile terminal according to a scenario reproduction instruction, so that the mobile terminal restores the test scenario by the extracted page information through the bound network proxy server.
By opening the port on the mobile terminal and using the port as a standard proxy, when an HTTP client (browser and the like) of the mobile terminal is provided with the proxy, all request details can be captured and can be modified, return contents can be obtained, and therefore environment restoration can be performed quickly, and operation restoration can be performed conveniently and quickly to restore a test scene. Illustratively, the mobile terminal binds to the network agent ip as 127.0.0.1 and the port as 8888.
In the existing reduction test scene, the data transmission amount is large because all background data of the computer terminal and the mobile terminal need to be synchronized. To this end, in an embodiment, as shown in fig. 3, a flowchart of a scene reproduction process is shown, which includes:
and step S21, extracting corresponding page information from the host file according to the scene reproduction instruction and sending the corresponding page information to the mobile terminal so as to form a third page on the mobile terminal.
Step S22, capturing and mapping the third page, simulating an operation of the operation instruction corresponding to the extracted page information on the mapped third page, and synchronizing the operation instruction corresponding to the extracted page information to the mobile terminal, so that the mobile terminal forms a fourth page.
Step S23, a fourth page is intercepted and mapped.
In the process of synchronizing the display interface of the mobile terminal, a large amount of data transmission is not needed in a mode of intercepting and acquiring images, so that the scene reappearing process is more stable and faster.
Fig. 4 is a schematic flowchart of a test scenario reproduction method in another embodiment of the present application. In this embodiment, in addition to the steps shown in fig. 2, the method further includes:
and step S15, when the test scenes with preset times need to be reproduced, executing the test scene reproduction operation with preset times according to the scene reproduction instruction.
In order to determine whether the test results included in the test scenes reproduced each time are the same, and thus determine whether the test is stable, in an embodiment, by performing scene reproduction operation for the prediction times, comparison can be performed on the scenes reproduced each time, and further, comparison analysis can be performed on the test results each time, and thus, whether the test is stable is determined.
In another embodiment, as shown in fig. 5, there is provided a test scene reproducing apparatus including:
the connection establishing module 101 is configured to establish a remote connection with at least one mobile terminal, and map a first page of the mobile terminal according to the remote connection.
And the instruction synchronization module 102 is configured to obtain an operation instruction, synchronize an operation of the operation instruction on the mapped first page to the mobile terminal, so as to form a second page on the mobile terminal, and map the second page.
The test recording module 103 is configured to receive, from the mobile terminal, page information of the second page, record the page information in a host file, and bind the page information with a corresponding operation instruction; the page information includes an IP address and a domain name.
And the scene reproduction module 104 is configured to respond to a scene reproduction instruction, extract corresponding page information from the host file according to the scene reproduction instruction, and send the corresponding operation instruction to the mobile terminal to reproduce the test scene.
In an embodiment, the connection establishing module 101 is specifically configured to send a page interception instruction to the mobile terminal based on the remote connection, so as to map out a first page intercepted by the mobile terminal according to the page interception instruction.
In an embodiment, the operation instruction includes a click instruction, and the instruction synchronization module 102 is specifically configured to obtain an operation position corresponding to the click instruction on the mapped first page, and synchronize the position information of the operation position to the mobile terminal, so that the mobile terminal executes a corresponding operation test on the first page according to the position information to form the second page.
In an embodiment, the instruction synchronization module 102 is further configured to establish a coordinate axis uniquely corresponding to the first page by using any vertex of the first page as a coordinate origin, acquire coordinate information corresponding to the position information on the coordinate axis, and synchronize the coordinate information to the mobile terminal corresponding to the first page.
In an embodiment, the scene playback module 104 is further configured to extract corresponding page information from the host file according to the scene playback instruction, and send the corresponding page information to the mobile terminal, so that the mobile terminal restores the test scene through the bound network proxy server using the extracted page information.
In an embodiment, the scene playback module 104 is specifically configured to extract corresponding page information from a host file according to a scene playback instruction and send the corresponding page information to the mobile terminal, so as to form a third page on the mobile terminal; intercepting and mapping a third page, simulating the operation of an operation instruction corresponding to the extracted page information on the mapped third page, and synchronizing the operation instruction corresponding to the extracted page information to the mobile terminal so that the mobile terminal forms a fourth page; and intercepting and mapping out a fourth page.
In one embodiment, a computer apparatus is provided, as shown in fig. 6, which includes a processor, a memory, a network interface, an input device, and a display screen connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may further store a computer program that, when executed by the processor, causes the processor to implement the test scenario reproduction method. The internal memory may also store a computer program, and the computer program, when executed by the processor, may cause the processor to perform the test scenario retrieval method. Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the test scenario reproducing apparatus provided in the present application may be implemented in the form of a computer program, which may be run on a computer device as shown in fig. 6. The memory of the computer device may store therein the respective program modules constituting the test scenario reproducing apparatus. The computer program constituted by the respective program modules causes the processor to execute the steps in the test scenario reproduction method of the embodiments of the present application described in the present specification.
In one embodiment, there is provided an electronic device including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to perform the steps of the test scenario reproduction method described above. Here, the steps of the test scenario reproduction method may be steps in the test scenario reproduction method of each of the above embodiments.
In one embodiment, a computer-readable storage medium is provided, which stores computer-executable instructions for causing a computer to perform the steps of the above-described test scenario reproduction method. Here, the steps of the test scenario reproduction method may be steps in the test scenario reproduction method of each of the above embodiments.
The foregoing is a preferred embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations are also regarded as the protection scope of the present application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

Claims (10)

1. A method for reproducing a test scene, comprising:
establishing remote connection with at least one mobile terminal, and mapping a first page of the mobile terminal according to the remote connection;
acquiring an operation instruction, synchronizing the operation of the operation instruction on the mapped first page to the mobile terminal so as to form a second page on the mobile terminal, and mapping the second page;
receiving the page information of the second page from the mobile terminal, recording the page information into a host file, and binding the page information with the corresponding operation instruction; the page information comprises an IP address and a domain name;
and responding to a scene reproduction instruction, extracting corresponding page information from the host file according to the scene reproduction instruction, and sending the corresponding operation instruction to the mobile terminal to reproduce the test scene.
2. The method according to claim 1, wherein the mapping out the first page of the mobile terminal according to the remote connection comprises:
and sending a page intercepting instruction to the mobile terminal based on the remote connection so as to map the first page intercepted by the mobile terminal according to the page intercepting instruction.
3. The test scenario reproduction method of claim 1, wherein the operation instruction comprises a click instruction;
the synchronizing the operation of the operation instruction on the mapped first page to the mobile terminal to form a second page on the mobile terminal includes:
and acquiring an operation position corresponding to the click command on the mapped first page, and synchronizing the position information of the operation position to the mobile terminal, so that the mobile terminal executes a corresponding operation test on the first page according to the position information to form the second page.
4. The method as claimed in claim 3, wherein the step of synchronizing the position information of the operation position to the mobile terminal comprises:
establishing a coordinate axis uniquely corresponding to the first page by taking any angular vertex of the first page as a coordinate origin, acquiring coordinate information corresponding to the position information on the coordinate axis, and synchronizing the coordinate information to the mobile terminal corresponding to the first page.
5. The method as claimed in claim 1, wherein the extracting corresponding page information from the host file according to the scene playback command and sending the page information to the mobile terminal includes:
and extracting corresponding page information from the host file according to the scene reappearing instruction, and sending the corresponding page information to the mobile terminal so that the mobile terminal restores the test scene by the extracted page information through the bound network proxy server.
6. The method according to claim 1 or 5, wherein after extracting corresponding page information from the host file according to the scene playback instruction and sending the extracted page information to the mobile terminal, sending an operation instruction corresponding to the extracted page information to the mobile terminal to playback the test scene comprises:
extracting corresponding page information from the host file according to the scene reappearing instruction and sending the corresponding page information to the mobile terminal so as to form a third page on the mobile terminal;
intercepting and mapping the third page, simulating the operation of an operation instruction corresponding to the extracted page information on the mapped third page, and synchronizing the operation instruction corresponding to the extracted page information to the mobile terminal so that the mobile terminal forms a fourth page;
and intercepting and mapping the fourth page.
7. The method of claim 1, further comprising:
and when the test scene with preset times needs to be reproduced, executing the test scene reproduction operation with the preset times according to the scene reproduction instruction.
8. A test scenario reproduction apparatus, characterized by an application and a computer terminal, comprising:
the mobile terminal comprises a connection establishing module, a first page mapping module and a second page mapping module, wherein the connection establishing module is used for establishing remote connection with at least one mobile terminal and mapping the first page of the mobile terminal according to the remote connection;
the instruction synchronization module is used for acquiring an operation instruction, synchronizing the operation of the operation instruction on the mapped first page to the mobile terminal so as to form a second page on the mobile terminal, and mapping the second page;
the test recording module is used for receiving the page information of the second page from the mobile terminal, recording the page information into a host file, and binding the page information with the corresponding operation instruction; the page information comprises an IP address and a domain name;
and the scene reappearing module is used for responding to a scene reappearing instruction, extracting corresponding page information from the host file according to the scene reappearing instruction, sending the corresponding page information to the mobile terminal, and then sending an operation instruction corresponding to the extracted page information to the mobile terminal to reappear the test scene.
9. The apparatus according to claim 8, wherein the scene reproduction module is specifically configured to:
extracting corresponding page information from the host file according to the scene reappearing instruction and sending the corresponding page information to the mobile terminal so as to form a third page on the mobile terminal;
intercepting and mapping the third page, simulating the operation of an operation instruction corresponding to the extracted page information on the mapped third page, and synchronizing the operation instruction corresponding to the extracted page information to the mobile terminal so that the mobile terminal forms a fourth page;
and intercepting and mapping the fourth page.
10. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the test scenario reproduction method according to any of claims 1 to 7 when executing the program.
CN202010719904.5A 2020-07-23 2020-07-23 Test scene reproduction method and device and electronic equipment Pending CN111949515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010719904.5A CN111949515A (en) 2020-07-23 2020-07-23 Test scene reproduction method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010719904.5A CN111949515A (en) 2020-07-23 2020-07-23 Test scene reproduction method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111949515A true CN111949515A (en) 2020-11-17

Family

ID=73341722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010719904.5A Pending CN111949515A (en) 2020-07-23 2020-07-23 Test scene reproduction method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111949515A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055225A (en) * 2021-02-08 2021-06-29 网宿科技股份有限公司 Method for acquiring network fault analysis data, terminal and server
CN113204494A (en) * 2021-05-29 2021-08-03 长沙市到家悠享家政服务有限公司 Terminal remote test platform and method, electronic equipment and readable medium
CN113407405A (en) * 2021-05-18 2021-09-17 荣耀终端有限公司 Game scene reproduction method, electronic equipment and system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2508643A (en) * 2012-12-07 2014-06-11 Ibm Method for Performing a Regression Test after Modifying Source Code File
CN104699591A (en) * 2013-12-06 2015-06-10 腾讯科技(深圳)有限公司 Reappearing method and device of test scenes
US20180052764A1 (en) * 2016-08-16 2018-02-22 American Express Travel Related Services Company, Inc. Systems and methods for software testing and test management
CN108337503A (en) * 2018-01-25 2018-07-27 深圳创维数字技术有限公司 DTV site environment analogy method, terminal and computer-readable medium
CN108345533A (en) * 2017-01-24 2018-07-31 腾讯科技(深圳)有限公司 A kind of application program adjustment method, equipment and server
CN109376071A (en) * 2018-09-03 2019-02-22 平安普惠企业管理有限公司 Application software exception feedback method, device, computer equipment and storage medium
CN109408361A (en) * 2018-08-15 2019-03-01 中国平安人寿保险股份有限公司 Monkey tests restored method, device, electronic equipment and computer readable storage medium
US10402302B1 (en) * 2018-03-13 2019-09-03 Red Hat Israel, Ltd. Reproduction of testing scenarios in a continuous integration environment
CN110196788A (en) * 2018-03-30 2019-09-03 腾讯科技(深圳)有限公司 A kind of method for reading data, device, system and storage medium
CN110457097A (en) * 2019-05-24 2019-11-15 平安普惠企业管理有限公司 Page response control method, device, computer equipment and storage medium
CN110659202A (en) * 2019-08-12 2020-01-07 网宿科技股份有限公司 Client automatic testing method and device
CN110704041A (en) * 2019-10-10 2020-01-17 达飞云贷科技(北京)有限公司 Software development method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2508643A (en) * 2012-12-07 2014-06-11 Ibm Method for Performing a Regression Test after Modifying Source Code File
CN104699591A (en) * 2013-12-06 2015-06-10 腾讯科技(深圳)有限公司 Reappearing method and device of test scenes
US20180052764A1 (en) * 2016-08-16 2018-02-22 American Express Travel Related Services Company, Inc. Systems and methods for software testing and test management
CN108345533A (en) * 2017-01-24 2018-07-31 腾讯科技(深圳)有限公司 A kind of application program adjustment method, equipment and server
CN108337503A (en) * 2018-01-25 2018-07-27 深圳创维数字技术有限公司 DTV site environment analogy method, terminal and computer-readable medium
US10402302B1 (en) * 2018-03-13 2019-09-03 Red Hat Israel, Ltd. Reproduction of testing scenarios in a continuous integration environment
CN110196788A (en) * 2018-03-30 2019-09-03 腾讯科技(深圳)有限公司 A kind of method for reading data, device, system and storage medium
CN109408361A (en) * 2018-08-15 2019-03-01 中国平安人寿保险股份有限公司 Monkey tests restored method, device, electronic equipment and computer readable storage medium
CN109376071A (en) * 2018-09-03 2019-02-22 平安普惠企业管理有限公司 Application software exception feedback method, device, computer equipment and storage medium
CN110457097A (en) * 2019-05-24 2019-11-15 平安普惠企业管理有限公司 Page response control method, device, computer equipment and storage medium
CN110659202A (en) * 2019-08-12 2020-01-07 网宿科技股份有限公司 Client automatic testing method and device
CN110704041A (en) * 2019-10-10 2020-01-17 达飞云贷科技(北京)有限公司 Software development method and device

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
LINZIMX: "窗口、视口、屏幕显示详解--计算机绘图基本功", pages 1 - 3, Retrieved from the Internet <URL:https://blog.csdn.net/jinchijixiaowei/article/details/21123941> *
P. BURRASCANO等: "A pulse compression procedure for an effective measurement of intermodulation distortion", 《PROCEEDINGS OF THE 10TH INTERNATIONAL SYMPOSIUM ON IMAGE AND SIGNAL PROCESSING AND ANALYSIS》, 19 October 2017 (2017-10-19), pages 74 - 79 *
于越: "面向漏洞众包平台的可扩展性可视化框架的设计与实现", 《中国优秀硕士学位论文全文数据库(信息科技辑)》, no. 08, 15 August 2018 (2018-08-15), pages 138 - 19 *
宋蕾: "基于场景的测试用例自动生成方法", 《计算机与数字工程》, no. 05, 31 May 2015 (2015-05-31), pages 844 - 848 *
张新星: "基于虚拟化的网络流量模拟系统设计与实现", 《中国优秀硕士学位论文全文数据库(信息科技辑)》, no. 02, 15 February 2018 (2018-02-15), pages 139 - 117 *
李深圳: "Web协同工作流的交互行为安全验证方法研究及应用", 《中国博士学位论文全文数据库(信息科技辑)》, no. 07, 15 July 2017 (2017-07-15), pages 139 - 14 *
鱼亮军: "基于libGDX框架的三维应用在Android中的实现", 《中国优秀硕士学位论文全文数据库(信息科技辑)》, no. 03, 15 March 2017 (2017-03-15), pages 138 - 3949 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055225A (en) * 2021-02-08 2021-06-29 网宿科技股份有限公司 Method for acquiring network fault analysis data, terminal and server
CN113055225B (en) * 2021-02-08 2023-12-05 网宿科技股份有限公司 Network fault analysis data acquisition method, terminal and server
CN113407405A (en) * 2021-05-18 2021-09-17 荣耀终端有限公司 Game scene reproduction method, electronic equipment and system
CN113407405B (en) * 2021-05-18 2022-04-08 荣耀终端有限公司 Game scene reproduction method and electronic equipment
CN113204494A (en) * 2021-05-29 2021-08-03 长沙市到家悠享家政服务有限公司 Terminal remote test platform and method, electronic equipment and readable medium

Similar Documents

Publication Publication Date Title
US10949158B2 (en) Screenshot method and apparatus
CN111949515A (en) Test scene reproduction method and device and electronic equipment
US9645910B1 (en) Cross platform mobile HTML debugging
US9652364B1 (en) Cloud service for mobile testing and debugging
US9923977B2 (en) Transferring cookie data to another domain
CN110971655B (en) Offline client playback and synchronization
CN108540674B (en) Automatic testing method and device, computer equipment and storage medium
CN113190464B (en) mock testing method and device, electronic equipment and medium
CN104965717A (en) Method and apparatus for loading page
CN110990205A (en) Interface call testing method, device and computer readable storage medium
CN109450736B (en) Network interface test method and device, medium and computing equipment
CN103959220B (en) Method for achieving augmented reality, and user equipment
CN108776917B (en) Synchronous processing method and device for virtual three-dimensional space
US20160203163A1 (en) Map analytics for interactive web-based maps
CN108765084B (en) Synchronous processing method and device for virtual three-dimensional space
CN111666199B (en) Debugging method executed on intelligent terminal and software debugger
CN111949517A (en) Remote real machine testing method and device and electronic equipment
CN111104336A (en) Online service interface testing method and device based on container and VNC
CN107102937B (en) User interface testing method and device
CN112650689A (en) Test method, test device, electronic equipment and storage medium
CN104219272B (en) Buffering updating method, terminal and system
CN110321507B (en) Browser cross-domain communication method and device
US10169216B2 (en) Simulating sensors
CN111552643A (en) Multi-browser webpage access synchronization method and system
CN114915565B (en) Network debugging method and system

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