CN107124335A - One kind is based on cloud sea operating system platform test method and system - Google Patents

One kind is based on cloud sea operating system platform test method and system Download PDF

Info

Publication number
CN107124335A
CN107124335A CN201710522588.0A CN201710522588A CN107124335A CN 107124335 A CN107124335 A CN 107124335A CN 201710522588 A CN201710522588 A CN 201710522588A CN 107124335 A CN107124335 A CN 107124335A
Authority
CN
China
Prior art keywords
test
configuration file
request
management end
operating system
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
CN201710522588.0A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710522588.0A priority Critical patent/CN107124335A/en
Publication of CN107124335A publication Critical patent/CN107124335A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Cloud sea operating system platform test method and system are based on this application discloses one kind, including:Configuration file is obtained, using the testing scheme storehouse pre-set, test case corresponding with configuration file is performed, generate test command request, and test command request is sent to request management end, wherein, testing scheme stock contains configuration file and the corresponding relation of test case;The api interface implementing result that request management end is sent is received, using implementing result, test result is generated.The application client obtains configuration file, utilize the testing scheme storehouse pre-set, automatically corresponding test case is performed for configuration file, and generates test command request and sent to request management end, finally receive the api interface implementing result that request management end is sent, utilize the implementing result of return, test result is generated, test is completed, realizes automatic test, test manpower is reduced, testing efficiency is improved.

Description

