CN108763047A - Method, apparatus, equipment and the storage medium that SCF is tested for the property - Google Patents

Method, apparatus, equipment and the storage medium that SCF is tested for the property Download PDF

Info

Publication number
CN108763047A
CN108763047A CN201810556219.8A CN201810556219A CN108763047A CN 108763047 A CN108763047 A CN 108763047A CN 201810556219 A CN201810556219 A CN 201810556219A CN 108763047 A CN108763047 A CN 108763047A
Authority
CN
China
Prior art keywords
scf
tested
services
test
property
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
CN201810556219.8A
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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 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 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810556219.8A priority Critical patent/CN108763047A/en
Publication of CN108763047A publication Critical patent/CN108763047A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3414Workload generation, e.g. scripts, playback

Abstract

The invention discloses a kind of method, apparatus being tested for the property to SCF, equipment and storage mediums, including:Create the test function collection for being tested SCF services;Control SCF clients are established remote service with tested SCF services according to the interface function collection of tested SCF services and are connect;The tested SCF services that connection status is in by test function set pair are tested, to obtain test script;Test script is imported into testing tool, tested SCF services are tested for the property using testing tool.Beneficial effects of the present invention are that the present invention realizes the performance test serviced SCF by way of test script binding test tool, ensure that the performance quality of SCF services, and performance quality guarantee is provided for the upstream service of SCF services.

Description

