CN118041813A - Signal test script data construction method and device, electronic equipment and readable medium - Google Patents

Signal test script data construction method and device, electronic equipment and readable medium Download PDF

Info

Publication number
CN118041813A
CN118041813A CN202410430998.2A CN202410430998A CN118041813A CN 118041813 A CN118041813 A CN 118041813A CN 202410430998 A CN202410430998 A CN 202410430998A CN 118041813 A CN118041813 A CN 118041813A
Authority
CN
China
Prior art keywords
signal test
switch signal
page
data
test case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410430998.2A
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.)
SHENZHEN MTN ELECTRONIC CO Ltd
Original Assignee
SHENZHEN MTN ELECTRONIC 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 SHENZHEN MTN ELECTRONIC CO Ltd filed Critical SHENZHEN MTN ELECTRONIC CO Ltd
Priority to CN202410430998.2A priority Critical patent/CN118041813A/en
Publication of CN118041813A publication Critical patent/CN118041813A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the disclosure discloses a signal test script data construction method, a device, an electronic device and a readable medium. One embodiment of the method comprises the following steps: recording signal page data according to the operation behavior of a user on the switch signal test application in response to determining to execute the recording of the switch signal test case; generating a switch signal test case in a target data format according to the recorded signal page data; according to the data format which can be read by the bottom layer driving engine of the signal testing terminal, the switch signal testing case is converted into switch signal testing script data which can be executed by the testing terminal; rendering the switch signal test case according to the signal page data; and responding to the detection of the editing operation of the switch signal test cases displayed in the first signal test page, and generating new signal test cases in a target data format. The embodiment improves the overall generation efficiency of the switch signal test script data.

Description

