KR20130033201A - Method for controlling and testing target system using script file - Google Patents

Method for controlling and testing target system using script file Download PDF

Info

Publication number
KR20130033201A
KR20130033201A KR1020110097137A KR20110097137A KR20130033201A KR 20130033201 A KR20130033201 A KR 20130033201A KR 1020110097137 A KR1020110097137 A KR 1020110097137A KR 20110097137 A KR20110097137 A KR 20110097137A KR 20130033201 A KR20130033201 A KR 20130033201A
Authority
KR
South Korea
Prior art keywords
script file
execution
target system
command
command script
Prior art date
Application number
KR1020110097137A
Other languages
Korean (ko)
Inventor
예병호
허환조
고남석
문승진
정우석
노성기
정태수
박종대
이순석
Original Assignee
한국전자통신연구원
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 한국전자통신연구원 filed Critical 한국전자통신연구원
Priority to KR1020110097137A priority Critical patent/KR20130033201A/en
Publication of KR20130033201A publication Critical patent/KR20130033201A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/28Error detection; Error correction; Monitoring by checking the correct order of processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Abstract

PURPOSE: A remote execution test system using a script file, a device thereof, and a method thereof are provided to perform performance control and testing in real time by interlinking a development server with a target system and using a command script file and a multi-performance script file. CONSTITUTION: A script file composed of commands is edited and the command script file is delivered while being interlinked with a target system by using the command script file(1230). The target system receives the command script file to execute the command script file with contents of the file and deliver a performance result to a development server(1250). A result of a command script executed in a target is received to be outputted. [Reference numerals] (1210,1270) Execution waiting state; (1220) Command script file exists?; (1230) Executing a command script file; (1240) Delivering an execution completion message; (1250) Deleting the command script file; (1260) Registering the next execution period; (AA) Start; (BB) No; (CC) Yes;

Description

Method for Controlling and Testing Target System using Script file}

The present invention relates to software performance control and testing technology, and more particularly, to an apparatus and method for performance control / testing of software developed by a development server in a target system.

In the related art, in order to perform the performance control and test by loading the software developed in the development server on the target, the software developer directly accesses the target system, executes a command directly, and checks the function through the output message.

Moreover, in order to perform performance control and test between distributed target systems, it is very complicated to access individual target systems repeatedly, execute individual commands repeatedly, and check output messages individually. It is difficult to determine the presence or absence.

In addition, since it is performed as a separate execution procedure for each target system unit, a lot of time and effort are required for work such as functional test or configuration setting that are mutually interoperable.

Therefore, in order to save such time and effort, there is a method of executing individual command units as one script file in the target system and executing them at once. However, even in such a case, although there is an advantage that the operation time can be shortened by sequentially executing simple commands at a time, there is a problem that a method of integrally executing the distributed system is not provided.

The present invention executes a command script file in a target system by interworking with a target system using a script file composed of a command and a performance control syntax in a development server located remotely for a system composed of a control system having a distributed structure, and then a target system. Provides a remote execution control and test method using a script file that receives and outputs the results performed in.

The present invention is a remote execution control and test method using a command script file, the step of editing the script file consisting of the command, using the edited command script file to interoperate with the target system and deliver the command script file, The method includes receiving a command script file from a system, executing the target script on the target system according to the contents of the script file, and delivering the execution result to the development server, and receiving and outputting the result of the command script executed on the target.

The present invention is a distributed system structure consisting of a line card and a switch device for accommodating one or more control processors and subscribers, such as a switch and a router system, directly linked to the target system in the development server that the user performs development tasks, instructions Performance control and testing can be performed in real time using script files and multi-action script files.

In addition, since the command script file is composed of various combinations of individual commands required, the command script file can be flexibly configured in the function block unit required by the user, so that the system configuration and test function can be effectively performed.

In addition, the target system is provided by providing a method for the user to variously configure the multi-execution script files configured by combining the command script file, the waiting time required for the execution control, and the wait until the result message is received. It is possible to control and test a wide range of performance with many automated procedures.