Method, apparatus, equipment and the storage medium that SCF is tested for the property
Technical field
The present invention relates to field of computer technology more particularly to a kind of to SCF (Service Communication Foundation, communication for service basis) method, apparatus, equipment and the storage medium that are tested for the property.
Background technology
In the prior art, various application program App carry daily lives nearly ten million day, and the service feature in App is just shown Particularly important.We were directed to the performance test of App in the past, and the interface capability more focused on hypertext transfer protocol http is It is no to meet standard.Often ignore underlying services and meets performance test standard, the business serviced such as communication for service basis SCF Can, if the uniform resource position mark URL in http interfaces is not ready for or simple needs to test SCF service performances In the case of, this just needs the performance test for realizing SCF services, however, server-side performance test is connect to http in the prior art What mouth carried out, it is not carried out the performance test serviced SCF, it cannot be guaranteed that SCF services meet performance test standard.
Invention content
The embodiment of the present invention provides a kind of method, apparatus being tested for the property to SCF, equipment and storage medium, to Solution is not carried out the performance test serviced SCF in the prior art, it cannot be guaranteed that SCF services meet asking for performance test standard Topic.
In a first aspect, the embodiment of the present invention provides a kind of method being tested for the property to SCF, including:
Create the test function collection for being tested SCF services;
It is long-range according to the interface function collection of the tested SCF services and the tested SCF services foundation to control SCF clients Service connection;
The tested SCF services that connection status is in by the test function set pair are tested, to be tested Script;
The test script is imported into testing tool, performance is carried out to the tested SCF services using the testing tool Test.
Optionally, after the test function collection for creating tested SCF services, further include:
The uniform resource locator that the tested SCF services that remote service is connect are carried out with the SCF clients is set URL。
Optionally, interface function collection and the tested SCF of the control SCF clients according to the tested SCF services Remote service connection is established in service, including:
URL of the SCF clients according to the tested SCF services is controlled, the Service name of the tested SCF services is obtained Collection of functions is realized with interface;
The SCF clients are controlled to be obtained and the Service name and interface realization function according to the interface function collection Collect the corresponding tested SCF services, and establishes remote service with the tested SCF services of acquisition and connect.
Optionally, the tested SCF services that connection status is in by the test function set pair are tested, Including:
The tested SCF services in connection status are initiated by the required parameter of the test function concentrated setting Test request initializes the test data that the test function is concentrated and using the required parameter to the institute in connection status Tested SCF services are stated to be tested.
Optionally, further include:
The public jar packets of the tested SCF services are added, and the interface service of the addition tested SCF services relies on jar Packet, the interface function collection reference rely on jar packets from the interface service.
Optionally, further include:
It is created as the SCF configuration files that the tested SCF service providing datas library is supported;
The path of the SCF configuration files is set;
The path that the SCF configuration files are read by the SCF clients makes described tested in connection status The support of database described in SCF service acquisitions.
Optionally, when the test function collection for creating tested SCF services, including:
According to the testing tool, the test function collection is inherited to the abstract function collection in the testing tool.
Second aspect, the embodiment of the present invention provide a kind of device being tested for the property to SCF, including:
Creation module, the test function collection for creating tested SCF services;
Control module is tested according to the interface function collection of the tested SCF services with described for controlling SCF clients Remote service connection is established in SCF services;
Test module, the tested SCF services for being in connection status by the test function set pair are surveyed Examination, to obtain test script;
Import modul, for the test script to be imported testing tool, using the testing tool to the tested SCF Service is tested for the property.
Optionally, further include:
Setup module, for the system for carrying out the tested SCF services that remote service is connect with the SCF clients to be arranged One Resource Locator URL.
Optionally, the control module, including:
Acquiring unit, the URL for controlling the SCF clients according to the tested SCF services, obtains described tested The Service name and interface of SCF services realize collection of functions;
Connection unit obtains and the Service name and institute for controlling the SCF clients according to the interface function collection It states interface and realizes the corresponding tested SCF services of collection of functions, and establish remote service with the tested SCF services of acquisition and connect It connects.
Optionally, the test module is specifically used for:
The tested SCF services in connection status are initiated by the required parameter of the test function concentrated setting Test request initializes the test data that the test function is concentrated and using the required parameter to the institute in connection status Tested SCF services are stated to be tested.
Optionally, further include:
Add module, the public jar packets for adding the tested SCF services, and the addition tested SCF services connect Oral business relies on jar packets, and the interface function collection reference relies on jar packets from the interface service.
Optionally, the creation module is additionally operable to, and is created as the SCF that the tested SCF service providing datas library is supported and is matched Set file;
The setup module is additionally operable to, and the path of the SCF configuration files is arranged;
Described device further includes:
Read module, the path for reading the SCF configuration files by the SCF clients make in connection shape The support of database described in the tested SCF service acquisitions of state.
Optionally, further include:
Module is inherited, for according to the testing tool, the test function collection to be inherited to the pumping in the testing tool Image function collection.
The third aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, the step of computer program realizes following method when being executed by processor:
Create the test function collection for being tested SCF services;
It is long-range according to the interface function collection of the tested SCF services and the tested SCF services foundation to control SCF clients Service connection;
The tested SCF services that connection status is in by the test function set pair are tested, to be tested Script;
The test script is imported into testing tool, performance is carried out to the tested SCF services using the testing tool Test.
Fourth aspect, the embodiment of the present invention provide a kind of computer equipment, and the computer equipment includes:Memory, place It manages device and is stored in the computer program that can be run on the memory and on the processor, the computer program is by institute State the step of realizing following method when processor executes:
Create the test function collection for being tested SCF services;
It is long-range according to the interface function collection of the tested SCF services and the tested SCF services foundation to control SCF clients Service connection;
The tested SCF services that connection status is in by the test function set pair are tested, to be tested Script;
The test script is imported into testing tool, performance is carried out to the tested SCF services using the testing tool Test.
The embodiment of the present invention has the beneficial effect that:
The embodiment of the present invention realizes the performance test serviced SCF by way of test script binding test tool, The performance quality that ensure that SCF services provides performance quality guarantee for the upstream service of SCF services.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the flow chart for the method being tested for the property to SCF that first embodiment of the invention provides;
Fig. 2 is the flow chart for the method being tested for the property to SCF that second embodiment of the invention provides;
Fig. 3 is the flow chart for the method being tested for the property to SCF that third embodiment of the invention provides;
Fig. 4 is the structure diagram for the device being tested for the property to SCF that the four, the 5th embodiments of the invention provide.
In figure:1- creation modules, 2- add modules, 3- control modules, 31- acquiring units, 32- connection units, 4- settings Module, 5- test modules, 6- import moduls, 7- read modules, 8- inherit module.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
First embodiment of the invention provides a kind of method being tested for the property to SCF, as shown in Figure 1, including following tool Body step:
S11 creates the test function collection for being tested SCF services;
In alternative embodiment of the present invention, SCF is to provide asynchronous, multi-protocols, event-driven with high-performance, high reliability Web application frame, including SCF service containers, SCF clients, SCF serializing and SCF transmitted data protocols;This hair Bright alternative embodiment can create the test function collection for being tested SCF services by Integrated Development Tool Eclipse.
S12, control SCF clients establish remote service according to the interface function collection of tested SCF services with tested SCF services Connection;Optionally, interface function collection can exist in the form of interface class, at this point, can remotely be connect according to the name acquiring of interface class The tested SCF of mouth is serviced and is established connection.
S13, the tested SCF services that connection status is in by test function set pair are tested, to obtain test script;
In alternative embodiment of the present invention, when testing tested SCF services, in order to allow tested SCF service acquisitions number According to the support in library, it is created as tested SCF services under the maven engineerings also created in Integrated Development Tool Eclipse, number is provided The SCF configuration files supported according to library;And the path of SCF configuration files is set;SCF configuration files are read by SCF clients Path makes the support of the tested SCF service acquisitions database in connection status.
Test script is imported testing tool by S14, is tested for the property to tested SCF services using testing tool.
The embodiment of the present invention can be not ready in hypertext transfer protocol http interfaces URL or simple need to test In the case of SCF service performances, so that it may be realized by the test script binding test tool of acquisition and be surveyed to the performance that SCF is serviced Examination, to ensure that SCF services disclosure satisfy that performance test standard, the upstream service performance quality for SCF services provides guarantor Card.
Second embodiment of the invention provides a kind of method being tested for the property to SCF, as shown in Fig. 2, including following tool Body step:
S21 creates the test function collection for being tested SCF services;
In an alternate embodiment of the present invention where, by creating maven engineerings in Integrated Development Tool Eclipse, Packet name Group Id and packet package will be consistent with tested SCF services when creating maven engineerings, be created under maven engineerings Build the test function collection of tested SCF services.
Optionally, when creating test function collection, according to testing tool, by the pumping in test function collection Inherit Testing tool Image function collection, optionally, test function collection can exist in the form of test class, and abstract function collection can be in the form of abstract class In the presence of, for example, testing tool be performance testing tool jmeter tools when, will test Similar integral jmeter tools abstract class AbstractJavaSamplerClient, meanwhile, in order to allow test script to be tested under clean glitch-free test environment, The result data of test script operation is determined in test class.
The uniform resource position mark URL that the tested SCF services that remote service is connect are carried out with SCF clients is arranged in S22;
For example, setting the tested SCF URL serviced to " tcp://mycircle/CircleInfoService ", it is practical It in engineering, can be flexibly arranged according to actual demand, at this unique restriction do not done to the URL for being tested SCF services.
S23, control SCF clients obtain the Service name for being tested SCF services and interface are real according to the URL of tested SCF services Existing collection of functions;Optionally, interface realizes that collection of functions can exist in the form of interface realizes class, and the embodiment of the present invention is not done only herein One limits.
S24, control SCF clients obtain according to interface function collection and realize that collection of functions is corresponding tested with Service name and interface SCF is serviced, and is established remote service with the tested SCF services of acquisition and connect;Optionally, interface function collection can be with the shape of interface class Formula exists, at this point, can be gone to obtain tested SCF services according to interface class name, interface realizes that collection of functions can realize class with interface Form exists, and the embodiment of the present invention realizes that the existence form of collection of functions does not do unique restriction at this to interface collection of functions and interface.
S25, the tested SCF services that connection status is in by test function set pair are tested, to obtain test script; Optionally, in the presence of test function collection is in the form of test class, tested SCF services are tested by test class.
In alternative embodiment of the present invention, when testing tested SCF services, in order to allow tested SCF service acquisitions number According to the support in library, it is created as tested SCF services under the maven engineerings also created in Integrated Development Tool Eclipse, number is provided The SCF configuration files supported according to library;And the path of SCF configuration files is set;SCF configuration files are read by SCF clients Path makes the support of the tested SCF service acquisitions database in connection status.
Test script is imported testing tool by S26, is tested for the property to tested SCF services using testing tool;It is optional , when testing tool is jmeter tools, test script is imported into jmeter tools, using jmeter tools come to being tested SCF Service is tested for the property.
Obviously, the embodiment of the present invention realizes the property serviced SCF by the way that the test script of acquisition is imported testing tool It can test, to ensure that SCF services disclosure satisfy that performance test standard, the upstream service performance quality for SCF services provides Ensure.
Third embodiment of the invention provides a kind of method being tested for the property to SCF, as shown in figure 3, including following tool Body step:
S31 creates the test function collection for being tested SCF services;
In an alternate embodiment of the present invention where, by creating maven engineerings in Integrated Development Tool Eclipse, Packet name Group Id and packet package will be consistent with tested SCF services when creating maven engineerings, be created under maven engineerings Build the test function collection of SCF services.
Optionally, when creating test function collection, according to testing tool, by the pumping in test function collection Inherit Testing tool Image function collection, optionally, test function collection can exist in the form of test class, and abstract function collection can be in the form of abstract class In the presence of, for example, testing tool be performance testing tool jmeter tools when, will test Similar integral jmeter tools abstract class AbstractJavaSamplerClient, meanwhile, in order to allow test script to be tested under clean glitch-free test environment, The result data of test script operation is determined in test class.
The uniform resource position mark URL that the tested SCF services that remote service is connect are carried out with SCF clients is arranged in S32;
For example, setting the tested SCF URL serviced to " tcp://mycircle/CircleInfoService ", it is practical It in engineering, can be flexibly arranged according to actual demand, at this unique restriction do not done to the URL for being tested SCF services.
S33, control SCF clients obtain the Service name for being tested SCF services and interface are real according to the URL of tested SCF services Existing collection of functions.
S34, control SCF clients obtain according to interface function collection and realize that collection of functions is corresponding tested with Service name and interface SCF is serviced, and is established remote service with the tested SCF services of acquisition and connect.
S35 initiates test by the required parameter of test function concentrated setting to the tested SCF services in connection status Request, test data in initialization test collection of functions and using required parameter to the tested SCF in connection status service into Row test, clears up all data after test, to obtain test script;
Optionally, in the presence of test function collection is in the form of test class, tested SCF services are surveyed by test class Examination.
Optionally, in order to facilitate the reference of dependence test information, the present invention also adds the public jar packets of tested SCF services, And addition is tested the interface service dependence jar packets of SCF services;In alternative embodiment of the present invention, Integrated Development Tool can be passed through Eclipse creates project management tool maven engineerings, is added under the pom.xml files under maven engineerings and is tested SCF services Public dependence jar packets and addition be tested SCF service interface service rely on jar packets.Interface function collection is quoted from interface service Jar packets are relied on, public dependence jar packets are public dependence jar packets when SCF is serviced on owning application, public dependence jar packets Reference is provided for test script to support, to facilitate test script to quote.
In alternative embodiment of the present invention, when testing tested SCF services, in order to allow tested SCF service acquisitions number According to the support in library, it is created as tested SCF services under the maven engineerings also created in Integrated Development Tool Eclipse, number is provided The SCF configuration files supported according to library;And the path of SCF configuration files is set, for example, set the path of configuration file to "/ Opt/scfkey.key ", the path being arranged herein is intended merely to more clearly illustrate the path of configuration file position, in reality In the engineering of border, path can be flexibly arranged according to actual demand, not do unique restriction herein;It is read by SCF clients The path for taking SCF configuration files makes the support of the tested SCF service acquisitions database in connection status.
Test script is imported testing tool by S36, is tested for the property to tested SCF services using testing tool;It is optional , when testing tool is jmeter tools, test script is imported into jmeter tools, using jmeter tools come to being tested SCF Service is tested for the property.
Fourth embodiment of the invention provides a kind of device being tested for the property to SCF, as shown in figure 4, including:
Creation module 1, the test function collection for creating tested SCF services;
Control module 3 is built according to the interface function collection of tested SCF services with tested SCF services for controlling SCF clients Vertical remote service connection;
Test module 5, the tested SCF services for being in connection status by test function set pair are tested, to obtain Obtain test script;
In alternative embodiment of the present invention, when testing tested SCF services, in order to allow tested SCF service acquisitions number According to the support in library, the SCF configuration files that tested SCF service providing datas library is supported also are created as by creation module 1;And by setting Set the path that SCF configuration files are arranged in module 4;Read module 7 reads the path of SCF configuration files by SCF clients, makes place In the support of the tested SCF service acquisitions database of connection status.
Import modul 6 services progressive using testing tool for test script to be imported testing tool to tested SCF It can test.
Obviously, the embodiment of the present invention can be not ready in http interfaces URL or the simple SCF that needs to test is serviced In the case of performance, the test script binding test tool obtained after being tested by test module 4 realizes the performance serviced SCF Test, to ensure that SCF services disclosure satisfy that performance test standard, the upstream service performance quality for SCF services provides Ensure.
Fifth embodiment of the invention provides a kind of device being tested for the property to SCF, as shown in figure 4, including:
Creation module 1, the test function collection for creating tested SCF services;
Testing tool is to rely on to the performance test for being tested SCF services due to being finally completed, optionally, wound Block 1 is modeled when creating test function collection, it, will be in test function collection Inherit Testing tool by succession module 8 according to testing tool Abstract function collection.
Control module 3 is built according to the interface function collection of tested SCF services with tested SCF services for controlling SCF clients Vertical remote service connection;
Optionally, further include:
Setup module 4, for the unified resource for carrying out the tested SCF services that remote service is connect with SCF clients to be arranged Finger URL URL.
Optionally, control module 3, including:
Acquiring unit 31, the URL for controlling the tested SCF services that SCF clients are arranged according to setup module 4, obtains The Service name and interface of tested SCF services realize collection of functions;
Connection unit 32 obtains and Service name and interface realization function for controlling SCF clients according to interface function collection Collect corresponding tested SCF services, and establishes remote service with the tested SCF services of acquisition and connect.
After realizing the connection that SCF clients are serviced with tested SCF by the connection unit 32 in control module 3, by testing Module 5 initiates test request by the required parameter of test function concentrated setting to the tested SCF services in connection status, just The test data of beginningization test function concentration simultaneously tests the tested SCF services in connection status using required parameter, To obtain test script;
Import modul 6, the test script for obtaining test module 5 imports testing tool, using testing tool to quilt SCF services are surveyed to be tested for the property.
Optionally, creation module 1 is additionally operable to, and is created as the SCF configuration files that tested SCF service providing datas library is supported;
Setup module 4 is additionally operable to, and the path of SCF configuration files is arranged;
Optionally, further include:
Read module 7, the path for reading SCF configuration files by SCF clients make place to obtain configuration file In the support of the tested SCF service acquisitions database of connection status.
Optionally, tested for adding the invention also includes add module 2 in order to facilitate the reference of dependence test information The public jar packets that SCF is serviced, and addition are tested the interface service dependence jar packets of SCF services, and interface function collection is quoted from interface Service relies on jar packets, and public dependence jar packets are public dependence jar packets when SCF is serviced on owning application, public dependence Jar packets provide reference for test script and support, to facilitate test script to quote.
The embodiment of the present invention is realized by way of the test script binding test tool that test module 5 obtains to SCF The performance test of service ensure that the performance quality of SCF services, and performance quality guarantee is provided for the upstream service of SCF services.
Sixth embodiment of the invention, the embodiment of the present invention be on the basis of above-mentioned five embodiments, test function collection with The form of test class exists, interface function collection exists in the form of interface class and interface realizes that collection of functions realizes the shape of class with interface In the presence of formula, test script is realized by Integrated Development Tool Eclipse, realizes the property serviced SCF using jmeter tools For capable of testing, an application example of the invention is introduced in conjunction with attached drawing 1-3.
The embodiment of the present invention creates maven engineerings by Integrated Development Tool Eclipse, and creates and be tested SCF services Configuration file, at this point, packet name Group Id will be consistent with packet package with tested SCF services, meanwhile, in pom.xml texts The interface service dependence jar packets for being tested SCF services are added under part, and addition is tested the public dependence jar packets of SCF services, it is public It relies on jar packets and provides reference support for test script, to facilitate test script to quote, wherein public dependence jar packets are SCF Public dependence jar packets when servicing on owning application.
Then, the test class tested being tested SCF services is created, since we are finally completed to tested SCF services Performance test be to rely on testing tool, and the testing tool of the embodiment of the present invention is using performance testing tool Jmeter tools, therefore the abstract class of Similar integral jmeter tools will be tested when establishment test class AbstractJavaSamplerClient.Then the result data that the script defined in test class is run, and to tested SCF The required parameter of test request is initiated in service.In order to make test class test tested SCF services, need for tested SCF clothes Business provides database and supports, matches for this purpose, to be also created as the SCF that tested SCF service providing datas library is supported under maven engineerings Set file.The path of the configuration file of tested SCF services, the URL of tested SCF services are defined, then SCF clients are set, URL of the SCF clients according to tested SCF services is controlled, the Service name for being tested SCF services is obtained and interface realizes class, SCF client End can rely on interface class (specifically can be according to title of the interface class) acquisition configured in jar packets and Service name according to interface service Tested SCF services corresponding with interface realization class, and establish remote service with the tested SCF services of acquisition and connect.SCF clients The path for reading configuration file obtains configuration file, to make the branch of the tested SCF service acquisitions database in connection status It holds.Test request is initiated to the tested SCF services in connection status by the required parameter being arranged in test class, initialization is surveyed Examination data simultaneously test the tested SCF services in connection status using required parameter, to all data after test It is cleared up, obtains test script.The test script of acquisition is imported into jmeter tools, using jmeter tools to tested SCF services are tested for the property.
The embodiment of the present invention is realized by way of test script binding performance testing tool jmeter tools takes SCF The performance test of business ensure that the performance quality of SCF services, and performance quality guarantee is provided for the upstream service of SCF services.
Seventh embodiment of the invention provides a kind of computer readable storage medium, is stored on computer readable storage medium Computer program, the step of following method is realized when computer program is executed by processor:
S11 creates the test function collection for being tested SCF services;
S12, control SCF clients establish remote service according to the interface function collection of tested SCF services with tested SCF services Connection;
S13, the tested SCF services that connection status is in by test function set pair are tested, to obtain test script;
Test script is imported testing tool by S14, is tested for the property to tested SCF services using testing tool.
The specific embodiment process of above method step can be found in second and arrive 3rd embodiment, and the present embodiment is no longer heavy herein It repeats again.
Eighth embodiment of the invention provides a kind of computer equipment, and computer equipment includes:Memory, processor and storage On a memory and the computer program that can run on a processor, following method is realized when computer program is executed by processor The step of:
S11 creates the test function collection for being tested SCF services;
S12, control SCF clients establish remote service according to the interface function collection of tested SCF services with tested SCF services Connection;
S13, the tested SCF services that connection status is in by test function set pair are tested, to obtain test script;
Test script is imported testing tool by S14, is tested for the property to tested SCF services using testing tool.
The specific embodiment process of above method step can be found in second and arrive 3rd embodiment, and the present embodiment is no longer heavy herein It repeats again.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including the control of several fingers is used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (16)