Signal test script data construction method and device, electronic equipment and readable medium
Technical Field
The embodiment of the disclosure relates to the field of signal test script data construction, in particular to a signal test script data construction method, a device, electronic equipment and a readable medium.
Background
The signals of the switch typically need to be tested before the switch is taken out of the library. Currently, for signal testing of a switch, the following methods are generally adopted: the automatic test method is used for carrying out functional inspection and regression test, and in the functional inspection and regression test, the use cases need to be written, and the current main stream use case writing adopts a recording mode.
However, the test cases recorded in this way often have the following technical problems: the test case recorded in this way usually has the result that the test case is presented in a code form, and codes presented by different recording frameworks are different, so that when the technology of the terminal bottom layer driving engine is updated, the script of the test case recorded before cannot be used.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, may contain information that does not form the prior art that is already known to those of ordinary skill in the art in this country.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose signal test script data construction methods, apparatuses, electronic devices, and computer-readable media to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a signal test script data construction method, the method comprising: recording signal page data according to the operation behavior of a user on the switch signal test application in response to determining to execute the recording of the switch signal test case; generating a switch signal test case in a target data format according to the recorded signal page data, wherein the target data format can be converted into a data format which can be read by a bottom layer driving engine; according to the data format which can be read by the bottom layer driving engine of the signal testing terminal, the switch signal testing case is converted into switch signal testing script data which can be executed by the testing terminal; rendering the switch signal test case according to the signal page data, and displaying the switch signal test case in a first signal test page; and generating a new signal test case in the target data format in response to detecting the editing operation of the switch signal test case displayed in the first signal test page.
In a second aspect, some embodiments of the present disclosure provide a signal test script data construction apparatus, comprising: the recording unit is configured to record signal page data according to the operation behavior of a user on the switch signal test application in response to determining to execute the recording of the switch signal test case; the first generation unit is configured to generate a switch signal test case with a target data format according to the recorded signal page data, wherein the target data format can be converted into a data format which can be read by a bottom layer driving engine; the conversion unit is configured to convert the switch signal test cases into switch signal test script data executable by the test terminal according to a data format readable by a bottom layer driving engine of the signal test terminal; a rendering unit configured to render the switch signal test case according to the signal page data and display the switch signal test case in a first signal test page; and a second generating unit configured to generate a new signal test case in the target data format in response to detecting an editing operation of the switch signal test case displayed in the first signal test page.
In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantageous effects: by the method for constructing the signal test script data, the application range of the switch signal test case can be greatly improved, and the situation that the switch signal test case is regenerated due to the change of a bottom driving engine is reduced or avoided. Specifically, the reason why the test case script recorded before cannot be used is that: the test case recorded in this way usually has the result that the test case is presented in a code form, and codes presented by different recording frameworks are different, so that when the technology of the terminal bottom layer driving engine is updated, the script of the test case recorded before cannot be used. Based on this, the signal test script data construction method of some embodiments of the present disclosure first, in response to determining to execute recording of the switch signal test case, performs signal page data recording according to the operation behavior of the user on the switch signal test application. And secondly, generating a switch signal test case in a target data format according to the recorded signal page data. Wherein the target data format may be converted into a data format that can be read by the underlying drive engine. And then, according to the data format which can be read by the bottom layer driving engine of the signal testing terminal, converting the switch signal testing case into switch signal testing script data which can be executed by the testing terminal. And then, according to the signal page data, rendering the switch signal test case and displaying the switch signal test case in a first signal test page. And finally, generating a new signal test case in the target data format in response to detecting the editing operation of the switch signal test case displayed in the first signal test page. Therefore, the test cases in the target data format are converted into the corresponding readable switch signal test script data again. Without the need to re-record the generated row switch signal test cases. Therefore, the application range of the line switch signal test case can be greatly improved, and the occurrence of the situation that the line switch signal test case is regenerated due to the change of a bottom layer driving engine is reduced or avoided. In addition, the efficiency of converting data is far higher than that of recording line exchanger signal test cases. Thus, the adjustment efficiency of the required switch signal test script data is improved, namely the overall generation efficiency of the switch signal test script data is improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of some embodiments of a signal test script data construction method according to the present disclosure;
FIG. 2 is a schematic diagram of the structure of some embodiments of a signal test script data building apparatus according to the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 is a flow chart of some embodiments of a signal test script data construction method according to the present disclosure. A flow 100 of some embodiments of a signal test script data construction method according to the present disclosure is shown. The signal test script data construction method comprises the following steps:
step 101, in response to determining to execute the recording of the switch signal test case, recording the signal page data according to the operation behavior of the user on the switch signal test application.
In some embodiments, an executing body (e.g., a computing device) of the signal test script data construction method may perform signal page data recording according to user operational behavior on the switch signal test application in response to determining to perform recording of the switch signal test case. The switch signal test case can be used for testing switch signals, such as test signals before the switch of different versions is out of stock. The switch signal test page may be a signal test page requiring recording of page data, particularly a page where the user performs an operation. The switch signal test page may be a front-end-presented page. The front end here is typically an interface for presentation interactions with the user, such as what is displayed on the terminal display. That is, in the process that the user operates on the switch signal testing application, the execution body may record the signal testing application page displayed at the front end.
In practice, the executing body may record the signal page data through the following steps:
Firstly, recording page data of a switch signal test page by using a recording playback device, and extracting test contents. The switch signal test page is a switch signal test application page displayed at the front end of the signal test, and the test contents include: the operation behavior of the user and the switch signal test the page elements of the application page. A plurality of operation editing controls are provided in the record player, such as my device, script recording, script management, save, next step, etc. The recording playback device can record operations (such as clicking and waiting), interfaces and page elements (such as controls, text boxes and pictures) of the switch signal test application page.
And secondly, utilizing the recording and playback device to perform screenshot on the switch signal testing application page when the operation is executed, and performing screenshot on the signal testing response application page. The signal test response application page is a signal test application page after responding to the operation behavior. Under the condition that the user operation is detected, the screen capturing of the switch signal testing application page during and after the user operation is executed can be carried out through the recording and playback device. That is, the page screenshot can be automatically performed before and after the user operation.
Step 102, generating a switch signal test case in a target data format according to the recorded signal page data.
In some embodiments, the execution body may generate the switch signal test case in the target data format according to the recorded signal page data. Wherein the target data format may be converted into a data format that can be read by the underlying drive engine. The target data format includes: separator text format, extensible markup language format, and lightweight data interchange format. The target data format may be converted into at least two other different data formats. The data format converted here is often a data format that can be read by the underlying drive engine of the terminal. The underlying drive engine is usually an engine operated by the drive device, i.e. a native code library of which the drive device performs unmanned operation. The target data format may be converted into a variety of data formats that can be read by the underlying drive engine. As an example, the target data format may include, but is not limited to: a split Fu Wenben format (e.g., comma-SEPARATED VALUES, CSV), an extensible markup language format (e.g., extensible Markup Language, XML), a lightweight data interchange format (e.g., javaScript Object Notation, JSON), a TXT text file format, and the like.
In practice, the execution body may generate the switch signal test case in the target data format through the following steps:
The first step, analyzing and processing the recorded signal page data to obtain signal page analysis information. The signal page parsing information includes: terminal data, test case data, resource data, operation data, and variable data.
And secondly, representing the signal page analysis information in a target data format to generate a switch signal test case.
The terminal data represents basic attribute information of a terminal executing the switch signal test case. The test case data represents basic information of the switch signal test case. The resource data representation records the resources used in the process of the switch signal test case. The operation data represents operation information of user operation. The variable data represents variable information set by the switch signal test case.
In the switch signal test case, the resource data and the operation data are further divided according to the switch signal test application page.
As an example, the target data format may employ the following five types of data content. "appInfo" is used to denote the unique information of the mobile terminal, and is used to record the basic information required for starting the mobile terminal, such as the system, version, etc. The resource is used for indicating which resources are used in the process of recording the switch signal test case. The resources here may include pages, elements of pages, types of elements, spaces, etc., screenshots of each step of operations, element locations, sizes, etc., all of which may be recorded in the node. The basic information of the switch signal test case is denoted by 'testcase'. User operation is recorded with "testcaseOperation". Each user operation is recorded as an operation. Different operations have different types, which in turn may define different operation values, such as opType + opValue. And recording variable information set by the switch signal test case by using 'variable'.
And step 103, converting the switch signal test cases into switch signal test script data executable by the test terminal according to a data format readable by a bottom layer driving engine of the signal test terminal.
In some embodiments, the execution body may convert the switch signal test case into switch signal test script data executable by the test terminal according to a data format readable by an underlying driver engine of the signal test terminal. The execution body can convert the switch signal test cases into switch signal test script data executable by the test terminal according to the data format readable by the test terminal. Namely, the switch signal test case in the target data format is converted into a data format which can be read by the bottom layer driving engine of the test terminal.
And 104, rendering the switch signal test case according to the signal page data, and displaying the switch signal test case in a first signal test page.
In some embodiments, the execution body may render the switch signal test case according to the signal page data and display the switch signal test case in a first signal test page. The content displayed on the first signal testing page can be set according to actual requirements, for example, content related to user operation in the testing process can be displayed.
Continuing, when the signal test script data construction method of the present application is used for signal test script data construction, the following problems are often associated with the following problems: in the conventional test case recording method, the recorded result is usually presented in a code form, and a user is required to learn the code to perform secondary editing. For these problems, the conventional solutions are: the use case proxy is edited by a technician.
However, the above solution generally has the following technical problem two: the secondary editing has a certain threshold and difficulty, and affects the efficiency of editing and generating test cases.
For the second technical problem, the following solution is decided to be adopted.
In practice, the execution body may render the switch signal test case and display the rendered switch signal test case in the first signal test page by:
The first step is to analyze the user operation in the test case and display the flow and content of the operation in the second signal test page. The second signal testing page includes: page identification of the page where the operation is located, element identification of the page element of the operation and operation identification.
And secondly, according to the signal page data, displaying the page content indicated by the page identification and the page element indicated by the element identification in a third signal test page.
And the second signal test page and the third signal test page are displayed on the same interface. For example, the second signal test page and the third signal test page may be located in different areas of the same page (i.e., the first signal test page) for tiling. For another example, the display area of at least one of the two pages may be moved. The user can edit the test case secondarily according to the page display content and the specific service condition, and the edited result is the test case in the target data format. That is, the user can edit the switch signal test cases shown in the first signal test page. When the execution body detects the editing operation, a new exchanger signal test case in a target data format can be generated according to the editing operation. The editing operation here may be various editing such as deletion, addition, modification operation, etc. of user operation during the test.
The above-mentioned related content is taken as an invention point of the present disclosure, and solves the second technical problem of affecting the efficiency of editing and generating test cases. ". Factors affecting the efficiency of editing and generating test cases tend to be as follows: the secondary editing has a certain threshold and difficulty, and affects the efficiency of editing and generating test cases. If the above factors are solved, the effect of successfully accessing the history signal test document offline can be achieved. To achieve this, first, the user operation in the test case is parsed, and the flow and content of the operation are presented in the second signal test page. The second signal testing page includes: page identification of the page where the operation is located, element identification of the page element of the operation and operation identification. Then, according to the signal page data, displaying the page content indicated by the page identification and the page element indicated by the element identification in a third signal test page; and the second signal test page and the third signal test page are displayed on the same interface. Therefore, the content of the switch signal test case can be visually displayed intuitively, so that the user can edit the switch signal test case conveniently, and the editing efficiency and the efficiency of generating a new switch signal test case are improved.
Step 105, generating a new signal test case in the target data format in response to detecting an editing operation of the switch signal test case displayed in the first signal test page.
In some embodiments, the execution body may generate the new signal test case of the target data format in response to detecting an editing operation of the switch signal test case displayed in the first signal test page.
Optionally, determining data formats readable by the bottom layer driving engines of the various terminals, and constructing a conversion data table for representing the corresponding relation between different bottom layer driving engines and the data formats.
In some embodiments, the execution body may determine data formats readable by the underlying drive engines of the various terminals, and construct a conversion data table that characterizes correspondence between different underlying drive engines and the data formats.
Optionally, the conversion data table is updated and maintained according to the update information of each bottom layer driving engine.
In some embodiments, the executing entity may update and maintain the conversion data table according to update information of each underlying driving engine.
That is, the test cases due to the generated target data format do not depend on the underlying drive engine. The underlying drive engine may be replaced according to the actual situation. If there is a better underlying drive engine, it can be replaced at any time. At this time, only the back-end analysis module or the conversion data table is required to be updated and converted into the required switch signal test script data, and the switch signal test case is not required to be re-recorded and generated.
Continuing, after the signal test script data construction method of the present application is adopted to construct signal test script data, the following problems are often associated with the following problems: users typically need to access the historical signal test documents offline. For these problems, the conventional solutions are: and caching the webpage codes of the history signal test document in the production line management end so as to realize offline opening of the webpage of the history signal test document.
However, the above solution generally has the following technical problem three: the internal plug-in has domain name limitation, and the plug-in cannot be normally used when local loading is used, so that the function is abnormal when offline, and a history signal test document cannot be accessed.
Aiming at the third technical problem, the following solution is adopted.
Optionally, in response to detecting a view operation of a historical signal test document acting in the switch signal test application, determining a current network connection state of the switch signal test application.
In some embodiments, the executing entity may determine a current network connection state of the switch signal testing application in response to detecting a viewing operation of a historical signal testing document acting in the switch signal testing application. The viewing operation may be a selection operation for one of the history signal test documents displayed in the history signal test document list. The selecting operation may include: click, slide, drag, hover. The network connection status may characterize the connection status of the network. The network connection state may include: online state, offline state. The historical signal test document may be a descriptive document in which the switch signal test has been completed historically.
Optionally, in response to determining that the current network connection state of the switch signal testing application characterizes the offline state, replacing the web page resource entry information of the history signal testing document with target entry file information, and loading the target web page resource information to offline display the web page of the history signal testing document in the switch signal testing application.
In some embodiments, the executing entity may, in response to determining that the current network connection state of the switch signal testing application characterizes the offline state, replace web page resource entry information of the history signal testing document with target entry file information, and load target web page resource information to display the web page of the history signal testing document offline in the switch signal testing application. The target entry file information is previously downloaded file information corresponding to a web page entry of the history signal test document, the target web page resource information is locally and previously stored web page resource information corresponding to the web page, and after the history signal test document is accessed online, the entry file and the web page resource information of the web page of the history signal test document are locally stored. For example, the portal file may be an html file. The target entry file information may be a file storage path of an entry file of a web page of the history signal test document, which may be previously downloaded with the file information. The target web page resource information may be locally and previously stored web page resource information corresponding to the web page. The web page resource information may be the resources required when the web page is loaded. The web page resource information may include: JS file, CSS file, page resource information. The page resource information may include: pictures, videos, text.
Optionally, in response to determining that the current network connection state of the switch signal testing application characterizes the online state, front-end resource information of the web page corresponding to the history signal testing document is not stored locally, and the front-end resource information is downloaded from the signal testing server.
In some embodiments, the executing entity may download the front-end resource information from the signal testing server in response to determining that the current network connection state of the switch signal testing application characterizes the online state and that the front-end resource information of the web page corresponding to the history signal testing document is not stored locally. The front-end resource information comprises an entry file and webpage resource information. The signal testing server may refer to a server of the testing terminal.
Optionally, displaying a web page of the history signal test document in the switch signal test application according to the front-end resource information, and storing the front-end resource information locally.
In some embodiments, the execution body may display a web page of the history signal test document in the switch signal test application according to the front-end resource information, and store the front-end resource information locally. The execution body may display a web page of the history signal test document on line through webview.
In practice, the execution body may execute the following steps for each page resource information included in the front-end resource information:
And a first step of determining a resource path of the page resource information. The resource path may be a path of the page resource information when the web page is loaded. The page resource information can be downloaded locally through a desktop end download resource interface injected by preload. Js.
And a second step of removing each parameter value meeting the preset invalid condition from the resource path to obtain a removed resource path. The preset invalidation condition may be that the parameter value in the resource path belongs to an invalidation parameter in the invalidation parameter set. The invalid parameter set may be preset. For example, the invalid parameter set may include: token, query parameters.
And thirdly, carrying out encryption processing on the removed resource path to obtain an encrypted resource path. In practice, the execution body may use a symmetric encryption algorithm to encrypt the removed resource path to obtain an encrypted resource path.
And step four, storing the page resource information according to the encryption resource path. In practice, the execution body may determine the encrypted resource path as a file name of the page resource information, and store the page resource information locally.
The above related content is taken as an invention point of the present disclosure, which solves the technical problem three that the history signal test document cannot be accessed. ". Factors that cannot access the historical signal test document are often as follows: the internal plug-in has domain name limitation, and the plug-in cannot be normally used when local loading is used, so that the function is abnormal when offline, and a history signal test document cannot be accessed. If the above factors are solved, the effect of successfully accessing the history signal test document offline can be achieved. To achieve this, first, in response to detecting a viewing operation of a history signal test document acting in a switch signal test application, a current network connection state of the switch signal test application is determined. Then, in response to determining that the current network connection state of the switch signal testing application characterizes the offline state, replacing the web page resource entry information of the history signal testing document with target entry file information, and loading the target web page resource information to offline display the web page of the history signal testing document in the switch signal testing application. The target entry file information is previously downloaded file information corresponding to a web page entry of the history signal test document, the target web page resource information is locally and previously stored web page resource information corresponding to the web page, and after the history signal test document is accessed online, the entry file and the web page resource information of the web page of the history signal test document are locally stored. And then, in response to determining that the current network connection state of the switch signal testing application represents the online state, and front-end resource information of the webpage corresponding to the history signal testing document is not stored locally, downloading the front-end resource information from the signal testing server. The front-end resource information comprises an entry file and webpage resource information. Finally, according to the front-end resource information, displaying the web page of the history signal test document in the switch signal test application, and storing the front-end resource information to the local. Therefore, when the history signal test document is accessed offline, the entry of the history signal test document webpage is switched in advance, and the limitation of domain names can be avoided, so that the plug-in can be normally used when the local loading is performed, and the history signal test document can be accessed offline successfully.
With further reference to fig. 2, as an implementation of the method shown in the above figures, the present disclosure provides some embodiments of a signal test script data building apparatus, which correspond to those method embodiments shown in fig. 1, which are particularly applicable in various electronic devices.
As shown in fig. 2, the signal test script data constructing apparatus 200 of some embodiments includes: a recording unit 201, a generating unit 202, a converting unit 203, a rendering unit 204, and a generating unit 205. Wherein, the recording unit 201 is configured to record signal page data according to the operation behavior of the user on the switch signal test application in response to determining to execute the recording of the switch signal test case; a generating unit 202 configured to generate, according to the recorded signal page data, a switch signal test case in a target data format, where the target data format may be converted into a data format that can be read by the underlying drive engine; a conversion unit 203 configured to convert the switch signal test case into switch signal test script data executable by the test terminal according to a data format readable by a bottom layer driving engine of the signal test terminal; a rendering unit 204 configured to render the switch signal test case according to the signal page data and display the switch signal test case in a first signal test page; and a generating unit 205 configured to generate a new signal test case in the target data format in response to detecting an editing operation of the switch signal test case displayed in the first signal test page.
It will be appreciated that the elements described in the signal test script data building apparatus 200 correspond to the individual steps in the method described with reference to fig. 1. Thus, the operations, features and advantages described above for the method are equally applicable to the signal test script data building apparatus 200 and the units contained therein, and are not described herein.
Referring now to fig. 3, a schematic diagram of an electronic device (e.g., computing device) 300 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various suitable actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and task data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM302, and the RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
In general, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 308 including, for example, magnetic tape, hard disk, etc.; and communication means 309. The communication means 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange task data. While fig. 3 shows an electronic device 300 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 3 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 309, or from storage device 308, or from ROM 302. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing means 301.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a task data signal that propagates in baseband or as part of a carrier wave, in which computer-readable program code is carried. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital task data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: recording signal page data according to the operation behavior of a user on the switch signal test application in response to determining to execute the recording of the switch signal test case; generating a switch signal test case in a target data format according to the recorded signal page data, wherein the target data format can be converted into a data format which can be read by a bottom layer driving engine; according to the data format which can be read by the bottom layer driving engine of the signal testing terminal, the switch signal testing case is converted into switch signal testing script data which can be executed by the testing terminal; rendering the switch signal test case according to the signal page data, and displaying the switch signal test case in a first signal test page; and generating a new signal test case in the target data format in response to detecting the editing operation of the switch signal test case displayed in the first signal test page.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including a product oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor comprising: recording unit, generating unit, converting unit, rendering unit and generating unit. The names of these units do not limit the unit itself in some cases, for example, the recording unit may also be described as "a unit that performs recording of signal page data according to the user's operation behavior on the switch signal test application" in response to determining to perform recording of the switch signal test case.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (7)