In addition, efficient combinations of command script files and multi-execution script files that perform various functions can greatly improve the efficiency of system operation and maintenance, thus providing an effective method for reducing system operating costs.

1 is a diagram illustrating a distributed structure control system according to an exemplary embodiment of the present invention.
2 is a diagram illustrating an interworking structure between a development server and a target system for performing a target system test using a command script file according to an embodiment of the present invention.
3 illustrates a window configuration for providing command script file information according to an exemplary embodiment of the present invention.
4 illustrates a window configuration for editing or modifying a new command script file according to a menu selection.
5 illustrates a process flow for loading or executing a command script file into a target system according to menu selection.
6 illustrates a window configuration for providing multi-execution script file information according to an exemplary embodiment of the present invention.
7 illustrates a window configuration showing an embodiment for editing a multi-execution script file.
8 illustrates an operation flow between a development server and a target system as an operation type of a multi-execution script file.
9 is a flowchart illustrating a target system execution control method using a script file according to an exemplary embodiment of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout.

In the following description of the present invention, when it is determined that detailed descriptions of related known functions or configurations may unnecessarily obscure the gist of the embodiments of the present invention, the detailed description thereof will be omitted.

Terms used throughout the specification are terms defined in consideration of functions in the embodiments of the present invention, and may be sufficiently modified according to the intention, custom, etc. of the user or operator, and the definitions of these terms are used throughout the specification of the present invention. It should be made based on the contents.

In order to clarify the contents described in the present invention, the terms used are divided and defined as follows.

Command script file : A file unit composed of a combination of commands executed in the target system. The command script file is executed in the order of the commands described in the command script file in the target system.

Configuration Example) File Name: Test-setup

int serial 0 / * target system command * /

ip address 157.89.1.3 255.255.0.0 / * Target system command * /

int eth 0 / * target system command * /

ip address 2008.1.1.4 255.255.255.0 / * Target system command * /

Multiple (Multiple) performing the script file: receiving a command script file from the <sleep x> phrase, a target system to refer to the waiting time for the command script file and the control response that execution completion {waiting for the request to run the following command script file for answer} A unit of file consisting of a combination of statements.

Configuration Example) File Name: Setup-and-test

[129.254.193.123,129.254.193.140] / * Single or multiple target system addresses * /

Test-setup / * Command Script File * /

<sleep 5> / * Syntax for execution * /

Test-loopback, Test-routing-info / * Single or Multiple Command Script Files * /

{waiting for answer} / * Syntax waiting for completion response * /

Test-send-icmp / * Command Script File * /

1 is a diagram illustrating a distributed structure control system according to an exemplary embodiment of the present invention.

Referring to FIG. 1, each developer terminal 10, a development server 20, a target system 30, a management server 40, and a manager terminal 50 are connected to the Internet network 60 to communicate with each other.

The developer terminal 10 may be linked with the development server 20 to allow development work to be performed by a developer. Then, at the request of the developer, the developer terminal 10 loads the result of the development on the target system 30 to perform a function test. At this time, the output of the software files and documents are managed through the management server 40, these various contents are made of a structure that is managed under the management of the system administrator (50).

The present invention provides a script for setting and testing instructions that configure system configuration information in a stage where a software binary execution module developed in the development server 20 is loaded and executed in the target system 30 in such a development environment. Editing to a file, it is carried out by the automatic procedure in the specific target system 30 as the content of the specified script file, the result is carried out in a structure that can receive the result in the development server (20).

2 is a diagram illustrating an interworking structure between a development server and a target system for performing a target system test using a command script file according to an embodiment of the present invention.

Referring to FIG. 2, the script file editing unit 100 generates a command script file and a multi-execution script file that sequentially describe a command that a user wants to perform in the target system 30 according to a purpose required by the development server 20. Or to modify it.

The script file execution control unit 110 mounts the command script file in the target system 30 in association with the target system 30 designated according to the contents of the command script file and the multi-execution script file created by the script file editing unit 100 and functions. To provide.