1. a kind of method being tested for the property to SCF, which is characterized in that including:
Create the test function collection for being tested SCF services;
Control SCF clients establish remote service according to the interface function collection of the tested SCF services with the tested SCF services Connection;
The tested SCF services that connection status is in by the test function set pair are tested, to obtain test script;
The test script is imported into testing tool, the tested SCF services are tested for the property using the testing tool.
2. the method being tested for the property as described in claim 1 to SCF, which is characterized in that described create is tested SCF services Test function collection after, further include:
The uniform resource position mark URL that the tested SCF services that remote service is connect are carried out with the SCF clients is set.
3. the method being tested for the property as claimed in claim 2 to SCF, which is characterized in that the control SCF client roots Remote service is established according to the interface function collection of the tested SCF services with the tested SCF services to connect, including:
URL of the SCF clients according to the tested SCF services is controlled, the Service name of the tested SCF services is obtained and is connect Cause for gossip shows collection of functions;
The SCF clients are controlled to be obtained and the Service name and interface realization collection of functions pair according to the interface function collection The tested SCF services answered, and establish remote service with the tested SCF services of acquisition and connect.
4. the method being tested for the property as described in claim 1 to SCF, which is characterized in that described to pass through the test letter Manifold tests the tested SCF services in connection status, including:
Test is initiated to the tested SCF services in connection status by the required parameter of the test function concentrated setting Request initializes the test data that the test function is concentrated and using the required parameter to the quilt in connection status SCF services are surveyed to be tested.
5. the method being tested for the property as described in claim 1 to SCF, which is characterized in that further include:
The public dependence jar packets of the tested SCF services are added, and the interface service of the addition tested SCF services relies on jar Packet, the interface function collection reference rely on jar packets from the interface service.
6. the method being tested for the property as described in claim 1 to SCF, which is characterized in that further include:
It is created as the SCF configuration files that the tested SCF service providing datas library is supported;
The path of the SCF configuration files is set;
The path that the SCF configuration files are read by the SCF clients makes the tested SCF clothes in connection status Business obtains the support of the database.
7. the method being tested for the property as described in claim 1 to SCF, which is characterized in that described create is tested SCF services Test function collection when, including:
According to the testing tool, the test function collection is inherited to the abstract function collection in the testing tool.
8. a kind of device being tested for the property to SCF, which is characterized in that including:
Creation module, the test function collection for creating tested SCF services;
Control module takes according to the interface function collection of the tested SCF services with the tested SCF for controlling SCF clients Remote service connection is established in business;
Test module, the tested SCF services for being in connection status by the test function set pair are tested, with Obtain test script;
Import modul services the tested SCF using the testing tool for the test script to be imported testing tool It is tested for the property.
9. the device being tested for the property as claimed in claim 8 to SCF, which is characterized in that further include:
Setup module, for the unified money for carrying out the tested SCF services that remote service is connect with the SCF clients to be arranged Source finger URL URL.
10. the device being tested for the property as claimed in claim 9 to SCF, which is characterized in that the control module, including:
Acquiring unit, the URL for controlling the SCF clients according to the tested SCF services, obtains the tested SCF clothes The Service name and interface of business realize collection of functions;
Connection unit is obtained and the Service name and described is connect according to the interface function collection for controlling the SCF clients Cause for gossip shows the corresponding tested SCF services of collection of functions, and establishes remote service with the tested SCF services of acquisition and connect.
11. the device being tested for the property as claimed in claim 8 to SCF, which is characterized in that the test module is specifically used In:
Test is initiated to the tested SCF services in connection status by the required parameter of the test function concentrated setting Request initializes the test data that the test function is concentrated and using the required parameter to the quilt in connection status SCF services are surveyed to be tested.
12. the device being tested for the property as claimed in claim 8 to SCF, which is characterized in that further include:
The interface clothes of add module, the public jar packets for adding the tested SCF services, and the addition tested SCF services Business relies on jar packets, and the interface function collection reference relies on jar packets from the interface service.
13. the device being tested for the property as claimed in claim 8 to SCF, which is characterized in that
The creation module is additionally operable to, and is created as the SCF configuration files that the tested SCF service providing datas library is supported;
The setup module is additionally operable to, and the path of the SCF configuration files is arranged;
Described device further includes:
Read module, the path for reading the SCF configuration files by the SCF clients make in connection status The support of database described in the tested SCF service acquisitions.
14. the device being tested for the property as claimed in claim 8 to SCF, which is characterized in that further include:
Module is inherited, for according to the testing tool, the test function collection to be inherited to the abstract letter in the testing tool Manifold.
15. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the step of method as described in any one of claim 1 to 7 is realized when the computer program is executed by processor.
16. a kind of computer equipment, which is characterized in that the computer equipment includes:It memory, processor and is stored in described It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor Now the step of method as described in any one of claim 1 to 7.
CN201810556219.8A 2018-05-31 2018-05-31 Method, apparatus, equipment and the storage medium that SCF is tested for the property Pending CN108763047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810556219.8A CN108763047A (en) 2018-05-31 2018-05-31 Method, apparatus, equipment and the storage medium that SCF is tested for the property

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810556219.8A CN108763047A (en) 2018-05-31 2018-05-31 Method, apparatus, equipment and the storage medium that SCF is tested for the property