1. A method for constructing signal test script data comprises the following steps:
recording signal page data according to the operation behavior of a user on the switch signal test application in response to determining to execute the recording of the switch signal test case;
generating a switch signal test case in a target data format according to the recorded signal page data, wherein the target data format can be converted into a data format which can be read by a bottom layer driving engine;
according to the data format which can be read by the bottom layer driving engine of the signal testing terminal, converting the switch signal testing case into switch signal testing script data which can be executed by the testing terminal;
rendering the switch signal test case according to the signal page data, and displaying the switch signal test case in a first signal test page;
And generating a new signal test case in the target data format in response to detecting the editing operation of the switch signal test case displayed in the first signal test page.
2. The method of claim 1, wherein the target data format comprises: a separator text format, an extensible markup language format, and a lightweight data interchange format; the method further comprises:
Determining the readable data formats of bottom layer driving engines of various terminals, and constructing a conversion data table representing the corresponding relation between different bottom layer driving engines and the data formats;
and updating and maintaining the conversion data table according to the updating information of each bottom driving engine.
3. The method of claim 2, wherein the recording of the signal page data according to the user's operation behavior on the switch signal test application comprises:
recording page data of a switch signal test page by using a recording and playback device, and extracting test contents, wherein the switch signal test page is a switch signal test application page displayed at a signal test front end, and the test contents comprise: the operation behavior of the user and the switch signal test the page elements of the application page;
and utilizing the recording playback device to capture a switch signal testing application page when the operation behavior is executed and capture a signal testing response application page, wherein the signal testing response application page is a signal testing application page after the operation behavior is responded.
4. The method of claim 3, wherein the generating the switch signal test case in the target data format according to the recorded signal page data comprises:
Analyzing and processing the recorded signal page data to obtain signal page analysis information, wherein the signal page analysis information comprises: terminal data, test case data, resource data, operation data and variable data;
the signal page analysis information is expressed in a target data format, and a switch signal test case is generated;
the terminal data represents basic attribute information of a terminal executing the switch signal test case;
the test case data represents basic information of the switch signal test case;
the resource data represents resources used in the process of recording the switch signal test case;
the operation data represents operation information of user operation;
the variable data represents variable information set by the switch signal test case;
In the switch signal test case, the resource data and the operation data are further divided according to a switch signal test application page.
5. A signal test script data construction apparatus comprising:
the recording unit is configured to record signal page data according to the operation behavior of a user on the switch signal test application in response to determining to execute the recording of the switch signal test case;
The first generation unit is configured to generate a switch signal test case in a target data format according to the recorded signal page data, wherein the target data format can be converted into a data format which can be read by an underlying drive engine;
the conversion unit is configured to convert the switch signal test cases into switch signal test script data executable by the test terminal according to a data format readable by a bottom layer driving engine of the signal test terminal;
a rendering unit configured to render the switch signal test case according to the signal page data and display the switch signal test case in a first signal test page;
and a second generating unit configured to generate a new signal test case in the target data format in response to detecting an editing operation on the switch signal test case displayed in the first signal test page.
6. An electronic device, comprising:
One or more processors;
A storage device having one or more programs stored thereon,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-4.
7. A computer readable medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any of claims 1-4.
CN202410430998.2A 2024-04-11 2024-04-11 Signal test script data construction method and device, electronic equipment and readable medium Pending CN118041813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410430998.2A CN118041813A (en) 2024-04-11 2024-04-11 Signal test script data construction method and device, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410430998.2A CN118041813A (en) 2024-04-11 2024-04-11 Signal test script data construction method and device, electronic equipment and readable medium