The target script file execution unit 130 is located in the target system, the script file execution control unit 110 executes the command script file mounted on the target system, and provides a function to deliver the result message output during the execution process to the development server. do.

The script file execution result output unit 120 provides a function of receiving and outputting the execution result of the command script file from the target command script file execution unit 130 located in the target system.

3 illustrates a window configuration for providing command script file information according to an exemplary embodiment of the present invention.

Referring to FIG. 3, a screen of a script file list window 200 displayed by a user's menu selection is shown.

The server directory (Dir) 205, which is a storage directory location in the development server, basically provides information that is set, and when a different directory location is designated, the server directory may be changed using the open 230 menu.

When loading on the target system, the location directory 210 is designated, and basically, the command script file list 215 registered so far is provided. When a new command script file is created, selecting New 235 provides an edit window 300 as shown in FIG.

In this case, when the existing script file is modified, the corresponding script file is selected from the list of the currently registered command script files 215, and then the Edit (240) menu is selected. The current script contents are provided in the edit window of FIG. do. When the current script file is deleted, the corresponding script file is selected from the list 215 of the currently registered command script files to be deleted, and then the Delete 245 menu is selected.

To mount the created script file on the target system, select the script file from the list of the currently registered command script file 215, select the target system address 250, and enter the user ID 220 and the password 225. If you select Load (255) menu after designating, it is loaded to the directory location 210 of the designated target system.

In addition, in order to execute the created script file on the target system by automatic procedure, select the script file in the same manner as the Load function execution procedure, select the user ID 220 and the password 225, Select the Run (260) menu. At this time, the result executed in the target system is displayed through the result window. When the execution is completed, select the Close (265) menu to end.

4 illustrates a window configuration for editing or modifying a new command script file according to the New 230 or Edit 240 menu selection.

When a script file is newly created, the Edit Script File window 300 designates a file name 310, creates a script content 320 composed of a command, and then selects Save 330 and stores the file as a specified script file name. In the case of modifying the contents of the specified script file, since the contents of the current script file are provided, after modifying the necessary contents and selecting the Save 330 menu, the current script file name is saved. When the operation is completed, select the Close (340) menu to end.

5 is a flowchart illustrating a process of loading or executing a command script file into a target system according to the Load 260 and Run 270 menu selections.

In the Load (400) function of loading a script file on a target system, the process of copying a specified script file 410 to a designated directory location of the target system (420), and Run (430) for executing a specified script file on the target system In case of), the designated script file 440 is copied to a specific directory of the target system (450) and simultaneously copied to a specific directory location of the target system (460) for automatic execution.

In this case, the target system is automatically executed through the function of periodically monitoring for automatic execution of the script file (470), the execution result information and the execution completion information of the script file are delivered to the development server and provided to the user through the output window ( 480).

6 illustrates a window configuration for providing multi-execution script file information according to an exemplary embodiment of the present invention.

The Multiple Target & Script window (500) that provides the multi-execution script file information includes a target address area (510) for providing address information for the registered target system and a test scripts (560) area for providing a list of registered command script files. In addition, it is divided into a Multiple Run Script List 610 area for controlling a multiple execution script file.

The target address 510 information is composed of user ID 530 and password 540 information necessary for accessing the IP address information 520 of the target system registered up to now, using the Add 550 menu. The target system address information may be added to the multi-execution script file through the Edit Multiple Run Script window 700 of FIG. 7.

The Test Scripts (560) area, which provides a list of the command script files registered to date, provides directory location information 570 and file name information 580 of the development server where the command script files are stored. In this case, the command may be changed using the Open (590) menu, and the command script file information may be added to the multi-execution script file through the Edit Multiple Run Script window 700 of FIG. 7 using the Add (600) menu. .

To create a new multi-execution script file, select New (650) menu, or to modify the already-created multi-execution script file, select the file name 630 and then select the Edit (660) menu. An edit script file window is provided.

