CN112925698A - Test script generation method and integrated development environment - Google Patents

Test script generation method and integrated development environment Download PDF

Info

Publication number
CN112925698A
CN112925698A CN201911143616.3A CN201911143616A CN112925698A CN 112925698 A CN112925698 A CN 112925698A CN 201911143616 A CN201911143616 A CN 201911143616A CN 112925698 A CN112925698 A CN 112925698A
Authority
CN
China
Prior art keywords
template
script
test
development environment
integrated development
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.)
Granted
Application number
CN201911143616.3A
Other languages
Chinese (zh)
Other versions
CN112925698B (en
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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201911143616.3A priority Critical patent/CN112925698B/en
Publication of CN112925698A publication Critical patent/CN112925698A/en
Application granted granted Critical
Publication of CN112925698B publication Critical patent/CN112925698B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a test script generation method and an integrated development environment, wherein the method comprises the following steps: displaying a scene template library in a preset integrated development environment, wherein different scene templates in the scene template library correspond to different test scenes, and the test scenes at least comprise any one of the following: cell access, inter-station switching, file transmission and log analysis; generating a script template of a test scene corresponding to the target scene template according to the target scene template selected by the user in the scene template library; displaying the script template in an editing interface of the integrated development environment; and generating a test script according to the user-defined parameters input by the user aiming at the script template. The embodiment of the application can improve the efficiency of generating the test script, and further improve the efficiency of testing the base station.

Description

Test script generation method and integrated development environment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a test script generation method and an integrated development environment.
Background
An IDE (Integrated Development Environment) is used to provide a program Development Environment, typically centered around a code editor, that includes a series of peripheral components and attached functionality.
Currently, many types of Python (a computer programming language) IDE are used, such as IDLE, PythonWin, MacPython IDE, Emacs and Vim, Eclipse + PyDev, Ulipad, Pyscript, etc.
The Python IDE may provide code editing functionality and the tester may generate test scripts using the Python IDE. However, the common characteristics of the current Python IDE are that the size is large, the starting speed is slow, the occupied resources are large, and for different test scenarios, testers need to compile different test scripts, resulting in lower test efficiency.
Disclosure of Invention
The embodiment of the application provides a test script generation method and an integrated development environment, which can improve the efficiency of generating a test script and further improve the efficiency of testing a base station.
The embodiment of the application provides a test script generation method, which comprises the following steps:
displaying a scene template library in a preset integrated development environment, wherein different scene templates in the scene template library correspond to different test scenes, and the test scenes at least comprise any one of the following: cell access, inter-station switching, file transmission and log analysis;
generating a script template of a test scene corresponding to the target scene template according to the target scene template selected by the user in the scene template library;
displaying the script template in an editing interface of the integrated development environment;
and generating a test script according to the user-defined parameters input by the user aiming at the script template.
The embodiment of the application provides an integrated development environment, which comprises:
the scene template library is used for generating script templates corresponding to different test scenes; different scene templates in the scene template library correspond to different test scenes, and the test scenes at least comprise any one of the following: cell access, inter-station switching, file transmission and log analysis;
and the editing interface is used for displaying and editing the script template.
The embodiment of the application has the following advantages:
the method comprises the steps that a customized integrated development environment is developed in advance, and a scene template library is displayed in the integrated development environment; generating a script template of a test scene corresponding to the target scene template according to the target scene template selected by the user in the scene template library; displaying the script template in an editing interface of the integrated development environment; and generating a test script according to the user-defined parameters input by the user aiming at the script template. Different scene templates in the scene template library correspond to different test scenes, and the test scenes at least comprise any one of the following: cell access, inter-station switching, file transmission and log analysis.
According to the embodiment of the application, the text editor is combined with the independent debugger, the universal template library and the self-defined scene template library are integrated, and other complex and huge functions are not needed, so that the integrated development environment has the characteristics of being small and exquisite, occupying few system resources, being high in starting speed and the like.
In addition, the integrated development environment of the embodiment of the application inherits the universal appeal of the programmable Python code, and also adds a scene template for a base station test scene, and through the four scene templates, a plurality of test scripts can be combined, so that the unification of the compiling and debugging of the test scripts and the test scene of a base station product is realized, and the efficiency of base station testing can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 illustrates a flow diagram of one test script generation method embodiment of the present application;
FIG. 2 illustrates a block diagram of an integrated development environment embodiment of the present application;
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Method embodiment
Referring to fig. 1, a flowchart of an embodiment of a test script generation method according to the present application is shown, where the method specifically may include:
step 101, displaying a scene template library in a preset integrated development environment, wherein different scene templates in the scene template library correspond to different test scenes, and the test scenes at least comprise any one of the following: cell access, inter-station switching, file transmission and log analysis;
102, generating a script template of a test scene corresponding to a target scene template according to the target scene template selected by a user in the scene template library;
103, displaying the script template in an editing interface of the integrated development environment;
and 104, generating a test script according to the user-defined parameters input by the user aiming at the script template.
Aiming at the problems that the existing Python IDE is large in size, slow in starting speed, large in occupied resource and not suitable for a special test scene, the embodiment of the application provides a customized integrated development environment. The integrated development environment is developed by using C #, and IronPython (a Python language) developed based on NET is adopted, so that the grammar is compatible with Python, and Python test scripts can be quickly generated.
The integrated development environment provided by the embodiment of the application combines a simple text editor with an independent debugger, encapsulates different scene templates according to different test scenes to obtain a scene template library, and displays the scene template library in the integrated development environment so that a user can select the scene templates corresponding to different test scenes.
Wherein, the test scenario at least comprises any one of the following: cell access, inter-station switching, file transmission and log analysis. Specifically, the script templates corresponding to the test scenarios may be respectively packaged into DLLs (Dynamic Link Library), and a function interface is provided for the Python IDE call in the embodiment of the present application. After the user opens the Python IDE, the scene template library may be displayed in a display interface of the Python IDE. For example, the function name corresponding to each scene template in the scene template library may be displayed in the left side display area of the integrated development environment. For convenience of description, the Python IDE in this embodiment refers to a customized integrated development environment preset in this application.
The user can select a target scene template in the display interface of the scene template library of the Python IDE. For example, the user may double-click a function name corresponding to a certain scenario template in the display interface, at this time, the Python IDE may generate a scenario template corresponding to the target scenario template and display the scenario template in the editing interface. Optionally, the function introduction and parameter description of the function corresponding to the script template may also be displayed at the relevant position of the script template, so as to improve the readability of the program.
In an optional embodiment of the present application, the script template may specifically include: template content and parameter content; the displaying the script template in the editing interface of the integrated development environment may specifically include:
and in an editing interface of the integrated development environment, displaying the template content in the script template, and displaying the parameter content in the script template in a reserved gap filling mode.
In order to improve the efficiency of generating the test script, in the embodiment of the application, after the target scene template selected by the user is detected, the script template corresponding to the target scene template is generated, the script template includes template content corresponding to the test scene, the template content can be preset, and the user does not need to encode any more. The script template also comprises parameter contents corresponding to the test scenes, and the parameter contents are displayed in a reserved gap filling mode. Optionally, the reserved empty area may be highlighted to prompt the user that a custom parameter needs to be entered here.
The generating a test script according to the user-defined parameters input by the user for the script template may specifically include:
step S11, receiving user-defined parameters input by a user in a reserved filling area in the script template;
and step S12, generating a test script according to the template content in the script template and the self-defined parameters.
After the user selects the target scene template, the script template of the target scene template corresponding to the test scene can be automatically displayed in the editing interface of the integrated development environment, and the user only needs to input the self-defined parameters in the reserved filling area, so that the efficiency of generating the test script can be greatly improved, and the difficulty of generating the test script can be reduced.
In an application example of the application, when a tester writes a test script of a certain product, a pre-packaged scene template library can be placed into a folder corresponding to a Python IDE, the Python IDE automatically identifies and loads the scene template library, a function name of the automatically identified scene template is displayed in a display interface of the scene template library on the left side in the Python IDE interface, and after a user double-clicks one function name, a script template corresponding to the function name can be displayed in an editing interface on the right side. Therefore, the user only needs to input the custom parameters in the reserved gap filling area, and the Python IDE can transmit the received custom parameters as actual parameters to the function corresponding to the scene template so as to generate the final test script.
It should be noted that, in addition to the customized scene template library, the integrated development environment of the embodiment of the present application may further include a general template library, where the general template includes a command set such as an instruction, a function, and an exception commonly used by a Python script. According to the embodiment of the application, a simple text editor is combined with an independent debugger, a general template library and a self-defined scene template library are integrated, and other complex and huge functions are not needed, so that the integrated development environment of the embodiment of the application has the characteristics of being small and exquisite, occupying few system resources, being high in starting speed and the like.
In addition, the integrated development environment of the embodiment of the application inherits the universal appeal of the programmable Python code, and also adds a scene template for a base station test scene, and various test scripts can be combined through the four scene templates, so that the unification of the compiling and debugging of the test scripts and the test scene of a base station product is realized, and the base station test efficiency can be improved.
The cell access test scenario refers to that after a base station starts and activates a cell, the base station outputs a radio frequency signal, if the radio frequency signal is input into a shielding box, a mobile phone in the shielding box can be accessed into the cell signal, at this time, an AT (attention) instruction is sent to the mobile phone to inquire whether the mobile phone has a signal, if so, a test result is that the cell access is successful, and if not, the test result is that the cell access is failed. In the embodiment of the application, the script of the cell access test is written by using a Python language and is packaged into the script template corresponding to the cell access test scene, and the script template can be used for testing whether the cell access is successful. The script template can be packaged into a DLL library, and a function interface is provided to be integrated into a Python IDE for a user to call.
Therefore, if a tester wants to test a cell access scene, a scene template corresponding to the cell access test scene is selected from a scene template library of the Python IDE, the Python IDE can automatically generate a script template for testing the cell access scene, and the tester can automatically generate a test script of the cell access scene only by inputting custom parameters, such as cell information and the like.
The user usually moves during the use of the mobile phone, and as the user moves, the mobile phone of the user moves from the radiation area of one base station to the radiation area of another base station. In this case, in order to avoid the situation that the mobile phone has no signal, the inter-station switching scene needs to be tested.
According to the method and the device, the Python language is used for writing the script of the switching scene between the test stations and packaging the script into the script template corresponding to the switching test scene between the test stations, and the script template can be used for testing whether the switching between the test stations is successful or not. The script template can be packaged into a DLL library, and a function interface is provided to be integrated into a Python IDE for a user to call.
By adopting the same method, the embodiment of the application can integrate the scene template corresponding to the file transmission test scene and the scene template corresponding to the log analysis test scene in the Python IDE. Among them, the File Transfer is also referred to as FTP (File Transfer Protocol) service. After the mobile phone is accessed to the cell, the user can perform internet surfing operations such as watching videos and the like through the cell, and at the moment, the function of uploading/downloading files can be triggered, and an FTP service scene needs to be tested. After a test scenario is completed, a large amount of logs are generated in the base station and the mobile phone, and the logs need to be analyzed. The scene template corresponding to the log analysis test scene can be used for acquiring logs generated by the base station and the mobile phone in the test process, and automatically analyzing the logs to obtain an analysis result for the test personnel to check.
It should be noted that, the scene templates corresponding to the four test scenes are added in the integrated development environment of the embodiment of the present application, which is only an application example of the present application, and the embodiment of the present application does not limit the types and the number of the scene templates in the scene template library.
The integrated development environment of the embodiment of the application can provide an interface of the scene template library, different developers can package the scene template of the corresponding test scene of the product according to the developed product, integrate the scene template into the Python IDE, and increase the usability of the Python IDE. For example, in a scene such as a stadium or a concert, a very large number of users may be present in one place at the same time, and then a multi-user test needs to be performed on the base station in the scene in a targeted manner. Therefore, a scene template for multi-user testing can be written by using Python language, and an interface of the scene template is packaged and integrated into an existing scene template library so as to be directly called by a tester. Certainly, the user can also edit or delete the integrated scene template in the integrated development environment, so that the functions of the integrated development environment can be flexibly cut and customized, the integrated development environment can be suitable for different application scenes, the enterprise cost is greatly saved, and the research and development efficiency is improved.
In an optional embodiment of the present application, after the generating a test script according to the user-defined parameters input by the user for the script template, the method may further include:
and compiling the test script in response to a compiling instruction triggered by the test script to generate an executable file.
The customized Python IDE in the embodiment of the application can be combined with lexical analysis and syntactic analysis in the Python compiling principle to debug the test script written by the user and can be compiled into an executable file. Optionally, the Python IDE in the embodiment of the present application may further integrate functions such as syntax coloring, error prompt, code folding, code completion, code block positioning, and reconfiguration, so as to improve the other writing efficiency of the test script.
Specifically, the operation flow of Python IDE in the embodiment of the present application may include the following steps:
step S21, initializing Python IDE;
specifically, the initialization process builds a Python engine by executing the createenine () function.
Step S22, obtaining a test script written by a user and compiling the test script to generate an executable file;
specifically, after a user writes a test script in a Python IDE, the user may click a Compile button in the Python IDE interface, and the Python IDE compiles the test script by executing a compiler () function to generate an executable file.
Step S23, executing the executable file;
the user can click on an Execute button in the Python IDE interface, and the Python IDE runs the compiled executable file by executing the Execute () function.
Step S24, obtaining abnormal information and debugging;
and in the process of running the executable file, if the abnormality occurs, the Python IDE acquires and outputs the abnormality information so that a user debugs the test script according to the abnormality information.
And step S25, outputting a test report.
After the executable file is run, the test report can be output by executing the SetOutput () function, so that the test result can be displayed to the user.
At present, Python IDE is usually deployed in a terminal device of a user, the user writes a test script in the terminal device, and debugs and compiles the test script in the terminal device to generate an executable file, and then executes the executable file in a device to be tested (e.g., a base station) to complete a test operation. Thus, Python IDE needs to be deployed in the terminal device of each tester, which is complex and costly.
In an optional embodiment of the present application, the integrated development environment may be deployed in a remote server, and one integrated development environment in the remote server may correspond to at least one terminal device. Optionally, the displaying the scene template library in the preset integrated development environment may specifically include: displaying a scene template library in an integrated development environment preset in the remote server;
the generating, according to the target scene template selected by the user in the scene template library, the script template of the test scene corresponding to the target scene template may specifically include:
the terminal equipment selects a target scene template in the integrated development environment of the remote server through remote connection;
the remote server generates a script template of the test scene corresponding to the target scene template;
the displaying the script template in the editing interface of the integrated development environment may specifically include: displaying the script template in an editing interface of the integrated development environment of the remote server;
the generating a test script according to the user-defined parameters input by the user for the script template may specifically include:
the terminal equipment inputs self-defined parameters in a script template of the remote server through remote connection;
and the remote server generates a test script according to the script template and the user-defined parameters.
The Python IDE in the embodiment of the application may be deployed in a remote server, and after the terminal device of the user establishes a remote connection with the remote server, the user may use the Python IDE in the remote server through the remote connection in the terminal device of the user.
Specifically, the user may use the terminal device to establish a remote connection with the remote server, log in to the remote server through the remote connection, and then may open and use the Python IDE in the remote server. The user can select a target scene template in the Python IDE of the remote server; and the remote server displays the script template corresponding to the target scene template in an editing interface of a Python IDE of the remote server. The user inputs custom parameters in a script template of a remote server through remote connection between terminal equipment and the remote server, and a Python IDE of the remote server generates a test script according to the script template and the custom parameters and compiles the test script in the remote server. Therefore, remote writing and compiling of the test script can be achieved through the embodiment of the application, and the Python IDE does not need to be deployed on the terminal equipment of the user.
In addition, one integrated development environment in the remote server may correspond to at least one terminal device. Therefore, the Python IDE does not need to be deployed in the terminal equipment of the user, and the Python IDE only needs to be deployed in the remote server once, so that the Python IDE in the remote server can be accessed by a plurality of users together, and the deployment cost can be reduced. A plurality of users can remotely use Python IDE in the same remote server through respective terminal equipment, so that the combined debugging of the test script is realized, and the test efficiency is further improved.
In an optional embodiment of the present application, the integrated development environment may be respectively deployed in a remote server and a terminal device, and the remote server and a base station to be tested have the same network segment; after the generating the test script, the method may further include:
step S31, uploading the test script to the remote server;
and step S32, executing the test script in the remote server to test the base station to be tested.
In this embodiment of the present application, a Python IDE may also be deployed in both the remote server and the terminal device. The generation and compiling process of the test script can be executed in Python IDE of the terminal device, and the terminal device uploads the compiled script file to a remote server. The network segment where the remote server is located is the same as the base station to be tested, so that the remote server executes the test script to test the base station to be tested, and the test efficiency is improved.
Optionally, in the embodiment of the present application, the test script may be downloaded from a remote server in addition to being uploaded to the remote server. When a tester needs to locally modify a certain test script in a remote server, the test script can be directly opened in Python IDE of the remote server through remote connection, and is edited and debugged; the test script can also be downloaded to the local terminal equipment, edited and debugged in Python IDE of the terminal equipment, and uploaded to a corresponding position in a remote server after debugging is finished. Therefore, through the embodiment of the application, even if a tester cannot arrive at a debugging site, the test script can be remotely debugged, and the test efficiency is further improved.
In an optional embodiment of the present application, after uploading the test script to the remote server, the method may further include:
and synchronizing the updated content to the integrated development environment of the remote server when detecting that the updated content is generated in the integrated development environment of the terminal equipment.
In order to prevent the test script written by the user from being damaged or lost, in the embodiment of the present application, the test scripts in the terminal device and the remote server are updated synchronously under the condition that Python IDE is deployed in both the terminal device and the remote server.
Specifically, a user writes and debugs a test script in a Python IDE of the terminal device, the Python IDE of the terminal device can detect whether updated content is generated in real time, and if the updated content is detected, the updated content is synchronously stored in the Python IDE of the remote server. Therefore, even if the Python IDE of the user terminal equipment fails to cause the loss of the test script in the terminal equipment, the backup test script can be obtained from the remote server, and the safety of the test script can be improved.
In summary, the embodiment of the present application develops a customized integrated development environment in advance, and displays a scene template library in the integrated development environment; generating a script template of a test scene corresponding to the target scene template according to the target scene template selected by the user in the scene template library; displaying the script template in an editing interface of the integrated development environment; and generating a test script according to the user-defined parameters input by the user aiming at the script template. Different scene templates in the scene template library correspond to different test scenes, and the test scenes at least comprise any one of the following: cell access, inter-station switching, file transmission and log analysis.
According to the embodiment of the application, the text editor is combined with the independent debugger, the universal template library and the self-defined scene template library are integrated, and other complex and huge functions are not needed, so that the integrated development environment has the characteristics of being small and exquisite, occupying few system resources, being high in starting speed and the like.
In addition, the integrated development environment of the embodiment of the application inherits the universal appeal of the programmable Python code, and also adds a scene template for a base station test scene, and through the four scene templates, a plurality of test scripts can be combined, so that the unification of the compiling and debugging of the test scripts and the test scene of a base station product is realized, and the efficiency of base station testing can be improved.
Device embodiment
Referring to fig. 2, a block diagram of an embodiment of an integrated development environment according to the present application is shown, where the integrated development environment specifically includes:
a scene template library 201, configured to generate script templates corresponding to different test scenes; different scene templates in the scene template library correspond to different test scenes, and the test scenes at least comprise any one of the following: cell access, inter-station switching, file transmission and log analysis;
and the editing interface 202 is used for displaying and editing the script template.
Aiming at the problems that the existing Python IDE is large in size, slow in starting speed, large in occupied resource and not suitable for a special test scene, the embodiment of the application provides a customized integrated development environment. The integrated development environment is developed by using C # language, and IronPython developed based on NET is adopted, so that grammar is compatible with Python, and Python test scripts can be generated quickly.
The integrated development environment provided by the embodiment of the application combines a simple text editor with an independent debugger, encapsulates different scene templates according to different test scenes to obtain a scene template library, and displays the scene template library in the integrated development environment so that a user can select the scene templates corresponding to different test scenes.
Optionally, the script template includes: template content and parameter content;
the editing interface 202 is specifically configured to display template contents in the script template and display parameter contents in the script template in a reserved space filling manner;
the editing interface 202 is further configured to receive a user-defined parameter input by a user in a reserved gap filling area in the script template;
the integrated development environment further comprises:
and the script generation module is used for generating a test script according to the template content in the script template and the user-defined parameters.
Optionally, the integrated development environment further comprises:
and the code compiler is used for compiling the test script in response to the compiling instruction triggered by the test script to generate an executable file.
Optionally, the integrated development environment is deployed in a remote server, and one integrated development environment in the remote server corresponds to at least one terminal device.
Optionally, the integrated development environment is respectively deployed in a remote server and a terminal device, and the remote server and the base station to be tested have the same network segment.
Optionally, the integrated development environment further comprises:
and the synchronous updating module is used for synchronizing the updated content to the integrated development environment of the remote server when detecting that the updated content is generated in the integrated development environment of the terminal equipment.
The integrated development environment provided by the embodiment of the application inherits the universal appeal of the programmable Python code, and also adds the scene templates for the test scenes of the base station, and a plurality of test scripts can be combined through the four scene templates, so that the compiling and debugging of the test scripts and the unification of the test scenes of the base station product are realized, and the efficiency of the base station test can be improved.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description is given to a test script generation method and an integrated development environment provided by the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (13)

1. A method for generating a test script, the method comprising:
displaying a scene template library in a preset integrated development environment, wherein different scene templates in the scene template library correspond to different test scenes, and the test scenes at least comprise any one of the following: cell access, inter-station switching, file transmission and log analysis;
generating a script template of a test scene corresponding to the target scene template according to the target scene template selected by the user in the scene template library;
displaying the script template in an editing interface of the integrated development environment;
and generating a test script according to the user-defined parameters input by the user aiming at the script template.
2. The method of claim 1, wherein the script template comprises: template content and parameter content; the displaying the script template in the editing interface of the integrated development environment comprises:
in an editing interface of the integrated development environment, displaying template contents in the script template, and displaying parameter contents in the script template in a reserved gap filling mode;
the generating of the test script according to the user-defined parameters input by the user aiming at the script template comprises the following steps:
receiving a user-defined parameter input by a user in a reserved gap filling area in the script template;
and generating a test script according to the template content in the script template and the self-defined parameters.
3. The method according to claim 1, wherein after generating the test script according to the user-defined parameters inputted by the user for the script template, the method further comprises:
and compiling the test script in response to a compiling instruction triggered by the test script to generate an executable file.
4. The method of claim 1, wherein the integrated development environments are deployed in remote servers, and wherein one integrated development environment in the remote servers corresponds to at least one terminal device.
5. The method of claim 4, wherein displaying the scene template library in the pre-configured integrated development environment comprises:
displaying a scene template library in an integrated development environment preset in the remote server;
the generating a script template of the test scene corresponding to the target scene template according to the target scene template selected by the user in the scene template library includes:
the terminal equipment selects a target scene template in the integrated development environment of the remote server through remote connection;
the remote server generates a script template of the test scene corresponding to the target scene template;
the displaying the script template in the editing interface of the integrated development environment comprises:
displaying the script template in an editing interface of the integrated development environment of the remote server;
the generating of the test script according to the user-defined parameters input by the user aiming at the script template comprises the following steps:
the terminal equipment inputs self-defined parameters in a script template of the remote server through remote connection;
and the remote server generates a test script according to the script template and the user-defined parameters.
6. The method of claim 1, wherein the integrated development environment is deployed in a remote server and a terminal device, respectively, and the remote server and a base station to be tested have the same network segment; after the generating the test script, the method further comprises:
uploading the test script to the remote server;
and executing the test script in the remote server to test the base station to be tested.
7. The method of claim 6, wherein after uploading the test script to the remote server, the method further comprises:
and synchronizing the updated content to the integrated development environment of the remote server when detecting that the updated content is generated in the integrated development environment of the terminal equipment.
8. An integrated development environment, the integrated development environment comprising:
the scene template library is used for generating script templates corresponding to different test scenes; different scene templates in the scene template library correspond to different test scenes, and the test scenes at least comprise any one of the following: cell access, inter-station switching, file transmission and log analysis;
and the editing interface is used for displaying and editing the script template.
9. The integrated development environment of claim 8, wherein the script template comprises: template content and parameter content;
the editing interface is specifically used for displaying template contents in the script template and displaying parameter contents in the script template in a reserved gap filling mode;
the editing interface is also used for receiving user-defined parameters input by a user in a reserved filling area in the script template;
the integrated development environment further comprises:
and the script generation module is used for generating a test script according to the template content in the script template and the user-defined parameters.
10. The integrated development environment of claim 8, further comprising:
and the code compiler is used for compiling the test script in response to the compiling instruction triggered by the test script to generate an executable file.
11. The integrated development environment according to claim 8, wherein the integrated development environment is deployed in remote servers, and one of the remote servers corresponds to at least one terminal device.
12. The integrated development environment according to claim 8, wherein the integrated development environment is deployed in a remote server and a terminal device, respectively, and the remote server and the base station to be tested have the same network segment.
13. The integrated development environment of claim 12, further comprising:
and the synchronous updating module is used for synchronizing the updated content to the integrated development environment of the remote server when detecting that the updated content is generated in the integrated development environment of the terminal equipment.
CN201911143616.3A 2019-11-20 2019-11-20 Test script generation method and integrated development environment Active CN112925698B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911143616.3A CN112925698B (en) 2019-11-20 2019-11-20 Test script generation method and integrated development environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911143616.3A CN112925698B (en) 2019-11-20 2019-11-20 Test script generation method and integrated development environment

Publications (2)

Publication Number Publication Date
CN112925698A true CN112925698A (en) 2021-06-08
CN112925698B CN112925698B (en) 2023-11-28

Family

ID=76160741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911143616.3A Active CN112925698B (en) 2019-11-20 2019-11-20 Test script generation method and integrated development environment

Country Status (1)

Country Link
CN (1) CN112925698B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115866224A (en) * 2022-11-25 2023-03-28 中国联合网络通信集团有限公司 Scene switching method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319547A (en) * 2017-01-17 2018-07-24 阿里巴巴集团控股有限公司 Method for generating test case, device and system
CN108345531A (en) * 2017-01-23 2018-07-31 阿里巴巴集团控股有限公司 A kind of test method, apparatus and system
US20190213116A1 (en) * 2018-01-10 2019-07-11 Accenture Global Solutions Limited Generation of automated testing scripts by converting manual test cases

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319547A (en) * 2017-01-17 2018-07-24 阿里巴巴集团控股有限公司 Method for generating test case, device and system
CN108345531A (en) * 2017-01-23 2018-07-31 阿里巴巴集团控股有限公司 A kind of test method, apparatus and system
US20190213116A1 (en) * 2018-01-10 2019-07-11 Accenture Global Solutions Limited Generation of automated testing scripts by converting manual test cases

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115866224A (en) * 2022-11-25 2023-03-28 中国联合网络通信集团有限公司 Scene switching method and device

Also Published As

Publication number Publication date
CN112925698B (en) 2023-11-28

Similar Documents

Publication Publication Date Title
US9760343B2 (en) Application builder based on metadata
CN108647028B (en) Application information processing method and device
CN105094783B (en) method and device for testing stability of android application
Gonsalves Evaluating the mobile development frameworks Apache Cordova and Flutter and their impact on the development process and application characteristics
CN108073400A (en) Software automation construction method, server and storage medium
CN110013672B (en) Method, device, apparatus and computer-readable storage medium for automated testing of machine-run games
CA2698066A1 (en) System and method for remotely compiling multi-platform native applications for mobile devices
CN107704238B (en) Method and device for packaging items
CN109902005B (en) Automatic testing method and system
CN110716853A (en) Test script recording method, application program testing method and related device
CN112882700A (en) iOS application program construction method and device, electronic equipment and storage medium
US11113050B2 (en) Application architecture generation
CN109542463A (en) Compiling file packet transmission method, device, computer equipment and storage medium
US20160154630A1 (en) Simulator with local resource capabilities
EP3447635A1 (en) Application architecture generation
CN111176629A (en) Application development method and device
CN102955698A (en) Processing method and device based on multi-terminal software development
CN114168460A (en) Remote debugging method, device and storage medium for front-end code in hybrid development
KR101005498B1 (en) A test system for handset applications using test libraries and the method thereof
CN113641582A (en) Mixed-mode mobile application debugging method and system
CN115658496A (en) Extensible Web automatic test method, system, equipment and storage medium
CN112925698B (en) Test script generation method and integrated development environment
CN105760300A (en) Automatic STK/UTK service testing method and system
CN103176903B (en) The test method and equipment of MapReduce distributed system program
KR20110019508A (en) A test and history management system for mobile station applications using test libraries and the method thereof

Legal Events

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