CN109522202A - A kind of method and apparatus of software test - Google Patents

A kind of method and apparatus of software test Download PDF

Info

Publication number
CN109522202A
CN109522202A CN201710842280.4A CN201710842280A CN109522202A CN 109522202 A CN109522202 A CN 109522202A CN 201710842280 A CN201710842280 A CN 201710842280A CN 109522202 A CN109522202 A CN 109522202A
Authority
CN
China
Prior art keywords
package informatin
test
test case
interconnected system
information
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.)
Granted
Application number
CN201710842280.4A
Other languages
Chinese (zh)
Other versions
CN109522202B (en
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710842280.4A priority Critical patent/CN109522202B/en
Publication of CN109522202A publication Critical patent/CN109522202A/en
Application granted granted Critical
Publication of CN109522202B publication Critical patent/CN109522202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

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 method and apparatus of software test, are related to field of computer technology.One specific embodiment of this method includes: the package informatin issued according to software package manager RPM, calls interconnected system corresponding with package informatin, package informatin includes destination server IP address;Based on destination server IP address, test case corresponding with package informatin is executed to destination server in interconnected system;The result tested.This method is able to solve in the prior art that existing coverage is small during verifying, is easy to appear mistake or omits, the problem of time-consuming and low efficiency, improves the efficiency and accuracy of test verifying.

Description

A kind of method and apparatus of software test
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus of software test.
Background technique
After distribution, related development personnel/tester needs to test the software systems after publication for software service Verifying, it is ensured that the software service of new version can be worked normally and be got a desired effect, and the hair of this software is assessed with this Whether cloth succeeds.
Currently, mainly including following several sides in scanning/test proof scheme of existing daemon software service publication Formula:
1, the page of the tester/developer on mobile phone/plate/computer verifies software service manually;
2, tester/developer selects corresponding to the software service of this publication in corresponding automatic test platform Automatic test cases verified;
3, tester/developer submits common gateway interface CGI (Common in security scanning systems manually Gateway Interface, CGI) scan task progress security sweep or manual using security sweep tool in local computing It is scanned.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
During scanning/test verifying, need to carry out manually to verify or be submitted to manually corresponding test platform into Row verifying, so as to cause verifying coverage it is small, be easy to appear mistake or omit, time-consuming and low efficiency the problem of.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus of software test, it is able to solve in the prior art Existing coverage is small during verifying, is easy to appear mistake or omits, the problem of time-consuming and low efficiency.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of method of software test is provided.
A kind of method of software test of the embodiment of the present invention includes: the package informatin issued according to software package manager RPM, is adjusted With interconnected system corresponding with package informatin, package informatin includes destination server IP address;Based on destination server IP address, closing Test case corresponding with package informatin is executed to destination server in connection system;The result tested.
Optionally, the interconnected system of the embodiment of the present invention includes security scanning systems, common gateway interface CGI test macro And back office interface test macro.
Optionally, the package informatin of the embodiment of the present invention further includes being packaged path;Calling association system corresponding with package informatin Before the step of system, further includes: according to the package informatin received, analysis is packaged the content in path, to determine the class of package informatin Type;The step of calling interconnected system corresponding with package informatin includes: to be called corresponding with type according to the corresponding type of package informatin Interconnected system.
Optionally, the embodiment of the present invention is corresponding with package informatin to destination server execution in interconnected system tests use The step of example includes: the interface name and VHOST information for obtaining the CGI of package informatin;Call the security sweep system in interconnected system System obtains record to be scanned from scanning record, HOST information then is arranged to record to be scanned, then believe the HOST is provided with The record to be scanned of breath is scanned;The CGI test macro in interconnected system is called, is matched corresponding with CGI test macro Then test case is arranged VHOST information to test case, then tests the test case for being provided with the VHOST information.
Optionally, the embodiment of the present invention is corresponding with package informatin to destination server execution in interconnected system tests use The step of example includes: the back office interface test macro called in interconnected system, matches test case according to package informatin, then right HOST information is arranged in test case, then tests the test case for being provided with the HOST information.
It optionally, further include packet name, publisher's id information and issuing time in the package informatin of the embodiment of the present invention;According to Packet name matches test case corresponding with package informatin;After the result tested the step of, further includes: according to publisher ID Result with timestamp is sent to publisher by information and issuing time.
To achieve the above object, according to another aspect of an embodiment of the present invention, a kind of device of software test is provided.
A kind of device of software test of the embodiment of the present invention includes: calling module, for according to software package manager RPM The package informatin of publication calls interconnected system corresponding with package informatin, and package informatin includes destination server IP address;Processing module, For being based on destination server IP address, test case corresponding with package informatin is executed to destination server in interconnected system; Confirmation module, the result for being tested.
Optionally, interconnected system of the embodiment of the present invention include security scanning systems, common gateway interface CGI test macro with And back office interface test macro.
Optionally, the package informatin of the embodiment of the present invention further includes being packaged path;Device further includes determining module, is used for: root According to the package informatin received, analysis is packaged the content in path, to determine the type of package informatin;Processing module is specifically used for: root According to the corresponding type of package informatin, interconnected system corresponding with type is called.
Optionally, the processing module of the embodiment of the present invention is used to obtain the interface name and VHOST letter of the CGI of package informatin Breath;The security scanning systems in interconnected system are called, obtain record to be scanned from scanning record, then record to be scanned is set HOST information is set, then the record to be scanned for being provided with the HOST information is scanned;The CGI in interconnected system is called to test system System, matches test case corresponding with CGI test macro, VHOST information then is arranged to test case, then to being provided with this The test case of VHOST information is tested.
Optionally, the processing module of the embodiment of the present invention is used for: calling the back office interface test macro in interconnected system, root Test case is matched according to package informatin, HOST information, then the test to the HOST information is provided with then are arranged to test case Use-case is tested.
It optionally, further include packet name, publisher's id information and issuing time in the package informatin of the embodiment of the present invention;According to Packet name matches test case corresponding with package informatin;After the result tested the step of, further includes: according to publisher ID Result with timestamp is sent to publisher by information and issuing time.
To achieve the above object, according to an embodiment of the present invention in another aspect, the electronics for providing a kind of software test is set It is standby.
The a kind of electronic equipment of the embodiment of the present invention includes: one or more processors;Storage device, for storing one Or multiple programs, when one or more of programs are executed by one or more of processors, so that one or more of The method that processor realizes the software test of the embodiment of the present invention.
To achieve the above object, another aspect according to an embodiment of the present invention, provides a kind of computer-readable medium.
A kind of computer-readable medium of the embodiment of the present invention, is stored thereon with computer program, and described program is processed The method of the software test of the embodiment of the present invention is realized when device executes.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that because using the package informatin according to publication Corresponding interconnected system is called directly, and in the technological means of destination server implementation of test cases, so overcoming existing skill Existing coverage is small during verifying in art, is easy to appear mistake or omits, time-consuming and the technology of low efficiency is asked Topic, and then reach the technical effect for increasing coverage and improving treatment effeciency.It is corresponding to go out package informatin by Auto-matching Test case simultaneously executes, and greatly increases the coverage area of verification efficiency, accuracy and test case, meanwhile, it drops significantly Low user executes the workload of test, to improve the probability found the problem.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is a kind of schematic diagram of the main flow of the method for software test according to an embodiment of the present invention;
Fig. 2 is the flow diagram of one-stop automatic Verification according to an embodiment of the present invention;
Fig. 3 is the flow diagram of one-stop verification method according to an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of the main modular of the device of software test according to an embodiment of the present invention;
Fig. 5 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 6 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is a kind of schematic diagram of the main flow of the method for software test according to an embodiment of the present invention, such as Fig. 1 institute Show, a kind of method of software test of the embodiment of the present invention mainly includes the following steps:
Step S101: the package informatin issued according to software package manager RPM calls interconnected system corresponding with package informatin. The content for the RPM package informatin that the present invention is issued by analysis software package manager RPM delivery system, then calls relevant pass Connection unites and carries out test processes.Wherein, package informatin includes destination server IP address;Interconnected system includes security sweep system System, common gateway interface CGI test macro and back office interface test macro.
Specifically, in certain embodiments of the present invention, package informatin of the invention further includes being packaged path;Call with Before the step of package informatin corresponding interconnected system, further includes: according to the package informatin received, analysis is packaged the content in path, To determine the type of package informatin;The step of calling interconnected system corresponding with package informatin includes: according to the corresponding class of package informatin Type calls interconnected system corresponding with type.By determining type corresponding to package informatin, then according to type come it is quick really Corresponding interconnected system is made, the efficiency of test verifying is improved.
It should be noted that can not also judge phase according to the corresponding type of package informatin in some usage scenarios The interconnected system answered, but the method by excluding one by one determines, i.e., first judges whether package informatin is specified services (such as TWS clothes Business, and the TWS services corresponding with a test case of security scanning systems, common gateway interface CGI test macro a survey Example on probation is corresponding), if so, then executing the specified services and test case;If not, continue to judge package informatin whether be under One specified services (such as Appserver service, and a test case phase of the Appserver service and back office interface test macro It is corresponding), if so, then executing the specified services and test case;If not, continuing to judge whether package informatin is next specified clothes Business (such as Appplatform service, and Appplatform service is corresponding with a test case of back office interface test macro) If so, then executing the specified services and test case;If not, being determined as other interconnected systems.
In addition, the above-mentioned method excluded one by one, is not related to the sequence of judgement.It should also be noted that, above-mentioned TWS It is a kind of web server for running on unix/linux platform;Appserver is a kind of C++APP layers of service framework, is applicable in It is used in the fairly simple business of framework;Appplatfrom is a kind of C++APP layers of service framework, and it is more multiple to be suitable for framework Miscellaneous business uses.
Step S102: being based on destination server IP address, executes and package informatin phase in interconnected system to destination server The test case answered.The embodiment of the present invention by destination server (equipment) execute interconnected system (security scanning systems, Common gateway interface CGI test macro and back office interface test macro) in test case, thus improve test verifying effect Rate and the coverage for guaranteeing test case to the full extent.It is swept by creating safety corresponding to package informatin in destination server It retouches task or common gateway interface CGI test assignment or back office interface test assignment and executes, to reach the station after publication Formula verifying reduces the workload that user executes test verifying.
In certain embodiments of the present invention, the present invention executes and package informatin phase destination server in interconnected system The step of test case answered includes: the interface name and VHOST information for obtaining the CGI of package informatin;It calls in interconnected system Security scanning systems obtain record to be scanned from scanning record, HOST information then are arranged to record to be scanned, then to setting There is the record to be scanned of the HOST information to be scanned;The CGI test macro in interconnected system is called, matches and is tested with CGI Then the corresponding test case of system is arranged VHOST information to test case, then uses the test for being provided with the VHOST information Example is tested.By the content in package informatin, quickly determines test case and tested, to determine scanning result and test As a result.
In certain embodiments of the present invention, the present invention executes and package informatin phase destination server in interconnected system The step of test case answered includes: the back office interface test macro called in interconnected system, matches test according to package informatin Then use-case is arranged HOST information to test case, then tests the test case for being provided with the HOST information.Pass through packet Content in information quickly determines test case and is tested, to determine test result.
Step S103: the result tested.Corresponding test case is executed by step S102, then by security sweep As a result it is sent to user with common gateway interface CGI test result, or back office interface test result is sent to user.Another It further include packet name, publisher's id information and issuing time in package informatin of the invention in a little usage scenarios;It is matched according to packet name Test case corresponding with package informatin;After the result tested the step of, further includes: according to publisher's id information and hair Result with timestamp is sent to publisher by the cloth time.
Fig. 2 is the flow diagram of one-stop automatic Verification according to an embodiment of the present invention, as shown in Figure 2, exploit person Member has selected some RPM packet (the i.e. above-mentioned package informatin of the RPM packet) and has executed to be published in software package manager RPM delivery system The operation of destination server.In the case where issuing successful situation, software package manager RPM delivery system will call publication verifying to connect Mouthful, RPM packet is passed to the publication service for checking credentials.After the publication service for checking credentials receives request, the information in RPM packet is extracted, is arrived It is analyzed under packing path corresponding with RPM packet according to rule, and then judges then the type of the RPM packet calls association system System interface, then creates corresponding automation task.After interconnected system generates automation task, meeting Auto-matching goes out the RPM packet (service) corresponding automatic test cases simultaneously execute, and test report mail are then sent to relevant operation personnel, from realization One-stop automatic Verification.
Before starting the implementation to the embodiment of the present invention and being described in detail, it is also necessary to name according to the present invention Word does description below:
RPM:RPM is the abbreviation of RPM Package Manager (RPM software package manager), and one kind is under internet Carry the tool of packing and the installation of packet;
NGINX:NGINX (" engine x ") is a high performance HTTP and Reverse Proxy and one IMAP/POP3/SMTP server;
CGI:Common Gateway Interface, abbreviation common gateway interface CGI.It is physically a Duan Chengxu, Operation on the server, provides the interface of same client html page;
HOST: settable by HOST or return to the Hostname and port numbers of current URL;
VHOST: it can be requested in corresponding WEBAPP service by VHOST.
In other usage scenarios, following parameter configuration can also be realized:
[interconnected system 1: the security scanning systems of wechat hand Q]
Include 2 class CGI scanning record in wechat hand Q security scanning systems:
A), the CGI that developer/tester submits manually scans record;
B), system is grabbed from production environment NGINX server weekly and treated CGI scanning record.
[interconnected system 2: the CGI automatization test system of wechat hand Q]
In the CGI automatic test platform of wechat hand Q, developer/tester is corresponding for TWS service typing CGI resource and automation use-case has been made on this basis.
[interconnected system 3: the back office interface automatization test system of wechat hand Q]
Platform is automated in the back office interface of wechat hand Q, developer/tester (pays attention to for background service interface Distinguish Appserver frame and Appplatform frame) make corresponding automatic test cases.
[interconnected system 4: software package manager RPM delivery system]
In the software package manager RPM delivery system of wechat hand Q, developer can choose some RPM packet and issue Operation.
It is just described in detail below in conjunction with implementation of the attached drawing 3 to the embodiment of the present invention, Fig. 3 is to implement according to the present invention The flow diagram of the one-stop verification method of example realizes that the technical solution of the embodiment of the present invention includes following several as shown in Figure 3 Step:
1, developer executes publication operation in software package manager RPM delivery system, in the case where issuing successful situation, then The one-stop publication service for checking credentials can be called by HTTP request, and the RPM packet (packet in the RPM packet after issuing successfully Include packet name, be packaged path, target machine IP, publisher ID and issuing time, hereinafter referred to as package informatin) it is passed on.
2, after the one-stop publication service for checking credentials receives request, it is packaged the file content in path by analysis, judges the packet Information type (different types can correspond to different services, service include: TWS service, Appserver service, Appplatform service and other services).Next corresponding service is just judged according to the type of package informatin, and by Fig. 3 As can be seen that TWS service is realized by security scanning systems and common gateway interface CGI test macro, Appserver Service and Appplatform service are realized by back office interface test macro, and unshowned other service then in diagram It is realized according to the prior art.
3A), it is serviced if it is TWS, then parses the interface name and VHOST information of corresponding common gateway interface CGI, Then it calls security scanning systems to create corresponding CGI security sweep task by HTTP request, is then recorded from CGI manual scanning Nearest 3 (specific value can be determined according to actual usage scenario) items scanning record is inquired, while from CGI automatically scanning Record queries go out 2 scannings record most about the CGI parameter in a collection of automatically scanning recently, and (specific value can be with for generation 5 Determined according to actual usage scenario) item record to be scanned, to record duplicate removal to be scanned and corresponding HOST then is set, most To treated, record to be scanned is executed security sweep (the automatic execution CGI security sweep in illustrating) afterwards, after the end of scan, CGI security sweep reporting mail is sent to associated user.
Meanwhile one station publication the service for checking credentials can also by HTTP request call common gateway interface CGI test macro it is automatic Create test assignment service.After common gateway interface CGI test macro receives request, Auto-matching goes out the line of corresponding CGI Upper automatic test cases, and corresponding VHOST (needing to be traversed for all HOST needed to be implemented at this time) is set, then to processing Automatic test cases execute automatic test (the automatic execution CGI automatic test i.e. in diagram) on line afterwards, execute knot Shu Hou sends CGI automatic test reporting mail to associated user.
3B), it is serviced if it is Appserver, directly calls back office interface test macro to automatically create by HTTP request Test assignment connects service.Upon receiving a request, Auto-matching goes out on line corresponding with package informatin certainly back office interface test macro Dynamicization test case, and corresponding HOST (needing to be traversed for all HOST needed to be implemented at this time) is set, then to treated Automatic test cases execute automatic test (the automatic execution back office interface automatic test i.e. in diagram) on line, execute knot Shu Hou sends back office interface automatic test reporting mail to associated user.
It should be noted that can also be straight according to the manual service list for including in package informatin in other usage scenarios It connects and determines automatic test cases on line corresponding with package informatin.
3C), it is serviced if it is Appplatform, directly calls back office interface test macro to create automatically by HTTP request It builds test assignment and connects service.Upon receiving a request, Auto-matching goes out on line corresponding with package informatin back office interface test macro Automatic test cases, and corresponding HOST (needing to be traversed for all HOST needed to be implemented at this time) is set, then to processing after Line on automatic test cases execute automatic test (i.e. diagram in automatic execution back office interface automatic test), execute After, back office interface automatic test reporting mail is sent to associated user.
It should be noted that can also be according to the manual command word list for including in package informatin in other usage scenarios Directly determine out automatic test cases on line corresponding with package informatin.
Therefore, it is of the invention a little or beneficial effect includes: because calling directly correspondence using according to the package informatin of publication Interconnected system, and in the technological means of destination server implementation of test cases, so overcoming in the prior art in verifying The technical issues of existing coverage is small in the process, time-consuming and low efficiency, and then reach and increase coverage and improve The technical effect for the treatment of effeciency.Go out the corresponding test case of package informatin by Auto-matching and execute, greatly increases verifying The coverage area of efficiency and test case, meanwhile, the workload that user executes test is greatly reduced, is asked to improve discovery The probability of topic.
Fig. 4 is a kind of schematic diagram of the main modular of the device of software test according to an embodiment of the present invention.It can by Fig. 4 Know, a kind of main modular of the device 400 of software test of the embodiment of the present invention includes: calling module 401, processing module 402 And confirmation module 403.Wherein:
Calling module 401, the package informatin for being issued according to software package manager RPM call pass corresponding with package informatin Connection system, package informatin includes destination server IP address;Processing module 402 is being associated with for being based on destination server IP address Test case corresponding with package informatin is executed to destination server in system;Confirmation module 403, the result for being tested.
Optionally, interconnected system of the embodiment of the present invention include security scanning systems, common gateway interface CGI test macro with And back office interface test macro.
Optionally, the package informatin of the embodiment of the present invention further includes being packaged path;Device 400 further includes determining module (in figure It is not shown), be used for: according to the package informatin received, analysis is packaged the content in path, to determine the type of package informatin;Processing Module is specifically used for: according to the corresponding type of package informatin, calling interconnected system corresponding with type.
Optionally, the processing module 402 of the embodiment of the present invention is used to obtain the interface name and VHOST of the CGI of package informatin Information;The security scanning systems in interconnected system are called, record to be scanned are obtained from scanning record, then to record to be scanned HOST information is set, then the record to be scanned for being provided with the HOST information is scanned;Call the CGI test in interconnected system System matches test case corresponding with CGI test macro, VHOST information then is arranged to test case, then to being provided with The test case of the VHOST information is tested.
Optionally, the processing module 402 of the embodiment of the present invention is used for: the back office interface in interconnected system being called to test system System, matches test case according to package informatin, HOST information then is arranged to test case, then to being provided with the HOST information Test case is tested.
It optionally, further include packet name, publisher's id information and issuing time in the package informatin of the embodiment of the present invention;According to Packet name matches test case corresponding with package informatin;After the result tested the step of, further includes: according to publisher ID Result with timestamp is sent to publisher by information and issuing time.
It is of the invention a little or beneficial effect includes: because calling directly corresponding association using according to the package informatin of publication System, and in the technological means of destination server implementation of test cases, so overcoming in the prior art during verifying Existing coverage is small, is easy to appear mistake or omits, the technical issues of time-consuming and low efficiency, and then reaches to increase and cover Cover degree and the technical effect for improving treatment effeciency.Go out the corresponding test case of package informatin by Auto-matching and execute, significantly Ground improves the coverage area of verification efficiency, accuracy and test case, meanwhile, greatly reduce the work that user executes test It measures, to improve the probability found the problem.
Fig. 5 is shown can be using the method for testing software of the embodiment of the present invention or the exemplary system of software testing device Framework 500.
As shown in figure 5, system architecture 500 may include terminal device 501,502,503, network 504 and server 505. Network 504 between terminal device 501,502,503 and server 505 to provide the medium of communication link.Network 504 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 501,502,503 and be interacted by network 504 with server 505, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 501,502,503 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 501,502,503 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 505 can be to provide the server of various services, such as utilize terminal device 501,502,503 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath -- merely illustrative) feed back to terminal device.
It should be noted that method for testing software provided by the embodiment of the present invention is generally executed by server 505, accordingly Ground, software testing device are generally positioned in server 505.
It should be understood that the number of terminal device, network and server in Fig. 5 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 6 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 609, and/or from can Medium 611 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 601, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet Include calling module, processing module and confirmation module.Wherein, the title of these modules is not constituted under certain conditions to the mould The restriction of block itself.
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes: the package informatin issued according to software package manager RPM, calls interconnected system corresponding with package informatin, Bao Xin Breath includes destination server IP address;Based on destination server IP address, destination server is executed and wrapped in interconnected system The corresponding test case of information;The result tested.
Technical solution according to an embodiment of the present invention, because calling directly corresponding association using the package informatin according to publication System, and in the technological means of destination server implementation of test cases, so overcoming in the prior art during verifying Existing coverage is small, is easy to appear mistake or omits, the technical issues of time-consuming and low efficiency, and then reaches to increase and cover Cover degree and the technical effect for improving treatment effeciency.Go out the corresponding test case of package informatin by Auto-matching and execute, significantly Ground improves the coverage area of verification efficiency, accuracy and test case, meanwhile, greatly reduce the work that user executes test It measures, to improve the probability found the problem.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (14)