In order to delete the multi-execution script file, select the file name 630 and then select the Delete (670) menu, and select the List (680) menu to view the newly registered multi-execution script file list. When the execution is completed, select the Close (690) menu to end the execution.

FIG. 7 is a diagram illustrating a window configuration showing an embodiment for editing a multi-execution script file.

FIG. 7 is a multi-task script file edit window for selecting a New (640) menu of FIG. 6 to generate a multi-script file for a new multi-target, or selecting an Edit (650) menu to modify an existing multi-task script file. 700 shows a configuration, when newly created, designates a file name 710 to be stored, and multi-execution script information using a target system address add 540 and command script file add 590 menus provided in FIG. 6. Edit 720.

When waiting for a certain time while executing the command script file, set the sleep time value of sleep corresponding to the standby state and select the Add (730) menu to insert the <sleep x> statement in the multi-execution script file. . In addition, if it is necessary to wait until the reception of execution result information is completed after executing a command script, selecting the Add (740) menu for adding a response waiting function, the {waiting for answer} syntax is displayed in the multi-execution script file. Is added.

If you want to save the edited multi-execution script file, select the Save (750) menu. If you run the target system in conjunction with the target system, select the Run (760) menu. In the Run function, select the contents of the multi-execution script file. Command script file is executed by interworking with target system. If there is <sleep x> or {waiting for answer} statement in the process, the command script file is waited for a certain time and waiting until the result is received. If the execution is completed, select the Close (770) menu to end.

In this case, the <sleep x> and {waiting for answer} syntax included in the multi-execution script file are used to distinguish the purpose of the function. Does not become. In addition, the multi-execution script file edit window 700 restricts editing to only the Add (540, 590, 730, 740) menu in order to prevent editing with non-existent target system or unregistered command script file information.

8 illustrates an operation flow between a development server and a target system using a multi-execution script file.

Execution form 800 indicates how to execute the command script file according to the user's purpose, the multi-execution script file 810 is composed of a separate command script file and the syntax for execution control, the development server 820 The user performs a function of operating a software development task and a command script file and a multi-execution script file, and the target systems 830 and 840 work with the development server 820 to execute the command script file and deliver the result. Do this.

The simultaneous execution of multiple targets 850 requests the command script file to be simultaneously executed for two target systems at the same time as the multi-execution script file contents 860 and receives the result of execution (880) (880). Consists of features provided to the user through.

In this case, because the command script file is executed simultaneously on two target systems, a result message window may be mixed and displayed.

The multi-target execution wait 900 requests the execution of one command script file for two target systems, such as the contents of the multi-script file 910 (920), and then waits for the time specified by <sleep 5> (940). Run the following command script file: At this time, even during the waiting time, the execution result 930 for the command script file that is requested to be executed first is output to the result output window 970. In this case, when the waiting time is completed, the next command script file is requested to be executed (940), and the result of the execution is received (960) and output to the result output window (960). At this time, the execution wait time controls the execution of these functions because there are commands that must be executed sequentially or must be executed sequentially between target systems.

The multi-target sequential execution 1000 requests to execute the first command script file sequentially on two target systems as shown in the multi-script file contents 1010 (1020), receives the execution result (1030), and outputs the result. Output to window 1100. Also, after receiving the command script file execution completion message from the target system according to the {waiting for answer} syntax (1040), requesting to execute the next command script file (1050) and receiving the execution result (1060), the result output window After outputting to (1100), receiving the execution completion message from the target system (1070), the request to execute the next command script file (1080), receives the execution result (1090) and outputs to the result output window (1100) To do it. Using the {waiting for answer} statement, after receiving the message that the command script file has been executed on the target system, the method of executing the next command script file can control the execution of the functions that must be executed sequentially. In addition, since the result message is always displayed sequentially in the output window, the user can easily analyze the result message.

Although embodiments of the present invention have been described with respect to the three execution forms 850, 900, and 1000, various methods that can be performed by mixing these methods according to a user's purpose of use or execution characteristics of a command script file are provided.