Publications (1)

Publication Number Publication Date
CN108763047A true CN108763047A (en) 2018-11-06

Family

ID=64001991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810556219.8A Pending CN108763047A (en) 2018-05-31 2018-05-31 Method, apparatus, equipment and the storage medium that SCF is tested for the property

Country Status (1)

Country Link
CN (1) CN108763047A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760308A (en) * 2016-03-31 2016-07-13 网易(杭州)网络有限公司 Multi-client coordinated test method and device
CN106209503A (en) * 2016-06-28 2016-12-07 武汉斗鱼网络科技有限公司 RPC interface test method and system
EP3168802A1 (en) * 2015-11-13 2017-05-17 Fluke Corporation System and method for cloud-service asset management for portable computer test tools
CN106874188A (en) * 2016-12-30 2017-06-20 北京五八信息技术有限公司 Software interface test approach and device
CN107704398A (en) * 2017-11-01 2018-02-16 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3168802A1 (en) * 2015-11-13 2017-05-17 Fluke Corporation System and method for cloud-service asset management for portable computer test tools
CN105760308A (en) * 2016-03-31 2016-07-13 网易(杭州)网络有限公司 Multi-client coordinated test method and device
CN106209503A (en) * 2016-06-28 2016-12-07 武汉斗鱼网络科技有限公司 RPC interface test method and system
CN106874188A (en) * 2016-12-30 2017-06-20 北京五八信息技术有限公司 Software interface test approach and device
CN107704398A (en) * 2017-11-01 2018-02-16 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SCIENCE_ZHAO: "《jmeter性能测试,基于scf框架的"java请求"接口封装、环境配置与测试》", 《HTTPS://BLOG.CSDN.NET/ZW1_CSDN/ARTICLE/DETAILS/78491312》 *
小浪剑客: "《Jmeter +Maven+jenkins+eclipse 接口自动化测试》", 《HTTPS://WWW.CNBLOGS.COM/XIAOLANGJIANKE/P/8484828.HTML》 *