Publications (1)

Publication Number Publication Date
CN118041813A true CN118041813A (en) 2024-05-14

Family

ID=90989779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410430998.2A Pending CN118041813A (en) 2024-04-11 2024-04-11 Signal test script data construction method and device, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN118041813A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043543A (en) * 2006-03-24 2007-09-26 中兴通讯股份有限公司 Automatized test tool and method for program controlled exchanger
CN112860542A (en) * 2021-01-20 2021-05-28 北京神州数字科技有限公司 UI automation test method
CN113900958A (en) * 2021-10-29 2022-01-07 中国电信股份有限公司 Test case script generation method, system, medium and electronic device
CN116866242A (en) * 2023-08-21 2023-10-10 浪潮思科网络科技有限公司 Switch regression testing method, device and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043543A (en) * 2006-03-24 2007-09-26 中兴通讯股份有限公司 Automatized test tool and method for program controlled exchanger
CN112860542A (en) * 2021-01-20 2021-05-28 北京神州数字科技有限公司 UI automation test method
CN113900958A (en) * 2021-10-29 2022-01-07 中国电信股份有限公司 Test case script generation method, system, medium and electronic device
CN116866242A (en) * 2023-08-21 2023-10-10 浪潮思科网络科技有限公司 Switch regression testing method, device and medium