9 is a flowchart illustrating a method of executing a command script file in a target system.

Referring to FIG. 9, the target system transitions to the standby state for the next performance in step 1210. Then, after a certain time, check whether the command script file requested from the development server exists in step 1220.

If it is determined in step 1220 that the command script file exists, the target system executes the command script file in step 1230.

In operation 1240, the execution request message is transmitted to the development server. In step 1250, the command script file that has been executed is deleted, and in step 1260, a waiting time for the next execution is registered, and in step 1270, the command script file is transferred to the execution waiting state.

On the other hand, if the command script file does not exist as a result of the determination in step 1220, the process proceeds to step 1250.

Claims (1)

As a remote execution control and test method using a command script file,
Editing a script file consisting of commands,
Interworking with the target system using the edited command script file and delivering the command script file,
Receiving the command script file from the target system and executing the script file on the target system according to the contents of the script file, and delivering the result to the development server;
Remote execution control and test method using a command script file comprising the step of receiving and outputting the result of the command script executed in the target.
KR1020110097137A 2011-09-26 2011-09-26 Method for controlling and testing target system using script file KR20130033201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020110097137A KR20130033201A (en) 2011-09-26 2011-09-26 Method for controlling and testing target system using script file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020110097137A KR20130033201A (en) 2011-09-26 2011-09-26 Method for controlling and testing target system using script file

Publications (1)

Publication Number Publication Date
KR20130033201A true KR20130033201A (en) 2013-04-03

Family

ID=48435758

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020110097137A KR20130033201A (en) 2011-09-26 2011-09-26 Method for controlling and testing target system using script file

Country Status (1)

Country Link
KR (1) KR20130033201A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9800666B2 (en) 2015-08-28 2017-10-24 Xiaomi Inc. Method and client terminal for remote assistance
CN112000372A (en) * 2020-08-24 2020-11-27 福建天晴在线互动科技有限公司 Method and system for executing command in Linux system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9800666B2 (en) 2015-08-28 2017-10-24 Xiaomi Inc. Method and client terminal for remote assistance
CN112000372A (en) * 2020-08-24 2020-11-27 福建天晴在线互动科技有限公司 Method and system for executing command in Linux system

Similar Documents

Publication Publication Date Title
JPH10177473A (en) Computer program installation method and system therefor
CN108399331B (en) Application process trial method and system
CN112333096A (en) Micro-service traffic scheduling method and related components
CN111198695A (en) Automatic deployment method of micro-service administration management platform and electronic equipment
CN105426165A (en) Script tool processing method and apparatus
CN111695827B (en) Business process management method and device, electronic equipment and storage medium
CN103064703A (en) Staged rapid application stream transmission using on-demand
CN104239114A (en) Application compiling method and device
CN115292022B (en) Workflow engine system, implementation method, storage medium and computer equipment
CN114115838A (en) Data interaction method and system based on distributed components and cloud platform
KR20130033201A (en) Method for controlling and testing target system using script file
CN112651705B (en) Mail processing method, device, equipment and medium
CN108881460B (en) Method and device for realizing unified monitoring of cloud platform
US20160330151A1 (en) Method and system for managing an informational site using a social networking application
CN114666161B (en) Component security policy management method, device, equipment and storage medium
CN115712468A (en) Time information processing method and device, computing equipment and storage medium
CN114356387A (en) Process automation method, equipment and system for realizing process automation
US20140237613A1 (en) Distribution apparatus, device, control method for distribution apparatus, and storage medium
CN109558182A (en) Information popularization method, electronic equipment and computer storage medium based on plug-in unit
JP6705979B2 (en) Device setting device, device setting method, and program
CN106325923A (en) Method and device for managing function plugins
CN115576573B (en) Delivery method and system based on credit-wound environment
CN111694671B (en) Big data component management method, device, server, electronic equipment and system
CN113176913B (en) Processing method and device of JAVA agent, terminal equipment and storage medium
CN111465077B (en) Equipment control method and device, storage medium and terminal

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application