One kind is based on cloud sea operating system platform test method and system
Technical field
It is more particularly to a kind of to be based on cloud sea operating system platform test method and system the present invention relates to field of cloud calculation.
Background technology
With the arrival of cloud computing era, the fast development of information technology so that large-scale data and calculate business to Cloud computing platform is migrated.And server virtualization technology fast development and widely popularize in the industry, also cause many IT Company is put into the exploitation of cloud computing platform rapidly.Service supplier and cloud computing solution tide have also been issued and independently ground The cloud data center operating system of hair --- sea of clouds OS.
Gradually ripe with product, technology is maked rapid progress, and sea of clouds OS is also improved and excellent carrying out continuous version Change in escalation process.Some problems may be so brought, it is functional whether New function exploitation has influence on, existing function optimization Whether influence other modules, development function whether can with etc., these problems can cause test employee ceaselessly to carry out version test, Expend substantial amounts of manpower, and inefficiency.
The content of the invention
In view of this, cloud sea operating system platform test method and system are based on it is an object of the invention to provide one kind, To save manpower, testing efficiency is improved.Its concrete scheme is as follows:
One kind is based on cloud sea operating system platform test method, including:
Configuration file is obtained, using the testing scheme storehouse pre-set, execution is corresponding with the configuration file to test use Example, generation test command request, and asked to the request management end transmission test command, wherein, the testing scheme stock Contain the configuration file and the corresponding relation of test case;
The api interface implementing result that the request management end is sent is received, the implementing result, generation test knot is utilized Really.
Optionally, in addition to:Fail when sending the test command request to the request management end, then resend institute Test command request is stated, until more than default transmission times or sending successfully.
Optionally, in addition to:Using the test result, the test of the successful test case of statistical test and test crash Use-case.
Optionally, the checking information in the configuration file is obtained;
When the judgement checking information can perform test, then the configuration file is obtained.
Cloud sea operating system platform testing system is based on the invention also discloses one kind, including:
Generation module is asked, for obtaining configuration file, using the testing scheme storehouse pre-set, is performed and the configuration The corresponding test case of file, generation test command request;Wherein, the testing scheme library storage has the configuration file and survey The corresponding relation of example on probation;
Request sending module, is asked for sending the test command to request management end;
Result-generation module, for receiving the api interface implementing result that the request management end is sent, is performed using described As a result, test result is generated.
Optionally, in addition to:Sending module is repeated, for being asked when to the request management end transmission test command Failure, then resend the test command request, until more than default transmission times or sending successfully.
Optionally, in addition to:As a result statistical module, for utilizing the test result, statistical test successfully tests use The test case of example and test crash.
Optionally, in addition to:
Acquisition module is verified, for obtaining the checking information in the configuration file;
Judge module is verified, for test can be performed when the judgement checking information, then the configuration file is obtained.
In the present invention, based on cloud sea operating system platform test method, including:Configuration file is obtained, using pre-setting Testing scheme storehouse, perform corresponding with configuration file test case, generation test command request, and to request management end transmission Test command is asked, wherein, testing scheme stock contains configuration file and the corresponding relation of test case;Receive request management end The api interface implementing result of transmission, using implementing result, generates test result.Client of the present invention obtains configuration file, utilizes The testing scheme storehouse pre-set, performs corresponding test case, and generate test command request transmission for configuration file automatically To request management end, the api interface implementing result that request management end is sent finally is received, implementing result, generation test knot is utilized Really, test is completed, automatic test is realized, reduces test manpower, improve testing efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of based on cloud sea operating system platform test method flow schematic diagram disclosed in the embodiment of the present invention;
Fig. 2 is a kind of based on cloud sea operating system platform testing system structural representation disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on this Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made Example is applied, the scope of protection of the invention is belonged to.
Cloud sea operating system platform test method, shown in Figure 1, this method are based on the embodiment of the invention discloses one kind Including:
Step S11:Configuration file is obtained, using the testing scheme storehouse pre-set, survey corresponding with configuration file is performed Example on probation, generation test command request, and test command request is sent to request management end, wherein, testing scheme stock contains The corresponding relation of configuration file and test case;
Specifically, client obtains configuration file to be measured, be stored with configuration file and the test case pre-set is utilized Corresponding relation testing scheme storehouse, find test case corresponding with configuration file, and perform corresponding test case, it is raw Asked into the test command for transferring cloud sea operating system api interface, and test command request is sent to request management end, with Request management end is set to be asked by parsing test command, so as to perform test content, i.e. to utilize test command request call API Interface (API, Application Programming Interface, application programming interface).
Step S12:The api interface implementing result that request management end is sent is received, implementing result, generation test knot is utilized Really.
Wherein, whether successfully etc. test result record has test case information.
It should be noted that request management end can be while the test command request that multiple client is sent, be carried out simultaneously Concurrent testing, client can also obtain multiple configuration files, generate multiple test commands requests, send to request management end with Tested.
It can be seen that, client of the embodiment of the present invention obtains configuration file, using the testing scheme storehouse pre-set, it is automatic be with Put file and perform corresponding test case, and generate test command request and send to request management end, finally receive request management The api interface implementing result sent is held, using the implementing result of return, test result is generated, completes test, realize automation Test, reduces test manpower, improves testing efficiency.
In actual applications, because software systems reason may occur to send test command request failure to request management end Situation, therefore, it can when to request management end send test command request fail, then resend test command request, directly To exceeding default transmission times or sending successfully, cause the situation of test crash because of such mistake to reduce.
For example, default transmission times is 10 times, fails when sending test command request to request management end, then resend Test command request failure, just sends successfully if resending number of times within 10 times, no longer carries out remaining operation, if 10th transmission test command request failure, then stop continuing transmission test command request, can send prompt message to user Terminal, carries out operation by user and solves failure.
Further, in order to preferably analysis test result, it is possible to use test result, statistical test is successfully surveyed The test case of example on probation and test crash, can intuitively check that those are successfully tested, those test crash, meanwhile, may be used also With the abnormal information occurred during recording now, it is easy to user to be modified configuration file.
It is understood that in order to ensure the security row of test and avoid some unrelated test runs from being configuration file Add verification process;Wherein,
Step S13:Obtain the checking information in configuration file.
Specifically, addition is used for the checking information verified in configuration file, wherein, checking information can include user's The dependent authentication informations such as username and password.
Step S14:When decision verification information can perform test, then configuration file is obtained.
Specifically, using checking information and the checking information storehouse pre-set, judgement is corresponding with checking information to configure text Whether part can perform test, wherein, the checking information that can pass through is preserved in the checking information storehouse pre-set, when testing Checking information is found in card information bank, then explanation can perform test, if do not found, cannot perform, certainly, Opposite setting can also be carried out, checking information is found in checking information storehouse, then cannot be performed, in checking information storehouse Checking information is not found, then can be performed, when decision verification information can perform test, then obtaining in step S11 is performed Configuration file is taken, to carry out follow-up test, if it is decided that configuration file cannot perform test, then refusal receives configuration file, Without test.
Cloud sea operating system platform testing system, shown in Figure 2, the system are based on the embodiment of the invention discloses one kind Including:
Generation module 11 is asked, for obtaining configuration file, using the testing scheme storehouse pre-set, is performed and configuration text The corresponding test case of part, generation test command request;Wherein, testing scheme stock contains configuration file and pair of test case It should be related to;
Request sending module 12, for sending test command request to request management end;
Result-generation module 13, for receiving the api interface implementing result that request management end is sent, using implementing result, Generate test result.
It can be seen that, client of the embodiment of the present invention obtains configuration file, using the testing scheme storehouse pre-set, it is automatic be with Put file and perform corresponding test case, and generate test command request and send to request management end, finally receive request management The api interface implementing result sent is held, using the implementing result of return, test result is generated, completes test, realize automation Test, reduces test manpower, improves testing efficiency.
In the embodiment of the present invention, it can also be included based on cloud sea operating system platform testing system:
Sending module is repeated, for failing when to request management end transmission test command request, then test life is resend Order request, until more than default transmission times or sending successfully.
As a result statistical module, for utilizing test result, the test of the successful test case of statistical test and test crash Use-case.
Acquisition module is verified, for obtaining the checking information in configuration file;
Judge module is verified, for test can be performed when decision verification information, then configuration file is obtained.
It should be noted that based on the application of cloud sea operating system platform testing system on the client, client can be adopted Developed, be deployed on automatically testing machine with Python high-level languages, client can use RestAPI (Representational State Transfer, declarative state transfer) issues requests message and request management end Progress is handed over, and request management end can use Spring MVC frameworks.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include that A little key elements, but also other key elements including being not expressly set out, or also include be this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except also there is other identical element in the process including the key element, method, article or equipment.
One kind provided by the present invention has been carried out in detail based on cloud sea operating system platform test method and system above Introduce, specific case used herein is set forth to the principle and embodiment of the present invention, the explanation of above example It is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for those of ordinary skill in the art, according to this The thought of invention, be will change in specific embodiments and applications, in summary, and this specification content should not It is interpreted as limitation of the present invention.

