CN112000567A - Regulation and control software test service method based on cloud platform - Google Patents

Regulation and control software test service method based on cloud platform Download PDF

Info

Publication number
CN112000567A
CN112000567A CN201911227226.4A CN201911227226A CN112000567A CN 112000567 A CN112000567 A CN 112000567A CN 201911227226 A CN201911227226 A CN 201911227226A CN 112000567 A CN112000567 A CN 112000567A
Authority
CN
China
Prior art keywords
test
tested end
tested
script
software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911227226.4A
Other languages
Chinese (zh)
Inventor
李一鹏
刘炎炎
杨立波
崔文曦
习新魁
袁龙
崔帅
马斌
梁珅
王亚军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Hebei Electric Power Co Ltd
Beijing Kedong Electric Power Control System Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Hebei Electric Power Co Ltd
Beijing Kedong Electric Power Control System 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 State Grid Corp of China SGCC, State Grid Hebei Electric Power Co Ltd, Beijing Kedong Electric Power Control System Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201911227226.4A priority Critical patent/CN112000567A/en
Publication of CN112000567A publication Critical patent/CN112000567A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a regulation and control software testing service method based on a cloud platform. The method comprises the following steps: the method comprises the following steps: deployment of a test environment; step two: utilizing a back door port which is established at a tested end in advance to invade the tested end, and implanting a test code into the tested end; triggering the tested end to perform hot updating based on the test code so as to realize the deployment of the test environment; the test codes comprise test environment configuration codes, test script codes and test result collection codes; step three: setting configuration files according to configuration parameters specifically needed in the test cases, and testing according to needs; step four: and after the deployment is finished, testing the software to be tested. The invention can improve the convenience and flexibility of test environment deployment, realize batch modification of test data, improve test efficiency and facilitate accumulation and reuse of test codes.

Description

