CN108984414A - A kind of server test method and device - Google Patents

A kind of server test method and device Download PDF

Info

Publication number
CN108984414A
CN108984414A CN201810824633.2A CN201810824633A CN108984414A CN 108984414 A CN108984414 A CN 108984414A CN 201810824633 A CN201810824633 A CN 201810824633A CN 108984414 A CN108984414 A CN 108984414A
Authority
CN
China
Prior art keywords
test
server
j2ee
case
platform
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
CN201810824633.2A
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 CN201810824633.2A priority Critical patent/CN108984414A/en
Publication of CN108984414A publication Critical patent/CN108984414A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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 kind of server test methods, including, server test platform is constructed, the server test platform is for providing the test environment for testing the server;Test case is write in advance, and the test case meets the first test specification;On the server test platform, according to the test case, server to be measured is tested, and generate test result.In addition, the embodiment of the invention also provides a kind of server test devices.

Description

A kind of server test method and device
Technical field
The present invention relates to server testing field, espespecially a kind of server test method and device.
Background technique
Java 2 Platform Enterprise Edition (J2EE, Java 2Platform Enterprise Edition) middleware Technology, with Componentization is main feature, simplifies the exploitation of Distributed Application, has the development time fast, the at low cost, characteristic that easily extends.With The application of the fast development of J2EE middleware Technology, J2EE application server is also more and more extensive.In J2EE application server It in practical operation, needs to test whether J2EE application server meets J2EE specification, and then tests out J2EE application server energy The no application demand for meeting itself.
In the prior art, the standardized test method of J2EE application server is to migrate corresponding application to different Compatibility test is carried out under J2EE applied server platform.If the application is in exploitation, also further to test, for example, The corresponding basic function of simple testing case is first used, after the completion of waiting the application and development, then carries out J2EE application clothes The complete test of business device.
As it can be seen that the standardized test method of J2EE application server in the prior art is single, testing efficiency is low, when test Between it is long.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of server test method and devices, can simplify clothes Business device test method, reduces the complexity of test, reduces the time of test, improve the efficiency of test.
In order to reach the object of the invention, in a first aspect, the present invention provides a kind of server test methods, comprising:
Server test platform is constructed, the server test platform is for providing the test wrapper for testing the server Border;
Test case is write in advance, and the test case meets the first test specification;
On the server test platform, according to the test case, server to be measured is tested, and generate survey Test result.
Optionally, the server includes: Java 2 Platform Enterprise Edition J2EE application server.
Optionally, first test specification includes: J2EE technical specification.
Optionally, the test case comprises at least one of the following: the universal test use-case of J2EE technical specification, J2EE skill The otherness test case of art specification.
Optionally, it is described server to be measured is tested and generates test result after, the method also includes: will The test result carries out pictorialization and shows.
Second aspect the present invention provides a kind of server test device, including construction unit, writes unit and test is single Member, in which:
The construction unit, for constructing server test platform, the server test platform is for providing test institute State the test environment of server;
Described to write unit, for writing test case in advance, the test case meets the first test specification;
The test cell, the server test platform for constructing in the construction unit, writes according to described The test case that r/w cell is write in advance, tests server to be measured, and generate test result.
Optionally, the server includes: Java 2 Platform Enterprise Edition J2EE application server.
Optionally, first test specification includes: J2EE technical specification.
Optionally, the test case comprises at least one of the following: the universal test use-case of J2EE technical specification, J2EE skill The otherness test case of art specification.
Optionally, described device further includes display unit, in which: the display unit, in the test cell pair After server to be measured is tested and generates test result, test result progress pictorialization is shown.
Compared with prior art, the present invention includes at least building server test platform, and the server test platform is used The test environment of the server is tested in offer;Test case is write in advance, and the test case meets the first test specification; On the server test platform, according to the test case, server to be measured is tested, and generate test result. From technical solution provided by the invention as it can be seen that the present invention is integrated with server test platform, server test method is simplified, is dropped The complexity of low test, reduces the time of test, improves the efficiency of test.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow diagram of server test method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another server test method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another server test method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of server test device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another server test device provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Embodiment one
The embodiment of the present invention provides a kind of server test method, as shown in Figure 1, this method comprises:
Step 101: building server test platform, server test platform is for providing the test wrapper of testing service device Border;
Wherein, server, including J2EE application server.
Specifically, J2EE application server be meet J2EE specification application server, including jboss, tomcat, The application servers such as glassfish.
Specifically, server test platform includes J2EE environmental level.
It should be noted that J2EE environmental level is to standardize software (the including but not limited to each version formed by one group of J2EE This SUN JDK and open JDK etc.), which provides J2EE application server operation JVM and tests environment.Certainly, clothes are built Business device test platform can also build server test platform by other means, and the embodiment of the present invention does not do specific limit to this It is fixed.
It is understood that the present invention is due to being integrated with Software Development Kit (JDK, the Java of Java language Development Kit) running environment, therefore testing service device provides test environment for after.
Step 102: writing test case in advance, test case meets the first test specification;
Wherein, the first test specification is configured according to test needs of the reality to server, for example, the first test specification Including J2EE technical specification etc., the embodiment of the present invention is not specifically limited the type of the first test specification.
Wherein, the otherness of test case, universal test use-case and J2EE technical specification including J2EE technical specification is surveyed Example on probation.
Specifically, the universal test use-case of J2EE technical specification, i.e., the test that can be run at the JDK of each version is used Example, for the basic compatibility test of J2EE application server;The otherness test case of J2EE technical specification, i.e., in specific version The test case that could be run under this JDK is tested for the otherness of J2EE application server.
It should be understood that apparatus of the present invention are due to being integrated with JDK running environment and meeting the test of J2EE technical specification Use-case, therefore can according to the user's choice, automatically dispose tests different function and test case, simplifies test step Suddenly, tester's technical requirements are reduced.
Wherein, JDK is the Software Development Kit of Java language, is mainly used for mobile device, on embedded device Java application program.
Step 103: on server test platform, according to test case, server to be measured being tested, and generate survey Test result.
In practical applications, test result can be shown in a variety of forms by test report generator, for example, Graphically shown.Certainly, the display mode of test result further includes other modes, the embodiment of the present invention to this not It is specifically limited.
Optionally, shown in Figure 2, after step 103, method further includes step 104, specifically,
Step 104: test result progress pictorialization is shown.
As stated above, the present invention includes at least building server test platform, and the server test platform is for providing Test the test environment of the server;Test case is write in advance, and the test case meets the first test specification;Described On server test platform, according to the test case, server to be measured is tested, and generate test result.From this hair The technical solution of bright offer simplifies server test method, reduces survey as it can be seen that the present invention is integrated with server test platform The complexity of examination reduces the time of test, improves the efficiency of test.
Embodiment two
The embodiment of the present invention provides another server test method, as shown in figure 3, this method comprises:
Step 201: building the J2EE platform for the test of J2EE server;
It should be noted that since server test method provided in an embodiment of the present invention is integrated with J2EE platform operation ring Border, therefore J2EE application server can be run directly on the corresponding device of server test method, tester only needs Selection operates under the platform of that version.
Step 202: judging whether J2EE application server to be measured can operate in J2EE platform, if so, thening follow the steps 203;If it is not, thening follow the steps 208;
Step 203: the basic compatibility test use-case for including by basic compatibility test external member is deployed in J2EE application to be measured On server;
In practical application, basic compatibility test external member is J2EE technical specification basis compatibility test external member.Basis is compatible The basic compatibility test use-case that protos test suite PROTOS includes be J2EE define some technical specifications such as JNDI, Servlet, JSP, The software program packages such as EJB.
It is understood that basic compatibility test external member be meet J2EE general technology specification such as JNDI, Servlet, Some test cases of JSP, EJB etc., if these test case successful operations are said in J2EE application service to be tested The bright J2EE application server that test meets the basis J2EE compatibility techniques normative testing demand, and otherwise, explanation will test J2EE Application server is not up to the basis J2EE compatibility techniques normative testing demand.
Step 204: the basic compatibility test use-case that judgement basis compatibility test external member includes whether successful operation, if It is to then follow the steps 205;If it is not, thening follow the steps 208;
It is understood that all test case successful operations illustrate that J2EE application server to be tested meets J2EE base Otherwise it is simultaneous to illustrate that J2EE application server to be tested cannot reach all J2EE technical specifications basis for plinth compatibility techniques specification Capacitive requirement, program run abort, and generate test log, generate test report by Report Builder.
Step 205: the basic compatibility test use-case for including by difference protos test suite PROTOS is deployed in J2EE application service to be measured On device;
In practical application, difference protos test suite PROTOS is J2EE technical specification otherness protos test suite PROTOS.Difference protos test suite PROTOS includes Basic compatibility test use-case be J2EE define it is some based on JDK different editions otherness technical specification such as JDK1.8 it is opposite In new features softwares such as the increased Lambda expression formula of JDK1.7, base64 encryption and decryption API, array parallel (parallel) operations Program bag.
It is understood that difference protos test suite PROTOS is to meet J2EE otherness technical specification such as JDK1.8 relative to JDK1.7 Some tests of the new features such as increased Lambda expression formula, base64 encryption and decryption API, array parallel (parallel) operation are used Example, if these test case successful operations in J2EE application service to be tested, illustrate J2EE application service to be tested Device meets J2EE otherness technical specification testing requirement, and otherwise, explanation will test J2EE application server and be not up to J2EE difference Property technical specification testing requirement.
It should be noted that J2EE platform is the test platform of J2EE application server, and provide J2EE technical specification Test case, guarantee test standardization, accuracy, promoted testing efficiency.
Step 206: judge basic compatibility test use-case that difference protos test suite PROTOS includes whether successful operation, if so, Execute step 207;If it is not, thening follow the steps 208;
It is understood that all test case successful operations then illustrate that J2EE application server to be tested meets difference Test request has J2EE platform latest edition characteristic, otherwise illustrates that J2EE application server to be tested is not up to J2EE skill Art difference between rules test request, J2EE application server to be tested are to meet the J2EE platform specification of legacy version to want It asks.
You need to add is that can test J2EE application server by integrated JDK meet basic running environment demand, so Afterwards by the integrated test case for meeting different J2EE technical specifications, to test whether J2EE application server meets related J2EE Technical specification.Test method, normative testing use-case are not only simplified in this way while shortening the online basic compatibility test of application system Work.
Step 207: according to test report generator, generation passes through test report.
It wherein, should be to be generated according to the test result of step 201- step 206 by test report, form includes can The chart test report intuitively shown.
Wherein, report includes testing those J2EE technical specifications, and whether these technical specifications are up to standard etc..
It should be noted that test report generator can automatically generate the test report that chart is intuitively shown, reduce Tester's adjustment report of the receipts of freight and miscellany time.
Step 208: terminator operation generates test log, does not pass through test report by Report Builder generation.
In conclusion according to operating condition and integrated J2EE technical specification according to J2EE application server under platform Basic compatibility test use-case and otherness test case, judge that J2EE is applied by testing each test case operating condition Whether server meets J2EE technical specification, reaches J2EE application server testing standard, promotes the purpose of testing efficiency.
Embodiment three
It is shown in Figure 4 the present invention provides a kind of server test device, including construction unit 401, write unit 402 and test cell 403, in which:
Construction unit 401, for constructing server test platform, server test platform is for providing testing service device Test environment;
Unit 402 is write, for writing test case in advance, test case meets the first test specification;
Test cell 403, the server test platform for constructing in construction unit 401 are pre- according to unit 402 is write The test case first write tests server to be measured, and generates test result.
Optionally, server includes: Java 2 Platform Enterprise Edition J2EE application server.
Specifically, J2EE application server be meet J2EE specification application server, including jboss, tomcat, The application servers such as glassfish.
It should be noted that J2EE environmental level is to standardize software (the including but not limited to each version formed by one group of J2EE This SUN JDK and open JDK etc.), which provides J2EE application server operation JVM and tests environment.Certainly, clothes are built Business device test platform can also build server test platform by other means, and the embodiment of the present invention does not do specific limit to this It is fixed.
It is understood that providing J2EE application server test software platform, standardized J2EE application service is provided Device test case meets J2EE technical specification standard, and test is simplified, standardizes, and lift pins are to J2EE application server technology Normative testing efficiency.
Optionally, the first test specification includes: J2EE technical specification.
It should be noted that carrying out the test of J2EE technical specification using the device, reduces tester and write test use The time of example, while the test case of the device is comprehensive, reduces personnel's testing requirement and investigation, what test case was write and was debugged The period of test is greatly reduced in time, improves the test quality for being directed to J2EE application server, while J2EE can be pushed to apply Servers standardization test development.
Optionally, test case comprises at least one of the following: the universal test use-case of J2EE technical specification, J2EE technology rule The otherness test case of model.
Specifically, the universal test use-case of J2EE technical specification, i.e., the test that can be run at the JDK of each version is used Example, for the basic compatibility test of J2EE application server;The otherness test case of J2EE technical specification, i.e., in specific version The test case that could be run under this JDK is tested for the otherness of J2EE application server.
Optionally, shown in Figure 5, device further includes display unit 404, in which: display unit 404, for testing After unit 403 is tested to server to be measured and generates test result, test result progress pictorialization is shown.
In conclusion apparatus of the present invention are integrated with J2EE platform environment, the basic compatibility test of J2EE technical specification is used Example and otherness test case, once integrated many places test, solution writes the difficulty of test case every time, while answering for J2EE With the testing standard of server, standardization, the requirement of tester's testing level is reduced, tester's test case is reduced and writes Time, significant increase J2EE application server testing efficiency.
Example IV
The embodiment of the invention discloses a server testers, comprising: processor, storage medium, communication bus, In, pocessor and storage media is connected by communication bus;
Processor calls the server of storage medium storage to test relative program, and executes following steps:
Server test platform is constructed, server test platform is for providing the test environment of testing service device;
Test case is write in advance, and test case meets the first test specification;
On server test platform, according to test case, server to be measured is tested, and generate test result.
On the other hand, one embodiment of the invention proposes a kind of computer storage medium, is applied to server tester In, computer storage medium is stored with one or more server test relative programs, one or more server tests phase Closing program can be executed by one or more processor, to realize the method such as above-mentioned any server test.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method or computer program product. Therefore, the form of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention.And And it wherein includes the computer-usable storage medium of computer usable program code that the present invention, which can be used in one or more, The form for the computer program product implemented on (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.

Claims (10)

1. a kind of server test method, which is characterized in that the described method includes:
Server test platform is constructed, the server test platform is for providing the test environment for testing the server;
Test case is write in advance, and the test case meets the first test specification;
On the server test platform, according to the test case, server to be measured is tested, and generates test knot Fruit.
2. server test method according to claim 1, which is characterized in that the server includes: Java2 platform enterprise Industry version J2EE application server.
3. server test method according to claim 1, which is characterized in that first test specification includes: J2EE Technical specification.
4. server test method according to claim 3, which is characterized in that the test case includes following at least one Kind:
The otherness test case of the universal test use-case of J2EE technical specification, J2EE technical specification.
5. server test method according to claim 1, which is characterized in that test described server to be measured And after generating test result, the method also includes:
Test result progress pictorialization is shown.
6. a kind of server test device, which is characterized in that the server test device include construction unit, write unit and Test cell, in which:
The construction unit, for constructing server test platform, the server test platform tests the clothes for providing The test environment of business device;
Described to write unit, for writing test case in advance, the test case meets the first test specification;
The test cell, the server test platform for constructing in the construction unit, writes list according to described The test case that member is write in advance, tests server to be measured, and generate test result.
7. server test device according to claim 6, which is characterized in that the server includes: Java2 platform enterprise Industry version J2EE application server.
8. server test device according to claim 6, which is characterized in that first test specification includes: J2EE Technical specification.
9. server test device according to claim 8, which is characterized in that the test case includes following at least one Kind:
The otherness test case of the universal test use-case of J2EE technical specification, J2EE technical specification.
10. server test device according to claim 6, which is characterized in that described device further includes display unit, In:
The display unit, for inciting somebody to action after the test cell is tested to server to be measured and generates test result The test result carries out pictorialization and shows.
CN201810824633.2A 2018-07-25 2018-07-25 A kind of server test method and device Pending CN108984414A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810824633.2A CN108984414A (en) 2018-07-25 2018-07-25 A kind of server test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810824633.2A CN108984414A (en) 2018-07-25 2018-07-25 A kind of server test method and device

Publications (1)

Publication Number Publication Date
CN108984414A true CN108984414A (en) 2018-12-11

Family

ID=64550529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810824633.2A Pending CN108984414A (en) 2018-07-25 2018-07-25 A kind of server test method and device

Country Status (1)

Country Link
CN (1) CN108984414A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201850A (en) * 2015-04-29 2016-12-07 阿里巴巴集团控股有限公司 A kind of compatibility test method and device
CN107145438A (en) * 2016-03-01 2017-09-08 阿里巴巴集团控股有限公司 Code test method, code tester device and code tester system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201850A (en) * 2015-04-29 2016-12-07 阿里巴巴集团控股有限公司 A kind of compatibility test method and device
CN107145438A (en) * 2016-03-01 2017-09-08 阿里巴巴集团控股有限公司 Code test method, code tester device and code tester system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘量等: "通用服务器端软件测试框架的研究与实现", 《计算机工程与应用》 *

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
US10841185B2 (en) Platform-integrated IDE
CN103425574B (en) A kind of method and device of test application program
EP2615555A1 (en) Framework for automated testing of mobile apps
CN105338110A (en) Remote debugging method, platform and server
CN108073400A (en) Software automation construction method, server and storage medium
US8615750B1 (en) Optimizing application compiling
CN108287694A (en) Application builds method, system, computer equipment and storage medium
CN112162753A (en) Software deployment method and device, computer equipment and storage medium
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
CN111930617B (en) Automatic test method and device based on data objectification
CN110532185B (en) Test method, test device, electronic equipment and computer readable storage medium
CN103377120A (en) Test method and device for application programs
CN111767208B (en) Automatic test method and device
CN106874028A (en) Using dispositions method and device
CN114168471A (en) Test method, test device, electronic equipment and storage medium
CN109117143A (en) A kind of application dispositions method and system
CN111767209A (en) Code testing method, device, storage medium and terminal
CN113535567B (en) Software testing method, device, equipment and medium
Faiz et al. Flutter framework code portability measurement on multiplatform applications with iso 9126
Papoulias et al. Mercury: Properties and design of a remote debugging solution using reflection
US11442105B2 (en) Disaggregated distributed measurement analysis system using dynamic application builder
CN108984414A (en) A kind of server test method and device
CN110377514A (en) Management method, device, electronic equipment and the storage medium of software component
CN104090845B (en) Automatic game testing method and system and related device

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

Application publication date: 20181211