Claims (8)

1. one kind is based on cloud sea operating system platform test method, it is characterised in that including:
Configuration file is obtained, using the testing scheme storehouse pre-set, test case corresponding with the configuration file is performed, it is raw The test command request is sent into test command request, and to request management end, wherein, the testing scheme library storage is State configuration file and the corresponding relation of test case;
The api interface implementing result that the request management end is sent is received, using the implementing result, test result is generated.
2. according to claim 1 be based on cloud sea operating system platform test method, it is characterised in that also includes:
Fail when sending the test command request to the request management end, then resend the test command request, directly Extremely exceed default transmission times or send successfully.
3. according to claim 1 be based on cloud sea operating system platform test method, it is characterised in that also includes:
Using the test result, the test case of the successful test case of statistical test and test crash.
4. according to any one of claims 1 to 3 based on cloud sea operating system platform test method, it is characterised in that obtain Before taking configuration file, in addition to:
Obtain the checking information in the configuration file;
When the judgement checking information can perform test, then the configuration file is obtained.
5. one kind is based on cloud sea operating system platform testing system, it is characterised in that including:
Generation module is asked, for obtaining configuration file, using the testing scheme storehouse pre-set, is performed and the configuration file Corresponding test case, generation test command request;Wherein, the testing scheme library storage has the configuration file to be used with test The corresponding relation of example;
Request sending module, is asked for sending the test command to request management end;
Result-generation module, for receiving the api interface implementing result that the request management end is sent, knot is performed using described Really, test result is generated.
6. according to claim 5 be based on cloud sea operating system platform testing system, it is characterised in that also includes:
Sending module is repeated, for failing when to the request management end transmission test command request, then institute is resend Test command request is stated, until more than default transmission times or sending successfully.
7. according to claim 5 be based on cloud sea operating system platform testing system, it is characterised in that also includes:
As a result statistical module, for utilizing the test result, the test of the successful test case of statistical test and test crash Use-case.
8. according to any one of claim 5 to 7 based on cloud sea operating system platform testing system, it is characterised in that also Including:
Acquisition module is verified, for obtaining the checking information in the configuration file;
Judge module is verified, for test can be performed when the judgement checking information, then the configuration file is obtained.
CN201710522588.0A 2017-06-30 2017-06-30 One kind is based on cloud sea operating system platform test method and system Pending CN107124335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710522588.0A CN107124335A (en) 2017-06-30 2017-06-30 One kind is based on cloud sea operating system platform test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710522588.0A CN107124335A (en) 2017-06-30 2017-06-30 One kind is based on cloud sea operating system platform test method and system

Publications (1)

Publication Number Publication Date
CN107124335A true CN107124335A (en) 2017-09-01

Family

ID=59730699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710522588.0A Pending CN107124335A (en) 2017-06-30 2017-06-30 One kind is based on cloud sea operating system platform test method and system

Country Status (1)