Regulation and control software test service method based on cloud platform
Technical Field
The invention belongs to the field of smart power grids, and particularly relates to a regulation and control software testing service method based on a cloud platform.
Background
The domestic power grid has developed into a novel extra-high voltage alternating current-direct current series-parallel large power grid. The coupling of a power grid transmitting and receiving end, alternating current and direct current, an upper stage and a lower stage is gradually tight, the risk of alternating current and direct current cascading failures is increasingly prominent, and the traditional empirical dispatching mode is difficult to meet the safe operation requirement of a large power grid. Meanwhile, the market reformation pace of the national electric power is accelerated, policy constraints and market risks are further increased, and a scheduling mode, a safety management mode, a clean energy consumption mode and the like face huge pressure, so that higher requirements are put forward for lean management of power grid scheduling operation. Meanwhile, with the development of cloud computing, the scale of the data center under the cloud environment is continuously increased, and the workload of computing deployment is greatly increased. The cloud data center environment deployment comprises hardware resources (servers), software resources (middleware or databases and the like), network resources and storage resources, wherein the network resources and the storage resources comprise virtualized devices and devices which cannot be virtualized. At present, a cloud data center mainly focuses on deployment speed, deployment automation degree and deployment friendly interface, and does not focus on reliability of service deployment and bottleneck problem of server deployment in the data center, which will affect timely online of system services and cause unnecessary loss.
Disclosure of Invention
Aiming at the problems in the background art, the invention provides a cloud platform-based software regulation and control test service method, which can improve the convenience and flexibility of test environment deployment, realize batch modification of test data, improve the test efficiency and facilitate the accumulation and reuse of test codes.
In order to achieve the purpose, the specific technical scheme of the invention is as follows:
a regulation and control software testing service method based on a cloud platform comprises the following steps:
the method comprises the following steps: deployment of a test environment;
step two: utilizing a back door port which is established at a tested end in advance to invade the tested end, and implanting a test code into the tested end; triggering the tested end to perform hot updating based on the test code so as to realize the deployment of the test environment; the test codes comprise test environment configuration codes, test script codes and test result collection codes;
step three: setting configuration files according to configuration parameters specifically needed in the test cases, and testing according to needs;
step four: and after the deployment is finished, testing the software to be tested.
As a preferred scheme, the step one comprises the following steps:
(S0) generating a check Shell script, wherein the check Shell script is used for checking whether the original project is started or not, and if so, stopping the Shell script of the original project;
(S1) generating a Shell script that packages and backs up the original project;
(S2) generating a Shell script uploading the new project;
(S3) comparing the original project with the new project, and if the original project is consistent with the new project, uploading the Shell script of the new project again;
(S4) generating a Shell script that starts a new project;
(S5) generating a rollback Shell script, wherein the rollback Shell script is used for returning to the backup of the original item and automatically restoring the Shell script of the backed up original item if the new item fails to be started;
(S6) summarizing all the Shell scripts to generate a total Shell script, and executing the total Shell script.
As a preferred scheme, in the second step, the intrusion is performed on the tested terminal by using a back door port established in advance at the tested terminal, and the specific step of implanting the test code into the tested terminal is as follows:
acquiring a program code corresponding to the test code in the memory of the tested end; comparing the test code to the program code; and when the test code is different from the program code, utilizing a back door port established at a tested end in advance to invade the tested end, and implanting the test code into the tested end.
As a preferred scheme, the third step is specifically as follows:
initializing a data environment; analyzing a test case, refining and decomposing the whole operation process of the test case into non-separable minimum operation elements, associating the minimum operation elements according to an operation sequence, respectively determining parameters required to be received for each minimum operation element, receiving the related parameters of the test case, and generating a configuration file; deploying the configuration file, executing the configuration file at a specified time, and automatically feeding back a test result according to an execution result; the configuration file represents a test case.
As a preferred scheme, the step four comprises the following steps:
(1) receiving a software test script sent by a web server; (2) generating a software test parameter which is sent to the web server by http message according to a web page by a test script; (3) the test parameters comprise a target machine room where the software to be tested is deployed, and the test script is sent to the software test system according to the target machine room; (4) and testing the software to be tested according to the test script.
The invention has the beneficial effects that:
the invention can provide a complete test environment and also can provide a plurality of additional services. For a tester, it may provide a restore point for a tester to reset the virtual machine to a specified state; for test execution, the system can monitor a tested program to help a tester to find problems and locate errors; for large-scale testing, the cloud testing can provide a plurality of testing clients, the testing cases are downloaded from the main control computer, the testing results are executed and reported, and the main control computer summarizes the results and reports the results to testing personnel. In the testing process, if the testing requirement is not known, the testing resource is greatly wasted, the cloud testing provides an on-demand testing mode, a user can flexibly deploy the testing resource and environment on demand, and relevant resources are released after the testing is finished. The invention flexibly, conveniently and efficiently realizes the deployment of various test environments and avoids the extra resource waste and the possibility of errors caused by manual test environment deployment.
Drawings
FIG. 1 is a flowchart illustrating a method for deploying a test environment;
FIG. 2 is a schematic diagram of a cloud testing service framework;
fig. 3 is a schematic deployment diagram of a cloud test system.
Detailed Description
The following detailed description of the embodiments of the present invention will be made with reference to the accompanying drawings and examples. It should be noted that the embodiments and technical features thereof may be combined with each other in the case where there is no conflict.
The invention firstly deploys a test environment, and the specific method comprises the following steps: the method comprises the steps of generating a Shell script which packs and backs up original items; generating a Shell script for uploading a new project; generating a Shell script for starting a new project; generating a rollback Shell script, wherein the rollback Shell script is used for returning to the backup of the original item and automatically restoring the Shell script of the original backup item if the new item fails to be started; and summarizing all the Shell scripts to generate a total Shell script, and executing the total Shell script. The detailed steps are shown in fig. 1.
Then, carrying out deployment preparation work of the test, and specifically comprising the following steps: utilizing a back door port which is established at a tested end in advance to invade the tested end, and implanting a test code into the tested end; triggering the tested end to perform hot updating based on the test code so as to realize the deployment of the test environment; the test codes comprise test environment configuration codes, test script codes and test result collection codes; the method comprises the following steps of utilizing a back door port which is built at a tested end in advance to invade the tested end, and implanting the test code into the tested end, wherein the steps are as follows: acquiring a program code corresponding to the test code in the memory of the tested end; comparing the test code to the program code; and when the test code is different from the program code, utilizing a back door port established at a tested end in advance to invade the tested end, and implanting the test code into the tested end.
And then, carrying out environment preparation work before testing, wherein the method comprises the following specific steps: initializing a data environment; analyzing test cases, carrying out detailed decomposition on the whole operation process of the test cases to minimum operation elements which cannot be split, associating the minimum operation elements according to an operation sequence, respectively determining parameters which need to be received for each minimum operation element, receiving the relevant parameters of the test cases, and generating a configuration file, wherein in software test, one test case is carried out aiming at a specific and complete function; deploying the configuration file, executing the configuration file at a specified time, and automatically feeding back a test result according to an execution result; the configuration file represents a test case.
The specific implementation can be divided into four layers: an infrastructure layer (infrastructure-structure), a Service-Oriented layer (Service-Oriented), an application-Oriented layer (application-Oriented), and a UI layer (User-Oriented), as shown in fig. 2.
(1) And an infrastructure layer, which provides laboratory infrastructure services (machine room/laboratory, DUT/SUT, server/virtual machine, storage and network hardware), including virtual machine creation and destruction services, storage allocation and network topology services.
(2) The service layer is specifically divided into an infra-Orien-ted service and an application-Oriented service. The infrastructure-oriented services comprise cloud resource discovery, automatic network topology construction, virtual machine management, resource information database service and storage service; the application-oriented services comprise resource scheduling services, script running services, report services, network management services, version management services, defect management services, use case management services and the like. This layer is a very important layer of the cloud test microservice.
(3) And the application layer is used for further large-granularity arrangement of the micro-services of the lower layer in combination with a test demand scene. Including Report services (Report), integrated test services (CI), automated test Services (ST), and the like.
(4) And the UI layer is provided for operation platforms such as a user Web (browser), a Desktop system (Desktop), an APP (mobile phone terminal) and the like. Generally, private cloud deployment is performed in a network laboratory, including various network resources, storage resources, and computing resources, and a test laboratory service is provided by LaaS. On the private cloud LaaS, the driving server is responsible for network construction, virtual machine creation and storage resource management. The network monitoring reports the resource status to LaaS in real time to ensure the robustness, availability and the like of the infrastructure. Public cloud deployment includes dispatch server deployment, monitoring server deployment, and the like. The scheduling server enables services and dynamic resources to be virtualized, and provides resource-transparent cloud testing services for users, including resource creation/destruction and the like. The queue server faces SaaS application and provides request queue management of cloud resources and the like. The application deployment can be a desktop system, an IE browser, and the like, and provides a series of access interfaces for cloud testing. Private cloud deployment/public cloud deployment/application deployment is shown in fig. 3.
The method is applied to a software testing system, the machine room where each software to be tested is deployed is provided with the software testing system, and the method comprises the following steps: 1. receiving a software test script sent by a web server; 2. generating a software test parameter which is sent to the web server by http message according to a web page by a test script; 3. the test parameters comprise a target machine room where the software to be tested is deployed, and the test script is sent to the software test system according to the target machine room; 4. and testing the software to be tested according to the test script.

Claims (5)

1. A regulation and control software testing service method based on a cloud platform is characterized by comprising the following steps:
the method comprises the following steps: deployment of a test environment;
step two: utilizing a back door port which is established at a tested end in advance to invade the tested end, and implanting a test code into the tested end; triggering the tested end to perform hot updating based on the test code so as to realize the deployment of the test environment; the test codes comprise test environment configuration codes, test script codes and test result collection codes;
step three: setting configuration files according to configuration parameters specifically needed in the test cases, and testing according to needs;
step four: and after the deployment is finished, testing the software to be tested.
2. The cloud platform-based regulatory software testing service method of claim 1, wherein the first step comprises the steps of:
(S0) generating a check Shell script, wherein the check Shell script is used for checking whether the original project is started or not, and if so, stopping the Shell script of the original project;
(S1) generating a Shell script that packages and backs up the original project;
(S2) generating a Shell script uploading the new project;
(S3) comparing the original project with the new project, and if the original project is consistent with the new project, uploading the Shell script of the new project again;
(S4) generating a Shell script that starts a new project;
(S5) generating a rollback Shell script, wherein the rollback Shell script is used for returning to the backup of the original item and automatically restoring the Shell script of the backed up original item if the new item fails to be started;
(S6) summarizing all the Shell scripts to generate a total Shell script, and executing the total Shell script.
3. The cloud platform-based regulation and control software test service method of claim 1, wherein in the second step, the specific steps of utilizing a back door port established in advance at a tested end to invade the tested end and implanting a test code into the tested end are as follows:
acquiring a program code corresponding to the test code in the memory of the tested end; comparing the test code to the program code; and when the test code is different from the program code, utilizing a back door port established at a tested end in advance to invade the tested end, and implanting the test code into the tested end.
4. The cloud platform-based regulation and control software test service method according to claim 1, characterized in that the third step is as follows:
initializing a data environment; analyzing a test case, refining and decomposing the whole operation process of the test case into non-separable minimum operation elements, associating the minimum operation elements according to an operation sequence, respectively determining parameters required to be received for each minimum operation element, receiving the related parameters of the test case, and generating a configuration file; deploying the configuration file, executing the configuration file at a specified time, and automatically feeding back a test result according to an execution result; the configuration file represents a test case.
5. The cloud platform based conditioning software testing service method according to claim 1, wherein the fourth step comprises the following steps:
(1) receiving a software test script sent by a web server; (2) generating a software test parameter which is sent to the web server by http message according to a web page by a test script; (3) the test parameters comprise a target machine room where the software to be tested is deployed, and the test script is sent to the software test system according to the target machine room; (4) and testing the software to be tested according to the test script.
CN201911227226.4A 2019-12-04 2019-12-04 Regulation and control software test service method based on cloud platform Pending CN112000567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911227226.4A CN112000567A (en) 2019-12-04 2019-12-04 Regulation and control software test service method based on cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911227226.4A CN112000567A (en) 2019-12-04 2019-12-04 Regulation and control software test service method based on cloud platform