Similar Documents

Publication Publication Date Title
CN111625473B (en) Interface test case generation method and device, storage medium and electronic equipment
KR102045602B1 (en) Live tiles without application-code execution
CN111611145B (en) Breakdown information collection method and device, storage medium and electronic equipment
JP2021103506A (en) Method and device for generating information
CN111400625B (en) Page processing method and device, electronic equipment and computer readable storage medium
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN111813465B (en) Information acquisition method, device, medium and equipment
WO2024099171A1 (en) Video generation method and apparatus
CN113254136A (en) Information recommendation popup window display method, device, equipment and computer readable medium
CN112035092A (en) Form processing method, device, equipment and readable medium
CN111552620A (en) Data acquisition method, device, terminal and storage medium
CN118041813A (en) Signal test script data construction method and device, electronic equipment and readable medium
CN112286808B (en) Application program testing method and device, electronic equipment and medium
CN115328362A (en) Book information display method, device, equipment and storage medium
CN112817874A (en) User interface test method, device, equipment and medium
CN114371888A (en) Method and device for hot updating of log collection plug-in, electronic equipment and readable medium
US11379110B1 (en) Artificial intelligence-based operating system for drag and drop operations
CN118041804B (en) Communication equipment networking data detection method and device, electronic equipment and readable medium
CN115422131B (en) Business audit knowledge base retrieval method, device, equipment and computer readable medium
CN109740100B (en) Webpage node sniffing method, device, equipment and storage medium
CN116360710B (en) Data storage method applied to server cluster, electronic device and readable medium
CN114428823B (en) Data linkage method, device, equipment and medium based on multidimensional variable expression
CN116701181B (en) Information verification flow display method, device, equipment and computer readable medium
CN118035594A (en) Method, apparatus, electronic device and computer readable medium for accessing production document
CN116467178A (en) Database detection method, apparatus, electronic device and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination