CN115794622A - Automatic testing method and system for upper computer software of integrated webservice site - Google Patents

Automatic testing method and system for upper computer software of integrated webservice site Download PDF

Info

Publication number
CN115794622A
CN115794622A CN202211433816.4A CN202211433816A CN115794622A CN 115794622 A CN115794622 A CN 115794622A CN 202211433816 A CN202211433816 A CN 202211433816A CN 115794622 A CN115794622 A CN 115794622A
Authority
CN
China
Prior art keywords
webservice
automatic test
upper computer
computer software
solution file
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
CN202211433816.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.)
Fujian Nebula Electronics Co Ltd
Original Assignee
Fujian Nebula Electronics 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 Fujian Nebula Electronics Co Ltd filed Critical Fujian Nebula Electronics Co Ltd
Priority to CN202211433816.4A priority Critical patent/CN115794622A/en
Publication of CN115794622A publication Critical patent/CN115794622A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides an upper computer software automatic test method and system of an integrated webservice site, belonging to the technical field of upper computer software test, wherein the method comprises the following steps: step S10, an automatic test project is newly built through automatic test software, an idle action is created in the automatic test project building process, and a solution file corresponding to the automatic test project is generated; step S20, opening the solution file through a development toolkit, and configuring webservice host service for the solution file to simulate webservice service operation; s30, setting a return value cache of an interface of the webservice through a development toolkit; and S40, writing test data in the cache based on the return value, and simulating a client system through the solution file and the test data so as to automatically test the upper computer software. The invention has the advantages that: the quality and the efficiency of upper computer software test have greatly been promoted, very big reduction test cost.

Description

Automatic testing method and system for upper computer software of integrated webservice site
Technical Field
The invention relates to the technical field of upper computer software testing, in particular to an automatic upper computer software testing method and system integrating a webservice site.
Background
When various industrial equipment is put into use, matched upper computer software needs to be developed, the industrial equipment is controlled through the upper computer software, and in order to guarantee the running stability of the upper computer software, the developed upper computer software needs to be correspondingly tested.
In order to improve the efficiency of the software testing of the upper computer, some automatic testing software is provided, namely, the operation of the upper computer is recorded through the automatic testing software, and the software of the upper computer is automatically tested through the operation of playing and recording. Because the upper computer software often needs to visit services such as webservice provided by customers (the own systems of the customers) to realize data interaction when the upper computer software is actually run and applied, and the upper computer software cannot be connected with the customer system when being tested before the upper computer software is produced, if the customer system is built for each type of upper computer software, the development cost is high, the data in the customer system also needs to be maintained additionally, the related data needs to be adjusted manually in the testing process, the use is not flexible enough, and the software cost and the labor cost are overhigh.
Therefore, how to provide an automatic test method and system for upper computer software integrating a webservice site, so as to improve the quality and efficiency of upper computer software testing and reduce testing cost, becomes a technical problem to be solved urgently.
Disclosure of Invention
The invention aims to solve the technical problem of providing an automatic test method and system for upper computer software of an integrated webservice site, so that the quality and efficiency of upper computer software test are improved, and the test cost is reduced.
In a first aspect, the invention provides an automatic test method for upper computer software of an integrated webservice site, which comprises the following steps:
step S10, an automatic test project is newly established through automatic test software, a null action is established in the automatic test project new establishment process, and a solution file corresponding to the automatic test project is generated;
s20, opening the solution file through a development toolkit, configuring webservice host service for the solution file, and further simulating webservice service operation;
s30, setting a return value cache of an interface of the webservice through a development toolkit;
and S40, caching and writing test data based on the return value, and simulating a client system through the solution file and the test data so as to automatically test the upper computer software.
Further, in the step S10, the automatic test software is Ranorex.
Further, in the step S10, the format of the solution file is sln.
Further, in the step S20, the development toolkit is Visio studio.
Further, in the step S20, the configuring a webservice host service for the solution file, and then simulating the webservice service operation specifically includes:
a class is created in the solution file, and the webservice service of the simulation client system and the corresponding configuration file are defined by using a service host mode.
In a second aspect, the invention provides an upper computer software automatic test system integrated with a webservice site, which includes the following modules:
the automatic test project creating module is used for creating an automatic test project through automatic test software, creating an idle motion in the automatic test project creating process and generating a solution file corresponding to the automatic test project;
the parameter configuration module is used for opening the solution file through a development toolkit, configuring webservice host service for the solution file and further simulating webservice service operation;
the cache setting module is used for setting the return value cache of the interface of the webservice through the development toolkit;
and the automatic test module is used for writing test data in the buffer based on the return value, simulating a client system through the solution file and the test data, and further automatically testing the upper computer software.
Further, in the automatic test project new building module, the automatic test software is Ranorex.
Further, in the new module of the automatic test project, the format of the solution file is sln.
Further, in the parameter configuration module, the development toolkit is Visio studio.
Further, in the parameter configuration module, configuring the webservice host service for the solution file, and further simulating the webservice service operation specifically include:
a class is created in the solution file, and the webservice service of the simulation client system and the corresponding configuration file are defined by using a service host mode.
The invention has the advantages that:
the method comprises the steps of creating an automatic test project through automatic test software and generating a corresponding solution file, opening the solution file through a development kit to perform parameter configuration, setting a return value cache of an interface of webservice through the development kit, writing test data based on the return value cache, simulating a client system through the solution file and the test data, further automatically testing the upper computer software, not depending on the client system of a client, and simulating various test data, wherein in the automatic test process, the return data of the interface of the client system is directly modified inside the automatic test software, so that various information can be tested in a matching manner, and the problem that the client system cannot be accurately tested locally is solved; the test data is directly defined without operating a client system, so that the information is more accurate, the network connection with the outside is reduced, the full-function test can be performed only by one single computer, the parallel test of a plurality of computers can be performed, and finally, the quality and the efficiency of the upper computer software test are greatly improved; because avoided because of setting up the expense that customer system increased, reduced human operation's cost and training cost, and then very big reduction test cost, and very big promotion host computer software test's independence and expansibility.
Drawings
The invention will be further described with reference to the following examples and figures.
Fig. 1 is a flowchart of an automatic testing method for upper computer software of an integrated webservice site according to the present invention.
Fig. 2 is a schematic structural diagram of an upper computer software automatic test system integrated with a webservice site according to the present invention.
Detailed Description
The technical scheme in the embodiment of the application has the following general idea: the client system is simulated to automatically test through the solution file and the test data, the client system of the client is not relied on, various test data can be simulated, and the problem that the client system cannot be accurately tested locally is solved; and the test data is directly defined without operating a client system, so that the information is more accurate, and the full-function test can be carried out only by one independent computer, so that the quality and the efficiency of the upper computer software test are improved, and the test cost is reduced.
Referring to fig. 1 to 2, a preferred embodiment of an automatic testing method for upper computer software of an integrated web service site according to the present invention includes the following steps:
step S10, an automatic test project is newly built through automatic test software, an idle action is created in the automatic test project building process, and a solution file corresponding to the automatic test project is generated; the webservice is a network interface based on the soap, is a website in nature, is convenient to release and is compatible with various language systems;
s20, opening the solution file through a development toolkit, configuring webservice host service for the solution file, and further simulating webservice service operation;
step S30, setting a return value cache of an interface of the webservice through a development toolkit, namely defining variable test data for changing the returned test data at any time as required in the automatic test process;
and S40, writing test data in the cache based on the return value, and simulating a client system through the solution file and the test data so as to automatically test the upper computer software.
In the step S10, the automatic testing software is Ranorex, which is a software capable of recording computer operations, and the target software can be automatically tested by replaying the recorded software after the recording operation is completed.
In the step S10, the format of the solution file is sln.
In the step S20, the development toolkit is Visio studio, and is a C # language development tool based on a net platform.
In step S20, the configuring of the webservice host service for the solution file, and further simulating the webservice service operation specifically include:
a class is created in the solution file, and the webservice service of the simulation client system and the corresponding configuration file are defined by using a service host mode.
The invention discloses a preferred embodiment of an upper computer software automatic test system integrated with a webservice site, which comprises the following modules:
the automatic test project creating module is used for creating an automatic test project through automatic test software, creating an idle motion in the automatic test project creating process and generating a solution file corresponding to the automatic test project; the webservice is a network interface based on the soap, is a website in nature, is convenient to release and is compatible with various language systems;
the parameter configuration module is used for opening the solution file through a development toolkit, configuring webservice host service for the solution file and further simulating webservice service operation;
the buffer memory setting module is used for setting the buffer memory of the return value of the web service interface through the development toolkit, namely defining variable test data and changing the returned test data at any time as required in the automatic test process;
and the automatic test module is used for writing test data in the buffer based on the return value, simulating a client system through the solution file and the test data, and further automatically testing the upper computer software.
In the automatic test project new building module, the automatic test software is Ranorex and is software capable of recording computer operation, and automatic test can be performed on target software by replaying recorded operation after the recording operation is completed.
In the automatic test project new building module, the format of the solution file is sln.
In the parameter configuration module, the development toolkit is Visio studio and is a C # language development tool based on a net platform.
In the parameter configuration module, the configuring of the webservice host service for the solution file, and then the simulating of the webservice service operation specifically include:
a class is created in the solution file, and the webservice service of the simulation client system and the corresponding configuration file are defined by using a service host mode.
In summary, the invention has the advantages that:
the method comprises the steps that an automatic test project is newly established through automatic test software, a corresponding solution file is generated, the solution file is opened through a development toolkit for parameter configuration, a return value cache of an interface of webservice is set through the development toolkit, test data are written in based on the return value cache, a client system is simulated through the solution file and the test data, further, automatic test is conducted on upper computer software, the client system of a client is not depended on, various test data can be simulated, in the automatic test process, the return data of the interface of the client system are directly modified inside the automatic test software, various kinds of information can be tested in a matched mode, and the problem that the client system cannot be accurately tested locally is solved; the test data is directly defined without operating a client system, so that the information is more accurate, the network connection with the outside is reduced, the full-function test can be performed only by one single computer, the parallel test of a plurality of computers can be performed, and finally, the quality and the efficiency of the upper computer software test are greatly improved; because avoided because of setting up the expense that customer system increased, reduced human operation's cost and training cost, and then very big reduction test cost, and very big promotion host computer software test's independence and expansibility.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.

Claims (10)

1. An upper computer software automatic test method of an integrated webservice site is characterized by comprising the following steps: the method comprises the following steps:
step S10, an automatic test project is newly built through automatic test software, an idle action is created in the automatic test project building process, and a solution file corresponding to the automatic test project is generated;
s20, opening the solution file through a development toolkit, configuring webservice host service for the solution file, and further simulating webservice service operation;
s30, setting a return value cache of an interface of the webservice through a development toolkit;
and S40, writing test data in the cache based on the return value, and simulating a client system through the solution file and the test data so as to automatically test the upper computer software.
2. The method for automatically testing the upper computer software of the integrated webservice site as claimed in claim 1, wherein the method comprises the following steps: in the step S10, the automatic test software is Ranorex.
3. The method for automatically testing the upper computer software of the integrated webservice site as claimed in claim 1, wherein the method comprises the following steps: in the step S10, the format of the solution file is sln.
4. The method for automatically testing the upper computer software of the integrated webservice site as claimed in claim 1, wherein the method comprises the following steps: in the step S20, the development toolkit is Visio studio.
5. The method for automatically testing the upper computer software of the integrated webservice site as claimed in claim 1, wherein the method comprises the following steps: in step S20, the configuring of the webservice host service for the solution file, and further simulating the webservice service operation specifically include:
a class is created in the solution file, and the webservice service of the simulation client system and the corresponding configuration file are defined by using a service host mode.
6. The utility model provides an upper computer software automatic test system of integrated webservice website which characterized in that: the system comprises the following modules:
the automatic test project creating module is used for creating an automatic test project through automatic test software, creating an idle motion in the automatic test project creating process and generating a solution file corresponding to the automatic test project;
the parameter configuration module is used for opening the solution file through a development toolkit, configuring webservice host service for the solution file and further simulating webservice service operation;
the cache setting module is used for setting the return value cache of the interface of the webservice through the development toolkit;
and the automatic test module is used for caching and writing test data based on the return value, simulating a client system through the solution file and the test data, and further automatically testing the upper computer software.
7. The automatic test system for upper computer software of the integrated webservice site as claimed in claim 6, wherein: in the automatic test project new building module, the automatic test software is Ranorex.
8. The automatic test system for upper computer software of the integrated webservice site as claimed in claim 6, wherein: in the automatic test project new building module, the format of the solution file is sln.
9. The automatic test system for upper computer software of the integrated webservice site as claimed in claim 6, wherein: in the parameter configuration module, the development toolkit is Visio studio.
10. The automatic test system for upper computer software of the integrated webservice site as claimed in claim 6, wherein: in the parameter configuration module, the step of configuring the webservice host service for the solution file, and further simulating the webservice service operation specifically includes:
a class is created in the solution file, and the webservice service of the simulation client system and the corresponding configuration file are defined by using a service host mode.
CN202211433816.4A 2022-11-16 2022-11-16 Automatic testing method and system for upper computer software of integrated webservice site Pending CN115794622A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211433816.4A CN115794622A (en) 2022-11-16 2022-11-16 Automatic testing method and system for upper computer software of integrated webservice site

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211433816.4A CN115794622A (en) 2022-11-16 2022-11-16 Automatic testing method and system for upper computer software of integrated webservice site

Publications (1)

Publication Number Publication Date
CN115794622A true CN115794622A (en) 2023-03-14

Family

ID=85438121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211433816.4A Pending CN115794622A (en) 2022-11-16 2022-11-16 Automatic testing method and system for upper computer software of integrated webservice site

Country Status (1)

Country Link
CN (1) CN115794622A (en)

Similar Documents

Publication Publication Date Title
CN110018955B (en) Generating automated test scripts by transforming manual test cases
EP2228726B1 (en) A method and system for task modeling of mobile phone applications
CN106933729A (en) A kind of method of testing and system based on cloud platform
CN106648556B (en) Method and device for front-end and back-end integrated development test
CN108459951B (en) Test method and device
CN113505082B (en) Application program testing method and device
CN112068852B (en) Method, system, equipment and medium for installing open-source software based on domestic server
CN114003451B (en) Interface testing method, device, system and medium
CN102541561B (en) Method for developing configuration type software and device
CN115576817A (en) Automatic test system, method, electronic equipment and storage medium
CN113448988B (en) Training method and device of algorithm model, electronic equipment and storage medium
CN114201144A (en) Micro service system construction method, device and medium based on domain-driven design
CN116431103B (en) Digital DevOps platform design method for embedded software
CN116483707A (en) Test method, test device, test apparatus, test program, and test program
CN114968741B (en) Performance test method, system, equipment and medium based on scene platformization
CN115794622A (en) Automatic testing method and system for upper computer software of integrated webservice site
CN115599361A (en) Software development method, device, equipment and medium
CN114924963A (en) Distributed execution method, device, equipment and medium for webpage compatibility test
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN113220592A (en) Processing method and device for automated testing resources, server and storage medium
US7743244B2 (en) Computer system model generation with tracking of actual computer system configuration
CN114692382B (en) Management method and device for nuclear power simulation model development data and computer equipment
US20080066005A1 (en) Systems and Methods of Interfacing with Enterprise Resource Planning Systems
CN115292194B (en) Method for debugging flow, electronic equipment and computer readable storage medium
CN117539468B (en) Low-code development platform for rapidly realizing business

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