Country Link
CN (1) CN107124335A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107807869A (en) * 2017-10-16 2018-03-16 微梦创科网络科技(中国)有限公司 A kind of test system and method for testing
CN110727601A (en) * 2019-10-21 2020-01-24 江苏芯盛智能科技有限公司 Multi-platform program testing method and related device
CN110795142A (en) * 2019-10-18 2020-02-14 郑州阿帕斯科技有限公司 Configuration file generation method and device
CN111786855A (en) * 2020-06-30 2020-10-16 曙光信息产业(北京)有限公司 Network card pressure testing method and device, electronic equipment and storage medium
CN115102889A (en) * 2022-07-26 2022-09-23 中国电力科学研究院有限公司 Client side energy measurement data exchange protocol remote test method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145964A (en) * 2007-07-27 2008-03-19 中兴通讯股份有限公司 An automatic smoke testing method and system for network management system
CN103812726A (en) * 2014-01-26 2014-05-21 烽火通信科技股份有限公司 Automated testing method and device for data communication equipment
CN104391705A (en) * 2014-12-03 2015-03-04 浪潮集团有限公司 Distributed automatic test framework applied to high-availability cluster software
CN105005295A (en) * 2015-07-15 2015-10-28 上海核工程研究设计院 Test system and test method for control logic
CN106339312A (en) * 2015-07-17 2017-01-18 腾讯科技(深圳)有限公司 API (application programming interface) testing method and system
US9600405B1 (en) * 2008-10-03 2017-03-21 Federal Home Loan Mortgage Corporation (Freddie Mac) Systems and methods for testing a software application

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145964A (en) * 2007-07-27 2008-03-19 中兴通讯股份有限公司 An automatic smoke testing method and system for network management system
US9600405B1 (en) * 2008-10-03 2017-03-21 Federal Home Loan Mortgage Corporation (Freddie Mac) Systems and methods for testing a software application
CN103812726A (en) * 2014-01-26 2014-05-21 烽火通信科技股份有限公司 Automated testing method and device for data communication equipment
CN104391705A (en) * 2014-12-03 2015-03-04 浪潮集团有限公司 Distributed automatic test framework applied to high-availability cluster software
CN105005295A (en) * 2015-07-15 2015-10-28 上海核工程研究设计院 Test system and test method for control logic
CN106339312A (en) * 2015-07-17 2017-01-18 腾讯科技(深圳)有限公司 API (application programming interface) testing method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107807869A (en) * 2017-10-16 2018-03-16 微梦创科网络科技(中国)有限公司 A kind of test system and method for testing
CN110795142A (en) * 2019-10-18 2020-02-14 郑州阿帕斯科技有限公司 Configuration file generation method and device
CN110795142B (en) * 2019-10-18 2023-04-07 郑州阿帕斯科技有限公司 Configuration file generation method and device
CN110727601A (en) * 2019-10-21 2020-01-24 江苏芯盛智能科技有限公司 Multi-platform program testing method and related device
CN110727601B (en) * 2019-10-21 2022-10-14 江苏芯盛智能科技有限公司 Multi-platform program testing method and related device
CN111786855A (en) * 2020-06-30 2020-10-16 曙光信息产业(北京)有限公司 Network card pressure testing method and device, electronic equipment and storage medium
CN115102889A (en) * 2022-07-26 2022-09-23 中国电力科学研究院有限公司 Client side energy measurement data exchange protocol remote test method and system

Similar Documents

Publication Publication Date Title
CN107124335A (en) One kind is based on cloud sea operating system platform test method and system
CN109800160B (en) Cluster server fault testing method and related device in machine learning system
US10331439B2 (en) Source code transfer control method, computer program therefor, and recording medium therefor
CN104869175A (en) Cross-platform account resource sharing implementation method, device and system
CN105955878A (en) Server-side test method and system
US7971110B2 (en) System and method for testing a serial attached small computer system interface
CN104917586A (en) Verification method, device and system of transmitted data
US11709767B2 (en) Method and apparatus for verifying operation state of application
CN110058920A (en) Virtual machine performance detection method and device, electronic equipment, storage medium
CN109508295A (en) Block chain common recognition test of heuristics method, apparatus, computing device and storage medium
CN109447384A (en) Verification method, device, equipment and the storage medium of air control system
US10802920B2 (en) Backup and restore validation
CN103678423A (en) Data file input system, device and method
CN104780123B (en) A kind of network pack receiving and transmitting processing unit and its design method
CN104484275A (en) Method and system capable of remotely testing smart cards
CN105320711A (en) Mass data access method and system using the same
US8510473B1 (en) Converting message character sets for a queue manager
CN117651003A (en) ERP information transmission safety monitoring system
CN107368438A (en) A kind of dirty data detection method and system
CN104868973A (en) Data integrity verifying method and system
CN105426183A (en) Form verification method
CN101465730A (en) Method and system for automatically uploading and downloading data
CN114024822A (en) Block chain-based Internet of things equipment management method, equipment, server and medium
CN107368530A (en) A kind of method and system based on custom properties checking data validity
CN114257632A (en) Disconnection reconnection method and device, electronic equipment and readable storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170901

RJ01 Rejection of invention patent application after publication