Similar Documents

Publication Publication Date Title
US8547974B1 (en) Generating communication protocol test cases based on network traffic
US8612530B1 (en) Pass-through testing using message exchange identifiers
US8396962B2 (en) Game grammar-based packet capture and analysis apparatus and method for conducting game test
CN105302732B (en) A kind of automatic test approach and device of mobile terminal
CN108459953A (en) test method and device
CN110457199A (en) The method and apparatus of performance test
US8463860B1 (en) Scenario based scale testing
CN103095819A (en) Data information pushing method and data information pushing system
CN105359487B (en) The method for going reference monitoring NAT behavior by the URI in web browser
EP1193947A2 (en) Communications system based on the WSDL language
CN102421112B (en) Testing method of mobile terminal, mobile terminal simulator, testing equipment and testing system
CN104579822A (en) Automatic performance test system and method of mobile application based on Http protocol
CN104394211A (en) Design and implementation method for user behavior analysis system based on Hadoop
Rhodes et al. Foundations of Python network programming
CN104580376B (en) The methods, devices and systems connected between terminal are established in a local network
CN110347708A (en) A kind of data processing method and relevant device
CN108156223A (en) A kind of accurate supplying system of message based on websocket and method
CN107070752B (en) Testing method and testing system for long connection capacity
CN105828094B (en) A kind of privately owned cloud system and its implementation method based on smart television
CN103379125A (en) Multi-screen interaction method based on social network
CN103685354A (en) Method and device for testing based on RMI protocol
CN105117344B (en) A kind of Interface integration method of testing and system based on PB
CN109446648A (en) Service of simulation method for building up and device
CN104506661B (en) A kind of mobile telephone power consumption automatic production generation method based on usage scenario of Remote configuration
CN103997437A (en) Cloud server registration function testing method

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: 20181106