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

Test script generation method and integrated development environment Download PDF

Info

Publication number
CN112925698B
CN112925698B CN201911143616.3A CN201911143616A CN112925698B CN 112925698 B CN112925698 B CN 112925698B CN 201911143616 A CN201911143616 A CN 201911143616A CN 112925698 B CN112925698 B CN 112925698B
Authority
CN
China
Prior art keywords
template
script
test
integrated development
development environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911143616.3A
Other languages
Chinese (zh)
Other versions
CN112925698A (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

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

Abstract

The embodiment of the application provides a test script generation method and an integrated development environment, wherein the method comprises the following steps: in a preset integrated development environment, a scene template library is displayed, 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 handover, file transfer, 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, thereby improving 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 generating method and an integrated development environment.
Background
IDE (Integrated Development Environment ) is used to provide a program development environment, typically centered on a code editor, that includes a series of peripheral components and attached functions.
Python (a computer programming language) IDE currently in common use is of a large variety, such as IDLE, pythonWin, macPython IDE, emacs and Vim, eclipse+ PyDev, uliPad, pyscripter, and the like.
The Python IDE may provide code editing functionality by which a tester may generate test scripts. However, the common characteristics of the current Python IDE are that the volume is huge, the starting speed is slow, the resources are occupied are large, and for different test scenes, the testers need to write different test scripts, so that the test efficiency is low.
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 test scripts and further improve the efficiency of testing base stations.
The embodiment of the application provides a test script generation method, which comprises the following steps:
in a preset integrated development environment, a scene template library is displayed, 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 handover, file transfer, 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 following steps:
the scene template library is used for generating script templates corresponding to different test scenes; 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 handover, file transfer, 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 embodiment of the application pre-develops a customized integrated development environment, and in the integrated development environment, a scene template library is displayed; 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 for 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 handover, file transfer, log analysis.
The embodiment of the application integrates the universal template library and the custom scene template library by combining the text editor with an independent debugger, and does not need other complex and huge functions, so that the integrated development environment of the embodiment of the application has the characteristics of small size, less occupied system resources, high starting speed and the like.
In addition, the integrated development environment of the embodiment of the application not only inherits the universal appeal of the adjustable Python code, but also increases the scene templates aiming at the base station test scene, and a plurality of test scripts can be combined through the four scene templates, so that the writing and debugging of the test scripts and the unification of the test scenes of the base station products are realized, and the efficiency of the base station test can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates a flow chart of one embodiment of a test script generation method of the present application;
FIG. 2 illustrates a block diagram of an embodiment of an integrated development environment in accordance with the present application;
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Method embodiment
Referring to fig. 1, a flowchart of an embodiment of a test script generation method of the present application is shown, and 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 handover, file transfer, log analysis;
102, generating a script template of a test scene corresponding to the target scene template according to the target scene template selected by a user in the scene template library;
step 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 has huge volume, low starting speed and large occupied resources and is not suitable for a special test scene, the embodiment of the application provides a customized integrated development environment. The integrated development environment uses C# development, adopts IronPython (a Python language) developed based on NET, is compatible with Python in grammar, and can quickly generate Python test scripts.
The integrated development environment of 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 as to enable a user to select scene templates corresponding to different test scenes.
Wherein, the test scene at least comprises any one of the following: cell access, inter-station handover, file transfer, log analysis. Specifically, script templates corresponding to the test scenario may be respectively packaged into DLLs (Dynamic Link Library, dynamic link libraries) to provide function interfaces 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, function names corresponding to each scene template in the scene template library may be displayed in a left display area of the integrated development environment. For convenience of description, python IDE refers to the customized integrated development environment preset in the present application.
The user can select a target scene template in a display interface of a scene template library of the Python IDE. For example, the user may double-click on a function name corresponding to a certain scene template in the display interface, at this time, the Python IDE may generate a script template corresponding to the test scene corresponding to the target scene template, and display the script template in the editing interface. Optionally, functional introduction, parameter description and the like of the corresponding function of the script template can be displayed at the relevant position of the script template, so as to improve the readability of the program.
In an alternative 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 displaying the template content in the script template and the parameter content in the script template in a reserved filling mode in an editing interface of the integrated development environment.
In order to improve efficiency of generating a test script, after a target scene template selected by a user is detected, the embodiment of the application generates a script template corresponding to the target scene template, wherein the script template comprises 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 scene, and the parameter contents are displayed in a reserved filling mode. Alternatively, the reserved filled area may be highlighted to alert the user that custom parameters need to be entered here.
The generating the test script according to the user-defined parameters input by the user for the script template may specifically include:
s11, receiving user-defined parameters input by a user in a reserved gap-filling area in the script template;
and step S12, generating a test script according to the template content in the script template and the custom parameters.
After the user selects the target scene template, the script template corresponding to the test scene of the target scene template can be automatically displayed in the editing interface of the integrated development environment, and the user only needs to input the custom 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 put into a folder corresponding to a Python IDE, the Python IDE automatically identifies and loads the scene template library, the function name of the automatically identified scene template is displayed in a scene template library display interface on the left side in the Python IDE interface, and after a user double clicks a certain function name, the 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 self-defined parameters in the reserved filling area, and the Python IDE can transmit the received self-defined parameters as real parameters to the functions corresponding to the scene templates so as to generate the final test script.
It should be noted that, besides the custom 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 command sets such as instructions, functions, exceptions and the like that are commonly used by Python scripts. The embodiment of the application integrates the universal template library and the custom scene template library by a simple text editor combined with an independent debugger without other complicated and huge functions, so that the integrated development environment of the embodiment of the application has the characteristics of small size, less occupied system resources, high starting speed and the like.
In addition, the integrated development environment of the embodiment of the application not only inherits the universal appeal of the adjustable Python codes, but also increases the scene templates aiming at the base station test scenes, and through the four scene templates, various test scripts can be combined, so that the writing and debugging of the test scripts and the unification of the test scenes of the base station products are realized, and the efficiency of the base station test can be improved.
The cell access test scenario means that after the 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 accesses the cell signal, AT this time, an AT (Attention) command is sent to the mobile phone to inquire whether the mobile phone has a signal, if so, the test result is that the cell access is successful, and if not, the test result is that the cell access is failed. The embodiment of the application compiles the script of the cell access test by using the Python language, and encapsulates the script 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 or not. The embodiment of the application can package the script template into a DLL library, and provide a function interface to integrate into a Python IDE for a user to call.
Thus, if a tester wants to test the cell access scene, the tester selects a scene template corresponding to the cell access test scene 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 user-defined parameters such as cell information and the like.
The user is typically mobile during use of the handset, and as the user's location moves, it may appear that the user's handset leaves the radiating area of one base station and enters the radiating area of another base station. In this case, in order to avoid the situation that the mobile phone has no signal, the inter-station handover scenario needs to be tested.
According to the embodiment of the application, the Python language is used for writing the script for testing the inter-station switching scene, and the script template corresponding to the inter-station switching testing scene is packaged, and can be used for testing whether the inter-station switching is successful or not. The embodiment of the application can package the script template into a DLL library, and provide a function interface to integrate 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 these, file transfer, i.e., FTP (File Transfer Protocol ) traffic. After the mobile phone is accessed into the cell, the user can execute internet surfing operations such as watching video through the cell, and at the moment, the function of uploading/downloading files can be triggered, and the FTP service scene needs to be tested. After a test scenario is tested, a large number 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 analysis results for the test personnel to check.
It should be noted that, adding the scene templates corresponding to the four test scenes in the integrated development environment according to the embodiment of the present application 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 fields Jing Moban in the scene template library.
The integrated development environment of the embodiment of the application can provide an interface of a scene template library, different developers can package the scene template of the corresponding test scene of the product according to the product developed by the developers, and integrate the product into the Python IDE, so that the usability of the Python IDE is improved. For example, in a scene such as a stadium, a concert, etc., a situation that a great number of users are simultaneously present in one place occurs, a multi-user test is required to be specifically performed on a base station in the scene. Therefore, the scene template for multi-user test can be written by using the Python language, and the interface of the scene template is packaged and integrated into the existing scene template library so that the tester can directly call the scene template. Of course, the user can 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 the test script according to the custom parameters input by the user for the script template, the method may further include:
and compiling the test script to generate an executable file in response to a compiling instruction triggered by the test script.
The customized Python IDE can be combined with lexical analysis and grammar analysis in Python compiling theory to debug test scripts written by users, and can be compiled into executable files. Optionally, the Python IDE of the embodiment of the application can integrate functions of grammar coloring, error prompting, code folding, code completion, code block positioning, reconstruction and the like so as to improve the writing efficiency of the test script.
Specifically, the operation flow of the Python IDE of 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 CreateEngine () function.
S22, acquiring a test script written by a user and compiling the test script to generate an executable file;
specifically, after writing a test script in the 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 file () function to generate an executable file.
Step S23, executing an executable file;
the user may click an Execute button in the Python IDE interface, which runs the compiled executable file by executing the Execute () function.
S24, obtaining abnormal information and debugging;
and in the process of running the executable file, if the Python IDE is abnormal, acquiring and outputting abnormal information so that a user can debug the test script according to the abnormal information.
And S25, outputting a test report.
After the executable file is run, a test report can be output by executing a SetOutput () function so as to display a test result to a user.
Currently, python IDEs are 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 (such as a base station) to complete a test job. Thus, the Python IDE needs to be deployed in the terminal device of each tester, and the operation is complicated and the cost is high.
In an alternative embodiment of the present application, the integrated development environment may be deployed in a remote server, and one of the remote servers may correspond to at least one terminal device. Optionally, in the preset integrated development environment, displaying the scene template library may specifically include: 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 specifically may include:
the terminal equipment selects a target scene template in an 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 an integrated development environment of the remote server;
the generating the test script according to the user-defined parameters input by the user for the script template may specifically include:
the terminal equipment is connected remotely, and custom parameters are input into a script template of the remote server;
and the remote server generates a test script according to the script template and the custom parameters.
The Python IDE in the embodiment of the application can be deployed in a remote server, and after the terminal equipment of the user establishes remote connection with the remote server, the user can use the Python IDE in the remote server through the remote connection in the terminal equipment of the user.
Specifically, the user can use his terminal device to establish a remote connection with a remote server, log on to the remote server through the remote connection, and then open and use the Python IDE in the remote server. A user can select a target scene template in a 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 the Python IDE. The user inputs the custom parameters in the script template of the remote server through the remote connection between the terminal equipment and the remote server, the Python IDE of the remote server generates the test script according to the script template and the custom parameters, and the test script is compiled in the remote server. Therefore, the embodiment of the application can realize remote writing and compiling of the test script, and the terminal equipment of the user does not need to deploy the Python IDE.
Furthermore, one integrated development environment in the remote server may correspond to at least one terminal device. Therefore, the Python IDE is not required to be deployed in the terminal equipment of the user, and the Python IDE in the remote server can be commonly accessed by a plurality of users only by deploying the Python IDE once in the remote server, so that the deployment cost can be reduced. And a plurality of users can remotely use the Python IDE in the same remote server through respective terminal equipment to realize joint debugging of the test script, so that the test efficiency is further improved.
In an alternative embodiment of the present application, the integrated development environment may be deployed on a remote server and a terminal device, respectively, where the remote server and the 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 the embodiment of the application, the Python IDE can be deployed in both a remote server and terminal equipment. The process of generating and compiling the test script may be performed in a Python IDE of the terminal device, and the terminal device uploads the compiled script file to the remote server. The network segment where the remote server is located is the same as the base station to be tested, so that the test script is executed in the remote server, the base station to be tested can be tested, and the test efficiency is improved.
Optionally, the embodiment of the application can upload the test script to the remote server and download the test script from 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 a Python IDE of the remote server through remote connection, and edited and debugged; the test script can also be downloaded to the local of the terminal equipment, edited and debugged in the Python IDE of the terminal equipment, and uploaded to the corresponding position in the remote server after the debugging is finished. Therefore, according to the embodiment of the application, even if a tester cannot reach a debugging site, the test script can be debugged remotely, so that the test efficiency is further improved.
In an alternative embodiment of the present application, after the 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 the updated content is generated in the integrated development environment of the terminal equipment.
In order to prevent damage or loss of test scripts written by users, the embodiment of the application synchronously updates the test scripts in the terminal equipment and the remote server under the condition that Python IDE is deployed in the terminal equipment and the remote server.
Specifically, the user writes and debugs the test script in the Python IDE of the terminal device, and the Python IDE of the terminal device can detect whether the update content is generated in real time, if so, the update content is synchronously stored in the Python IDE of the remote server. Therefore, even if the Python IDE of the user terminal equipment fails, the test script in the terminal equipment is lost, 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 application pre-develops a customized integrated development environment in which a scene template library is displayed; 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 for 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 handover, file transfer, log analysis.
The embodiment of the application integrates the universal template library and the custom scene template library by combining the text editor with an independent debugger, and does not need other complex and huge functions, so that the integrated development environment of the embodiment of the application has the characteristics of small size, less occupied system resources, high starting speed and the like.
In addition, the integrated development environment of the embodiment of the application not only inherits the universal appeal of the adjustable Python code, but also increases the scene templates aiming at the base station test scene, and a plurality of test scripts can be combined through the four scene templates, so that the writing and debugging of the test scripts and the unification of the test scenes of the base station products are realized, and the efficiency of the base station test can be improved.
Device embodiment
Referring to FIG. 2, there is shown a block diagram of an embodiment of an integrated development environment of the application, which may include in particular:
a scene template library 201, configured to generate script templates corresponding to different test scenes; 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 handover, file transfer, log analysis;
an editing interface 202 for displaying and editing the script templates.
Aiming at the problems that the existing Python IDE has huge volume, low starting speed and large occupied resources and is 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 the Python test script can be quickly generated by adopting IronPython developed based on NET and enabling grammar to be compatible with Python.
The integrated development environment of 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 as to enable a user to select 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 content in the script template, and display parameter content in the script template by reserving a gap-filling mode;
the editing interface 202 is further configured to receive a custom parameter input by a user in a reserved filling area in the script template;
the integrated development environment further includes:
and the script generation module is used for generating a test script according to the template content in the script template and the custom parameters.
Optionally, the integrated development environment further includes:
and the code compiler is used for compiling the test script to generate an executable file in response to a compiling instruction triggered by the test script.
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 environments are deployed on a remote server and a terminal device respectively, and the remote server and the base station to be tested have the same network segment.
Optionally, the integrated development environment further includes:
and the synchronous updating module is used for synchronizing the updated content to the integrated development environment of the remote server when the updated content is generated in the integrated development environment of the terminal equipment.
The integrated development environment of the embodiment of the application not only inherits the universal appeal of the programmable and adjustable Python codes, but also increases the scene templates aiming at the base station test scene, and a plurality of test scripts can be combined through the four scene templates, so that the programming and debugging of the test scripts and the unification of the test scenes of the base station products are realized, and the efficiency of the base station test can be improved.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
It will be apparent to those skilled in the art that 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 application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus 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 in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the application.
Finally, it is further noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has described in detail a test script generation method and an integrated development environment provided by the present application, and specific examples are applied herein to illustrate the principles and embodiments of the present application, and the above examples are only used to help understand the method and core ideas of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (11)

1. A method of generating test scripts, the method comprising:
in a preset integrated development environment, a scene template library is displayed, 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 handover, file transfer, 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;
generating a test script according to user-defined parameters input by a user aiming at the script template;
the integrated development environment is respectively deployed on a remote server and terminal equipment, 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.
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 the following steps:
displaying template contents in the script template and parameter contents in the script template in a reserved filling mode in an editing interface of the integrated development environment;
the generating a test script according to the user-defined parameters input by the user for the script template comprises the following steps:
receiving user-defined parameters input by a user in a reserved filling area in the script template;
and generating a test script according to the template content in the script template and the custom parameters.
3. The method of claim 1, wherein after generating the test script according to the custom parameters entered by the user for the script template, the method further comprises:
and compiling the test script to generate an executable file in response to a compiling instruction triggered by the test script.
4. The method of claim 1, wherein the integrated development environments are deployed in remote servers, and one of the remote servers corresponds to at least one terminal device.
5. The method of claim 4, wherein displaying the scene template library in the preset 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 comprises the following steps:
the terminal equipment selects a target scene template in an 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 the following steps:
displaying the script template in an editing interface of an 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 comprises the following steps:
the terminal equipment is connected remotely, and custom parameters are input into a script template of the remote server;
and the remote server generates a test script according to the script template and the custom parameters.
6. The method of claim 1, 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 the updated content is generated in the integrated development environment of the terminal equipment.
7. An integrated development environment, the integrated development environment comprising:
the scene template library is used for generating script templates corresponding to different test scenes; 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 handover, file transfer, log analysis;
the editing interface is used for displaying and editing the script template;
the integrated development environments are respectively deployed on a remote server and terminal equipment, and the remote server and the base station to be tested have the same network segment.
8. The integrated development environment of claim 7, wherein the script template comprises: template content and parameter content;
the editing interface is specifically used for displaying the template content in the script template and displaying the parameter content in the script template in a reserved filling mode;
the editing interface is also used for receiving user-defined parameters input by a user in a reserved gap-filling area in the script template;
the integrated development environment further includes:
and the script generation module is used for generating a test script according to the template content in the script template and the custom parameters.
9. The integrated development environment of claim 8, wherein the integrated development environment further comprises:
and the code compiler is used for compiling the test script to generate an executable file in response to a compiling instruction triggered by the test script.
10. The integrated development environment of claim 7, wherein the integrated development environment is deployed in a remote server, and one of the remote servers corresponds to at least one terminal device.
11. The integrated development environment of claim 7, wherein 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 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 CN112925698A (en) 2021-06-08
CN112925698B true 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)