1. a kind of method of software test characterized by comprising
According to the package informatin that software package manager RPM is issued, interconnected system corresponding with the package informatin, the package informatin are called Including destination server IP address;
Based on the destination server IP address, destination server is executed in the interconnected system corresponding to the package informatin Test case;
The result tested.
2. the method according to claim 1, wherein the interconnected system includes security scanning systems, public network Close interface CGI test macro and back office interface test macro.
3. the method according to claim 1, wherein
The package informatin further includes being packaged path;
Before the step of calling interconnected system corresponding with the package informatin, further includes: according to the package informatin received, The content for being packaged path is analyzed, to determine the type of the package informatin;
The step of calling interconnected system corresponding with the package informatin include: according to the corresponding type of the package informatin, call and The corresponding interconnected system of the type.
4. the method according to claim 1, wherein to destination server execution and institute in the interconnected system The step of stating package informatin corresponding test case include:
Obtain the interface name and VHOST information of the CGI of the package informatin;
Call the security scanning systems in the interconnected system, from scanning record in obtain record to be scanned, then to it is described to Scanning record setting HOST information, then the record to be scanned for being provided with the HOST information is scanned;
The CGI test macro in the interconnected system is called, matches test case corresponding with the CGI test macro, so VHOST information is arranged to the test case afterwards, then the test case for being provided with the VHOST information is tested.
5. the method according to claim 1, wherein to destination server execution and institute in the interconnected system The step of stating package informatin corresponding test case include:
The back office interface test macro in the interconnected system is called, test case is matched according to package informatin, then to described HOST information is arranged in test case, then tests the test case for being provided with the HOST information.
6. the method according to claim 1, wherein
It further include packet name, publisher's id information and issuing time in the package informatin;
Test case corresponding with the package informatin is matched according to the packet name;
After the result tested the step of, further includes: according to publisher's id information and the issuing time, by band The result of having time stamp is sent to publisher.
7. a kind of device of software test characterized by comprising
Calling module, the package informatin for being issued according to software package manager RPM call association system corresponding with the package informatin System, the package informatin includes destination server IP address;
Processing module, for be based on the destination server IP address, in the interconnected system to destination server execute with The corresponding test case of package informatin;
Confirmation module, the result for being tested.
8. device according to claim 7, which is characterized in that the interconnected system includes security scanning systems, public network Close interface CGI test macro and back office interface test macro.
9. device according to claim 7, which is characterized in that
The package informatin further includes being packaged path;
Described device further includes determining module, is used for: according to the package informatin received, analyzing the interior of the packing path Hold, to determine the type of the package informatin;
The processing module is specifically used for: according to the corresponding type of the package informatin, calling association system corresponding with the type System.
10. device according to claim 7, which is characterized in that the processing module is used for:
Obtain the interface name and VHOST information of the CGI of the package informatin;
Call the security scanning systems in the interconnected system, from scanning record in obtain record to be scanned, then to it is described to Scanning record setting HOST information, then the record to be scanned for being provided with the HOST information is scanned;
The CGI test macro in the interconnected system is called, matches test case corresponding with the CGI test macro, so VHOST information is arranged to the test case afterwards, then the test case for being provided with the VHOST information is tested.
11. device according to claim 7, which is characterized in that the processing module is used for:
The back office interface test macro in the interconnected system is called, test case is matched according to package informatin, then to described HOST information is arranged in test case, then tests the test case for being provided with the HOST information.
12. device according to claim 7, which is characterized in that
It further include packet name, publisher's id information and issuing time in the package informatin;
Test case corresponding with the package informatin is matched according to the packet name;
After the result tested the step of, further includes: according to publisher's id information and the issuing time, by band The result of having time stamp is sent to publisher.
13. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 6 is realized when row.
CN201710842280.4A 2017-09-18 2017-09-18 Software testing method and device Active CN109522202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710842280.4A CN109522202B (en) 2017-09-18 2017-09-18 Software testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710842280.4A CN109522202B (en) 2017-09-18 2017-09-18 Software testing method and device