Publications (1)

Publication Number Publication Date
CN112000567A true CN112000567A (en) 2020-11-27

Family

ID=73461530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911227226.4A Pending CN112000567A (en) 2019-12-04 2019-12-04 Regulation and control software test service method based on cloud platform

Country Status (1)

Country Link
CN (1) CN112000567A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190448A (en) * 2021-05-06 2021-07-30 网易(杭州)网络有限公司 Test code updating method and device, electronic equipment and storage medium
CN114490419A (en) * 2022-02-16 2022-05-13 湖南智擎科技有限公司 Cross-cloud testing method and system of heterogeneous architecture and computer equipment
CN117472785A (en) * 2023-12-25 2024-01-30 银河麒麟软件(长沙)有限公司 Openstack test method and system under Linux system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190448A (en) * 2021-05-06 2021-07-30 网易(杭州)网络有限公司 Test code updating method and device, electronic equipment and storage medium
CN114490419A (en) * 2022-02-16 2022-05-13 湖南智擎科技有限公司 Cross-cloud testing method and system of heterogeneous architecture and computer equipment
CN114490419B (en) * 2022-02-16 2024-02-13 湖南智擎科技有限公司 Heterogeneous architecture cross-cloud testing method, system and computer equipment
CN117472785A (en) * 2023-12-25 2024-01-30 银河麒麟软件(长沙)有限公司 Openstack test method and system under Linux system
CN117472785B (en) * 2023-12-25 2024-04-16 银河麒麟软件(长沙)有限公司 Openstack test method and system under Linux system

Similar Documents

Publication Publication Date Title
CN110389900B (en) Distributed database cluster testing method and device and storage medium
CN112000567A (en) Regulation and control software test service method based on cloud platform
CN108270726B (en) Application instance deployment method and device
CN103793259B (en) Virtual device generating and deploying method
US20150100829A1 (en) Method and system for selecting and executing test scripts
US20150100832A1 (en) Method and system for selecting and executing test scripts
CN103200036B (en) A kind of automation collocation method of electric power system cloud computing platform
CN104539487A (en) Method for testing system based on cloud platform and evaluating reliability
US20180276019A1 (en) Ensuring operational integrity and performance of deployed converged infrastructure information handling systems
CN113569987A (en) Model training method and device
US20150100830A1 (en) Method and system for selecting and executing test scripts
US20150100831A1 (en) Method and system for selecting and executing test scripts
CN109901985B (en) Distributed test apparatus and method, storage medium, and electronic device
CN113778486B (en) Method, device, medium and equipment for containerization processing of code pipeline
CN103942128A (en) Double-computer reinforcing method for high-performance job scheduling management node
CN112199157A (en) Cloud environment management method
CN111258913A (en) Automatic algorithm testing method and device, computer system and readable storage medium
CN111813495A (en) Node testing method and device, storage medium and electronic device
CN106951357A (en) A kind of server end application issue monitoring method and device based on finger daemon
CN114006815B (en) Automatic deployment method and device for cloud platform nodes, nodes and storage medium
CN103336740A (en) Comprehensive test method and device for operation system of power secondary system
CN108241545B (en) Debugging method and device for system fault
CN110543385A (en) Virtual backup method and virtual backup restoration method
CN112596750B (en) Application testing method and device, electronic equipment and computer readable storage medium
CN111737130B (en) Public cloud multi-tenant authentication service testing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20201127

WD01 Invention patent application deemed withdrawn after publication