Families Citing this family (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 (2)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10642721B2 (en) * 2018-01-10 2020-05-05 Accenture Global Solutions Limited Generation of automated testing scripts by converting manual test cases

Patent Citations (2)

* 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

Also Published As

Publication number Publication date
CN112925698A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN108647028B (en) Application information processing method and device
Gonsalves Evaluating the mobile development frameworks Apache Cordova and Flutter and their impact on the development process and application characteristics
CN105094783B (en) method and device for testing stability of android application
US20110154305A1 (en) System and method for remotely compiling multi-platform native applications for mobile devices
CN112270149B (en) Verification platform automatic integration method and system, electronic equipment and storage medium
US10698797B2 (en) Mobile application program testing method, server, terminal, and storage medium
CN104615462B (en) Cross-platform Mobile solution generation service end and system
CN110013672B (en) Method, device, apparatus and computer-readable storage medium for automated testing of machine-run games
CN109902005B (en) Automatic testing method and system
EP1692614A2 (en) A method of rapid software application development for a wireless mobile device
CN105338110A (en) Remote debugging method, platform and server
US11113050B2 (en) Application architecture generation
CN109542463A (en) Compiling file packet transmission method, device, computer equipment and storage medium
CN112882700A (en) iOS application program construction method and device, electronic equipment and storage medium
CN109885480A (en) A kind of automatic interface compatibility test method and device based on debugging bridge
CN110362490B (en) Automatic testing method and system for integrating iOS and Android mobile applications
CN108614767A (en) A kind of remote debugging method and device
CN107608663A (en) A kind of development approach and device of Mobile solution plug-in unit and Mobile solution
KR101005498B1 (en) A test system for handset applications using test libraries and the method thereof
EP3447635A1 (en) Application architecture generation
CN113986741A (en) Component debugging method and device and computer equipment
CN112925698B (en) Test script generation method and integrated development environment
CN112114789B (en) Service development method and equipment
CN105760300A (en) Automatic STK/UTK service testing method and system
CN103176903B (en) The test method and equipment of MapReduce distributed system program

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