Publications (2)

Publication Number Publication Date
CN109522202A true CN109522202A (en) 2019-03-26
CN109522202B CN109522202B (en) 2022-03-04

Family

ID=65767510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710842280.4A Active CN109522202B (en) 2017-09-18 2017-09-18 Software testing method and device

Country Status (1)

Country Link
CN (1) CN109522202B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992521A (en) * 2019-04-19 2019-07-09 北京金山云网络技术有限公司 A kind of test result notification method, device, electronic equipment and storage medium
CN110798445A (en) * 2019-09-12 2020-02-14 中国平安财产保险股份有限公司 Public gateway interface testing method and device, computer equipment and storage medium
CN112019544A (en) * 2020-08-28 2020-12-01 支付宝(杭州)信息技术有限公司 Network interface security scanning method, device and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042673A (en) * 2007-04-20 2007-09-26 北京航空航天大学 Software testing system and testing method
CN103685138A (en) * 2012-08-30 2014-03-26 卓望数码技术(深圳)有限公司 Method and system for authenticating application software of Android platform on mobile internet
CN103970614A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Service testing method and device
US20140245067A1 (en) * 2013-02-26 2014-08-28 International Business Machines Corporation Using linked data to determine package quality
CN104021070A (en) * 2013-03-01 2014-09-03 腾讯科技(深圳)有限公司 Method, device and system for testing intelligent terminal software packages
US9274935B1 (en) * 2013-01-15 2016-03-01 Google Inc. Application testing system with application programming interface
CN105446718A (en) * 2014-08-19 2016-03-30 龙芯中科技术有限公司 Software management method and system based on Red Hat Package Manager
CN106775730A (en) * 2016-12-21 2017-05-31 深圳Tcl数字技术有限公司 Program dissemination method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042673A (en) * 2007-04-20 2007-09-26 北京航空航天大学 Software testing system and testing method
CN103685138A (en) * 2012-08-30 2014-03-26 卓望数码技术(深圳)有限公司 Method and system for authenticating application software of Android platform on mobile internet
US9274935B1 (en) * 2013-01-15 2016-03-01 Google Inc. Application testing system with application programming interface
CN103970614A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Service testing method and device
US20140245067A1 (en) * 2013-02-26 2014-08-28 International Business Machines Corporation Using linked data to determine package quality
CN104021070A (en) * 2013-03-01 2014-09-03 腾讯科技(深圳)有限公司 Method, device and system for testing intelligent terminal software packages
CN105446718A (en) * 2014-08-19 2016-03-30 龙芯中科技术有限公司 Software management method and system based on Red Hat Package Manager
CN106775730A (en) * 2016-12-21 2017-05-31 深圳Tcl数字技术有限公司 Program dissemination method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992521A (en) * 2019-04-19 2019-07-09 北京金山云网络技术有限公司 A kind of test result notification method, device, electronic equipment and storage medium
CN110798445A (en) * 2019-09-12 2020-02-14 中国平安财产保险股份有限公司 Public gateway interface testing method and device, computer equipment and storage medium
CN110798445B (en) * 2019-09-12 2022-06-10 中国平安财产保险股份有限公司 Public gateway interface testing method and device, computer equipment and storage medium
CN112019544A (en) * 2020-08-28 2020-12-01 支付宝(杭州)信息技术有限公司 Network interface security scanning method, device and system

Also Published As

Publication number Publication date
CN109522202B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN109446071A (en) Interface test method, interface test device, electronic equipment and storage medium
CN103428166B (en) Many SNS platform unified access method of third-party application and system
CN106302445B (en) Method and apparatus for handling request
CN110310034A (en) A kind of service orchestration applied to SaaS, business flow processing method and apparatus
CN109426593A (en) The method and apparatus of automatic evaluation system performance
CN109254739A (en) file printing method, device and system
CN108574604A (en) test method and device
CN110798445B (en) Public gateway interface testing method and device, computer equipment and storage medium
CN109002395A (en) A kind of code coverage management method and device
CN110198248A (en) The method and apparatus for detecting IP address
CN109347921A (en) A kind for the treatment of method and apparatus of digital certificate business
CN109284198A (en) A kind of method and apparatus verifying data
CN109522202A (en) A kind of method and apparatus of software test
US11336555B2 (en) Network segmentation effectiveness system and method
CN108073506A (en) Test method and device
CN108958711A (en) A kind of implementation method and device of interface platform
CN109639630A (en) A kind of terminal prot managing and control system and management-control method
CN110493239A (en) The method and apparatus of authentication
CN109005208A (en) Method and apparatus for pushed information
CN111241504B (en) Identity verification method, device, electronic equipment and storage medium
CN105512020B (en) Test method and device
CN109348472B (en) OTA (over the air) upgrading method and system based on single-point pushing
CN110098921A (en) Verification code generation method, device, application service end and system
CN110493291A (en) A kind of method and apparatus handling HTTP request
CN109002389A (en) The method and apparatus of page automatic test

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
GR01 Patent grant
GR01 Patent grant