CN105718341A - Test method and management device - Google Patents

Test method and management device Download PDF

Info

Publication number
CN105718341A
CN105718341A CN201610031336.3A CN201610031336A CN105718341A CN 105718341 A CN105718341 A CN 105718341A CN 201610031336 A CN201610031336 A CN 201610031336A CN 105718341 A CN105718341 A CN 105718341A
Authority
CN
China
Prior art keywords
test
subprocess
hardware environment
client
directory
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
CN201610031336.3A
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.)
Inspur Software Group Co Ltd
Original Assignee
Inspur Software Group 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 Inspur Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201610031336.3A priority Critical patent/CN105718341A/en
Publication of CN105718341A publication Critical patent/CN105718341A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The embodiment of the invention provides a testing method and a management device, relates to the technical field of computers, and aims to reduce the testing complexity. The method comprises the following steps: the method comprises the following steps: receiving a connection request message sent by a client; determining the type of the client according to the connection request message; when the type of the client is determined to be a common client, creating a temporary directory for the common client under a preset directory, copying a dynamic library file of a test case stored in a working directory of a service management process into the temporary directory, and creating a test sub-process for the common client; the preset directory is a directory different from a working directory of the service management process; and the test subprocess receives the test instruction sent by the common client and carries out corresponding test processing in the hardware environment simulated by the hardware environment simulation package according to the test instruction.

Description

A kind of method of test and managing device
Technical field
The present invention relates to field of computer technology, particularly relate to method and the managing device of a kind of test.
Background technology
Along with developing rapidly of the Internet, middleware Technology is increasingly mature, defines a lot of middleware industry standard or even international standard, and a lot of intra-companies all can safeguard the middleware version of oneself.In middleware is researched and developed, after research staff has write interface, it is desired by each company, research and development and tester that the function of the interface researched and developed carries out comprehensively test, but in actual development process, go again module or function are tested after having developed module or function often, due to the imperfection of test, it is impossible at utmost pinpoint the problems, which results in the work needing substantial amounts of personnel to remove to be engaged in maintainability after research and development, improve R&D costs.
Therefore the module of exploitation or function are carried out test critically important.In the prior art, when hardware environment is tested, owing to hardware environment can be produced different impacts by different tests, therefore to ensure the accuracy of test every time, after this has been tested, in order to not affect test next time, it is necessary to product is carried out power down process, make product recover to initial hardware environment, add the complexity of test.
Summary of the invention
Embodiments of the invention provide method and the managing device of a kind of test, in order to reduce the complexity of test.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
A kind of method embodiments providing test, including: receive the connection request message that client sends;According to described connection request message, it is determined that the type of described client;When determining that the type of described client is normal client end, it is that described normal client end creates temp directory under predetermined directory, the dynamic library file of the test cases working directory of management daemon stored copies in described temp directory, and is that described normal client end creates test subprocess;Described predetermined directory is the catalogue different from the working directory of described management daemon;Described test subprocess receives the test instruction that described normal client end sends, and carries out corresponding test processes according to described test instruction in the hardware environment that hardware environment simulation bag simulates.
Alternatively, also include: when determining that the type of described client is privileged client, the working directory of described management daemon creates privilege subprocess;Described privilege subprocess receives the execution instruction that described privileged client sends, and utilizes described privilege subprocess to process accordingly according to described execution instruction.
Alternatively, described test instruction carries the dynamic library file of replacement test case;Described utilize described test subprocess to carry out corresponding test processes in the hardware environment simulation hardware environment that simulates of bag according to described test instruction to include: the dynamic library file of the test cases in described temp directory is carried out corresponding replacement process according to the dynamic library file of the replacement test case carried in described test instruction by described test subprocess;The dynamic library file of the test cases after replacing in described temp directory is carried out corresponding test processes by described test subprocess in the hardware environment that hardware environment simulation bag simulates.
Alternatively, described test instruction carries the label of test cases;Described utilize described test subprocess to carry out corresponding test in the hardware environment simulation hardware environment that simulates of bag according to described test instruction to include: the label of the described test cases that described test subprocess carries according to described test instruction, the dynamic library file of described test cases is determined the living document of the test cases that the label of described test cases is corresponding, the living document of test cases corresponding to the label of described test cases is carried out corresponding test processes in the hardware environment that hardware environment simulation bag simulates.
Further, embodiments provide the managing device of a kind of test, including: receive unit, for receiving the connection request message that client sends;Determine unit, for the described connection request message received according to described reception unit, it is determined that the type of described client;Processing unit, for described determine that unit determines that the type of described client is normal client end time, it is that described normal client end creates temp directory under predetermined directory, the dynamic library file of the test cases working directory of management daemon stored copies in described temp directory, and is that described normal client end creates test subprocess;Described predetermined directory is the catalogue different from the working directory of described management daemon;Described processing unit, is additionally operable to receive, by described test subprocess, the test instruction that described normal client end sends, and carries out corresponding test processes according to described test instruction in the hardware environment that hardware environment simulation bag simulates.
Alternatively, described processing unit, be additionally operable to described determine that unit determines that the type of described client is privileged client time, in the working directory of described management daemon create privilege subprocess;Receive, by described privilege subprocess, the execution instruction that described privileged client sends, utilize described privilege subprocess to process accordingly according to described execution instruction.
Alternatively, described test instruction carries the dynamic library file of replacement test case;Described processing unit, specifically for carrying out corresponding replacement process according to the dynamic library file of the replacement test case carried in described test instruction to the dynamic library file of the test cases in described temp directory by described test subprocess;By described test subprocess, the dynamic library file of the test cases after replacing in described temp directory is carried out corresponding test processes in the hardware environment that hardware environment simulation bag simulates.
Alternatively, described test instruction carries the label of test cases;Described processing unit, the label of the described test cases specifically for being carried according to described test instruction by described test subprocess, the dynamic library file of described test cases is determined the living document of the test cases that the label of described test cases is corresponding, the living document of test cases corresponding to the label of described test cases is carried out corresponding test processes in the hardware environment that hardware environment simulation bag simulates.
Embodiments provide method and the managing device of a kind of test, including: receive the connection request message that client sends;According to connection request message, it is determined that the type of client;When determining that the type of client is normal client end, under predetermined directory, create temp directory for normal client end, the dynamic library file of test cases is copied in described temp directory, and create for normal client end and test subprocess;Receive the test instruction that normal client end sends, and utilize described test subprocess to carry out corresponding test processes in the hardware environment that hardware environment simulation bag simulates according to test instruction.So, the managing device of test, after the type determining client is normal client end, creates temp directory for normal client end, and then is copied in temp directory by the living document of test case, and create test subprocess for normal client end.After receiving the test instruction that client sends, it is possible in the hardware environment that hardware environment simulation bag simulates, test subprocess is utilized to carry out corresponding test processes according to this test instruction.In the present invention, can test accordingly in the hardware environment that hardware environment simulation bag simulates, test without in real hardware environment, so, without being hardware environment by power interruption recovering every time after having carried out test, thus reducing the complexity of test.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of the method for a kind of test that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the method for the another kind of test that Fig. 2 provides for the embodiment of the present invention;
The structural representation of the managing device of a kind of test that Fig. 3 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
A kind of method embodiments providing test, as it is shown in figure 1, include:
The connection request message that step 101, reception client send.
Concrete, when client needs hardware environment is tested, the managing device of test can simulate hardware environment by installing hardware environment simulation bag.So, client is when testing hardware environment, it is possible to test accordingly in the hardware environment that hardware environment simulation bag simulates.Now, client needs first to set up with the managing device of test to be connected, and client need to send connection request message to the managing device of test.The managing device of test receives this connection request message.
The managing device of test can be passed through management daemon and constantly monitor fixed port such as 2222 port, it is determined whether have client to send connection request message.If listening to connection request message, then can receive this connection request message.
Further, the managing device of test can have the connection request message that at least one client sends, and now illustrates have at least one client need to hardware environment be tested.
It should be noted that the management daemon of the managing device of test operates in the hardware environment that hardware environment simulation bag simulates.
Step 102, according to connection request message, it is determined that the type of client.
Concrete, the managing device of test is after receiving connection request message, it is possible to resolve this connection request message, such that it is able to determine the type of this client in connection request message.
It should be noted that the type of client includes normal client end and privileged client.When user is normal client end, user is only capable of carrying out test processes in the hardware environment that hardware environment simulation bag simulates.And privileged client has the authority that the managing device to test is managed, it is possible to the various data of storage in the managing device of maintenance test.
Further, the method determining the type of client according to connection request message can be, the checking information of privileged client and the checking information of normal client end can be pre-set, so, the managing device of test resolves connection request message, if parsing checking information from connection request message, then checking information can be verified, if the checking information verifying checking information and the privileged client carried in connection request message is identical, then can determine that the client sending this connection request message is privileged client.If the checking information carried in checking storage connection request message is identical with the checking information of normal client end, then can determine that the client sending this connection request message is normal client end.
Or, determine that according to connection request message the method for the type of client can also is that, pre-set privilege information, so, the managing device of test resolves connection request message, if parsing privilege information from connection request message, then may determine that the client sending this connection request message is privileged client.If not parsing privilege information from connection request message, then may determine that the client sending this connection request message is normal client end.
It should be noted that the managing device of test can also determine the type of client, the invention is not limited in this regard by additive method according to connection request message.
Further, when the managing device of test performs this step, the management daemon tested perform.It is the management daemon of managing device after receiving at least one connection request message, it is necessary to determine the type of each client respectively.Now, the management daemon of the managing device of test can respectively according at least one the connection request message received, it is determined that the type of the client that each connection request message is corresponding.
Step 103, when determining that the type of client is normal client end, temp directory is created for normal client end under predetermined directory, the dynamic library file of the test cases working directory of management daemon stored copies in described temp directory, and creates test subprocess for normal client end.
Wherein, predetermined directory is the catalogue different from the working directory of management daemon.
Concrete, this step can be performed by management daemon.Now, management daemon in the managing device of test is after the type of client is normal client end, illustrating that this client is only capable of hardware environment is tested, the management daemon of the managing device now tested can create temp directory for this normal client end under predetermined directory.And copied in this temp directory by the dynamic library file of the test cases of storage in the working directory of management daemon, and create test subprocess for normal client end.Now, test subprocess is inherited the resource of its parent process and is the resource inheriting management daemon.So, due to the test subprocess that management daemon creates in temp directory, the working directory therefore testing subprocess is temp directory, and test subprocess can process the dynamic library file of the test cases in temp directory.
Further, when the management daemon of the managing device of test receives at least one connection request message, when determining that the type of at least one client is normal client end, it is possible under predetermined directory, respectively at least one normal client end creates at least one temp directory.Being different normal client ends and create different temp directorys, each normal client end creates a temp directory.And the management daemon of the managing device tested can create test subprocess for each client respectively in the temp directory of each normal client end, and only creates the test subprocess of himself in the temp directory of each normal client list.
So, the managing device of test can be that different clients is respectively created different temp directory, and in the temp directory of different clients, creates the test subprocess that this client is corresponding, the working directory making the test subprocess of different clients is different temp directory, does not interfere with each other.
It should be noted that, it is operated in the hardware environment that hardware environment simulation bag simulates by the management daemon of the managing device tested, the management daemon of the managing device therefore tested is when creating each test subprocess, owing to test subprocess can inherit all resources of management daemon, therefore, each test subprocess can operate in the hardware environment that hardware environment simulation bag simulates in different working directories.It is to say, hardware environment simulation hardware environment of simulating of bag of each test subprocess is all the middle succession from management daemon and comes, it is independent of each other to each other.
It should be noted that the dynamic library file of the test cases of the working directory storage of management daemon is to pre-set.Can be that manager is arranged according to actual needs in advance in the managing device of test, now can be stored in the working directory of management daemon.
Step 104, receive the test instruction that normal client end sends, and utilize test subprocess to carry out corresponding test processes in the hardware environment simulation hardware environment that simulates of bag according to test instruction.
Concrete, management daemon in the managing device of test is after having created test subprocess, the test instruction that normal client end sends can be received, this can be tested instruction and send the test subprocess to normal client end by the management daemon in the managing device now tested, this test instruction is resolved thus getting corresponding test information by test subprocess, and then according to this test information, in the hardware environment that hardware environment simulation bag simulates, carry out corresponding test processes.
Further, test instruction is the instruction that the managing device that instruction is tested carries out testing.Content according to user test is different, and the information carried in test instruction can be different.
Further, test instruction carries the dynamic library file of replacement test case, now, utilize test subprocess to carry out corresponding test processes in the hardware environment that hardware environment simulation bag simulates according to test instruction to include: according to the dynamic library file of the replacement test case carried in test instruction, the dynamic library file of the test cases in temp directory is carried out corresponding replacement process.Utilize test subprocess that in the hardware environment that hardware environment simulation bag simulates, the dynamic library file of the test cases after replacing in temp directory is carried out corresponding test processes.
Concrete, when carrying the dynamic library file of replacement test case in testing instruction, illustrate that the user that this normal client end is corresponding needs before testing, the dynamic library file of test cases existing in the managing device of test need to be modified, now test subprocess is receiving test instruction and is resolving test instruction, after getting the dynamic library file of the replacement test case carried in test instruction, can according to the dynamic library file of replacement test case, the dynamic library file of the test cases of storage in the working directory of test subprocess is replaced accordingly, working directory owing to testing subprocess is temp directory, therefore, the dynamic library file of the test cases in temp directory is replaced by test subprocess accordingly, and then the living document of the test cases in renewal temp directory, after the living document of the test cases in having updated temp directory, the living document of the test cases in the temp directory updated can be carried out corresponding test processes by test subprocess in the hardware environment that hardware environment simulation bag simulates.
Or, test instruction carries the label of test cases, now, utilize test subprocess to carry out corresponding test in the hardware environment that hardware environment simulation bag simulates according to test instruction to include: the label of the test cases that test subprocess carries according to test instruction, the dynamic library file of test cases is determined the living document of the test cases that the label of test cases is corresponding, the living document of test cases corresponding to the label of test cases is carried out corresponding test processes in the hardware environment that hardware environment simulation bag simulates.
Concrete, when test instruction carries the label of test cases, illustrate that the living document of the test cases that the user that this normal client end is corresponding utilizes the label of test cases corresponding carries out the test of hardware environment.Now, test subprocess, after receiving test instruction, resolves test instruction, it is possible to parse the label of the test cases carried in test instruction.Test subprocess is after getting the label of test cases, in the living document of the test cases that can store in its working directory, find out the living document of test cases corresponding to the label of this test cases, it is in temp directory in the living document of the test cases of storage, find out the living document of test cases corresponding to the label of this test cases, after the living document of test cases corresponding to the label finding out this test cases, the living document of test cases corresponding to the label of test cases can be carried out corresponding test processes by test subprocess in the hardware environment that hardware environment simulation bag simulates.
It should be noted that test instruction can also be carried other information, for instance Unload module information;Or Query Information etc..The test subprocess of the managing device of test can process accordingly according to the different information carried in test instruction, and tests accordingly.The invention is not limited in this regard.
It should be noted that in embodiments of the present invention, the living document of test cases is by Module Division, and module divides according to function.
Further, at least one test subprocess in the managing device of test receives the test instruction of client, and each test subprocess can carry out carrying out corresponding test processes in the hardware environment that the hardware environment simulation bag each inherited simulates according to the test instruction each received.
So, in embodiments of the present invention, it is possible in the hardware environment that hardware environment simulation bag simulates, carry out multiple test simultaneously, and the initial hardware environment of each test subprocess is all identical, between each test separate, be independent of each other, such that it is able to improve testing efficiency.
A kind of method embodiments providing test, including: receive the connection request message that client sends;According to connection request message, it is determined that the type of client;When determining that the type of client is normal client end, under predetermined directory, create temp directory for normal client end, the dynamic library file of test cases is copied in described temp directory, and create for normal client end and test subprocess;Receive the test instruction that normal client end sends, and utilize described test subprocess to carry out corresponding test processes in the hardware environment that hardware environment simulation bag simulates according to test instruction.So, the managing device of test, after the type determining client is normal client end, creates temp directory for normal client end, and then is copied in temp directory by the living document of test case, and create test subprocess for normal client end.After receiving the test instruction that client sends, it is possible in the hardware environment that hardware environment simulation bag simulates, test subprocess is utilized to carry out corresponding test processes according to this test instruction.In the present invention, can test accordingly in the hardware environment that hardware environment simulation bag simulates, test without in real hardware environment, so, without being hardware environment by power interruption recovering every time after having carried out test, thus reducing the complexity of test.
A kind of method embodiments providing test, as in figure 2 it is shown, include:
The connection request message that step 201, reception client send.
Concrete, it is referred to step 101, does not repeat them here.
Step 202, according to described connection request message, it is determined that the type of described client.
Concrete, it is referred to step 102, does not repeat them here.
It should be noted that the managing device of test is different according to the result determined, step performed below is also different.When determining that the type of client is normal client end, perform step 203a-204a.When determining that the type of client is privileged client, perform step 203b-204b.
Step 203a, when determining that the type of client is normal client end, temp directory is created for normal client end under predetermined directory, the dynamic library file of the test cases working directory of management daemon stored copies in described temp directory, and creates test subprocess for normal client end.
Wherein, predetermined directory is the catalogue different from the working directory of described management daemon.
Concrete, it is referred to step 103, does not repeat them here.
Step 203b, when determining that the type of client is privileged client, the working directory of management daemon creates privilege subprocess.
Concrete, the management daemon of the managing device of test is after the type determining client is privileged client, it is possible to creates subprocess for this privileged client in the working directory of himself and is privilege subprocess.Now, privilege subprocess inherits the resource of its parent process, is the resource inheriting management daemon.So, owing to management daemon creates privilege subprocess in its working directory, therefore the working directory of privilege subprocess is the working directory that Service Management carries out.Now, privilege subprocess can get the living document storing test cases in this working directory.Further, privilege subprocess can inherit the hardware environment of management daemon, is privilege subprocess and can inherit the hardware environment that hardware environment simulation bag simulates.
204a, test subprocess receive the test instruction that normal client end sends, and carry out corresponding test processes according to test instruction in the hardware environment that hardware environment simulation bag simulates.
Concrete, it is referred to step 104, does not repeat them here.
204b, privilege subprocess receive the execution instruction that privileged client sends, and process accordingly according to performing instruction process.
Concrete, privilege subprocess is after having created, and user can send to the managing device of test and perform instruction, and now privilege subprocess can resolve performing instruction, and then can process accordingly according to analysis result.
Owing to privileged client has a right of manager, and the working directory of privilege subprocess is identical with the working directory of management daemon, and therefore privileged client can revise the living document of the test cases in the working directory of management daemon by privilege subprocess.Being, privileged client can the living document of test cases preset in the managing device of test of privilege subprocess amendment manager.Therefore, the execution instruction that privileged client sends is probably test instruction and is also likely to be other instructions, for instance the instruction of the living document of the test cases that amendment manager presets in the managing device of test.
Now, privilege subprocess need to carry out respective handling according to performing instruction.When performing the instruction of the living document that instruction is the test cases that amendment manager presets in the managing device of test, the franchise subprocess of the managing device of test can resolve execution instruction, such that it is able to the living document of the test cases preset in the managing device of test with amendment manager parsing that this performs to carry in instruction is for information about, and then can according to parse with amendment manager test managing device in preset test cases living document for information about the living document of the test cases in its working directory is carried out corresponding amendment, thus completing the living document of the test cases that amendment manager presets in the managing device of test.
When performing instruction for test instruction, now privilege subprocess can be tested instruction according to this and carries out corresponding test processes in the hardware environment simulation hardware environment that simulates of bag.
It should be noted that, privilege subprocess carries out the process of corresponding test processes according to test instruction in the hardware environment that hardware environment simulation bag simulates, identical with the process that test subprocess carries out corresponding test processes according to test instruction in the hardware environment that hardware environment simulation bag simulates, do not repeat them here.
A kind of method embodiments providing test, including: receive the connection request message that client sends;According to connection request message, it is determined that the type of client;When determining that the type of client is normal client end, under predetermined directory, create temp directory for normal client end, the dynamic library file of test cases is copied in described temp directory, and create for normal client end and test subprocess;Receive the test instruction that normal client end sends, and utilize described test subprocess to carry out corresponding test processes in the hardware environment that hardware environment simulation bag simulates according to test instruction.So, the managing device of test, after the type determining client is normal client end, creates temp directory for normal client end, and then is copied in temp directory by the living document of test case, and create test subprocess for normal client end.After receiving the test instruction that client sends, it is possible in the hardware environment that hardware environment simulation bag simulates, test subprocess is utilized to carry out corresponding test processes according to this test instruction.In the present invention, can test accordingly in the hardware environment that hardware environment simulation bag simulates, test without in real hardware environment, so, without being hardware environment by power interruption recovering every time after having carried out test, thus reducing the complexity of test.
Embodiments provide the managing device of a kind of test, as it is shown on figure 3, include:
Receive unit 301, for receiving the connection request message that client sends.
Determine unit 302, for according to receiving the connection request message that unit 301 receives, it is determined that the type of described client.
Processing unit 303, for when determining that unit 302 determines that the type of client is normal client end, temp directory is created for normal client end under predetermined directory, the dynamic library file of the test cases working directory of management daemon stored copies in described temp directory, and creates test subprocess for normal client end.
Wherein, predetermined directory is the catalogue different from the working directory of described management daemon.
Processing unit 303, is additionally operable to receive by testing subprocess the test instruction of normal client end transmission, and carries out corresponding test processes according to test instruction in the hardware environment that hardware environment simulation bag simulates.
Concrete, test instruction carries the dynamic library file of replacement test case.
Now, processing unit 303, according to the dynamic library file of the replacement test case carried in test instruction, the dynamic library file of the test cases in described temp directory is carried out corresponding replacement process specifically for passing through test subprocess.In the hardware environment that hardware environment simulation bag simulates, corresponding test processes is carried out by testing the subprocess dynamic library file to the test cases after replacing in described temp directory.
Or, test instruction carries the label of test cases.Now, processing unit 303, specifically for the label by testing the described test cases that subprocess carries according to test instruction, the dynamic library file of test cases is determined the living document of the test cases that the label of test cases is corresponding, the living document of test cases corresponding to the label of test cases is carried out corresponding test processes in the hardware environment that hardware environment simulation bag simulates.
Further, processing unit 303, it is additionally operable to when determining that unit 302 determines that the type of client is privileged client, the working directory of management daemon creates privilege subprocess;Receive, by privilege subprocess, the execution instruction that privileged client sends, utilize privilege subprocess to process accordingly according to performing instruction.
Embodiments provide the managing device of a kind of test, including: receive the connection request message that client sends;According to connection request message, it is determined that the type of client;When determining that the type of client is normal client end, under predetermined directory, create temp directory for normal client end, the dynamic library file of test cases is copied in described temp directory, and create for normal client end and test subprocess;Receive the test instruction that normal client end sends, and utilize described test subprocess to carry out corresponding test processes in the hardware environment that hardware environment simulation bag simulates according to test instruction.So, the managing device of test, after the type determining client is normal client end, creates temp directory for normal client end, and then is copied in temp directory by the living document of test case, and create test subprocess for normal client end.After receiving the test instruction that client sends, it is possible in the hardware environment that hardware environment simulation bag simulates, test subprocess is utilized to carry out corresponding test processes according to this test instruction.In the present invention, can test accordingly in the hardware environment that hardware environment simulation bag simulates, test without in real hardware environment, so, without being hardware environment by power interruption recovering every time after having carried out test, thus reducing the complexity of test.
Last it is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although the present invention being described in detail with reference to previous embodiment, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein portion of techniques feature is carried out equivalent replacement;And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (8)

1. the method for a test, it is characterised in that including:
Receive the connection request message that client sends;
According to described connection request message, it is determined that the type of described client;
When determining that the type of described client is normal client end, it is that described normal client end creates temp directory under predetermined directory, the dynamic library file of the test cases working directory of management daemon stored copies in described temp directory, and is that described normal client end creates test subprocess;Described predetermined directory is the catalogue different from the working directory of described management daemon;
Described test subprocess receives the test instruction that described normal client end sends, and carries out corresponding test processes according to described test instruction in the hardware environment that hardware environment simulation bag simulates.
2. method according to claim 1, it is characterised in that also include:
When determining that the type of described client is privileged client, the working directory of described management daemon creates privilege subprocess;
Described privilege subprocess receives the execution instruction that described privileged client sends, and utilizes described privilege subprocess to process accordingly according to described execution instruction.
3. method according to claim 1 and 2, it is characterised in that
Described test instruction carries the dynamic library file of replacement test case;
Described utilize described test subprocess to carry out corresponding test processes in the hardware environment simulation hardware environment that simulates of bag according to described test instruction to include:
The dynamic library file of the test cases in described temp directory is carried out corresponding replacement process according to the dynamic library file of the replacement test case carried in described test instruction by described test subprocess;
The dynamic library file of the test cases after replacing in described temp directory is carried out corresponding test processes by described test subprocess in the hardware environment that hardware environment simulation bag simulates.
4. method according to claim 1 and 2, it is characterised in that
Described test instruction carries the label of test cases;
Described utilize described test subprocess to carry out corresponding test in the hardware environment simulation hardware environment that simulates of bag according to described test instruction to include:
The label of the described test cases that described test subprocess carries according to described test instruction, the dynamic library file of described test cases is determined the living document of the test cases that the label of described test cases is corresponding, the living document of test cases corresponding to the label of described test cases is carried out corresponding test processes in the hardware environment that hardware environment simulation bag simulates.
5. the managing device of a test, it is characterised in that including:
Receive unit, for receiving the connection request message that client sends;
Determine unit, for the described connection request message received according to described reception unit, it is determined that the type of described client;
Processing unit, for described determine that unit determines that the type of described client is normal client end time, it is that described normal client end creates temp directory under predetermined directory, the dynamic library file of the test cases working directory of management daemon stored copies in described temp directory, and is that described normal client end creates test subprocess;Described predetermined directory is the catalogue different from the working directory of described management daemon;
Described processing unit, is additionally operable to receive, by described test subprocess, the test instruction that described normal client end sends, and carries out corresponding test processes according to described test instruction in the hardware environment that hardware environment simulation bag simulates.
6. device according to claim 5, it is characterised in that
Described processing unit, be additionally operable to described determine that unit determines that the type of described client is privileged client time, in the working directory of described management daemon create privilege subprocess;
Receive, by described privilege subprocess, the execution instruction that described privileged client sends, utilize described privilege subprocess to process accordingly according to described execution instruction.
7. the device according to claim 5 or 6, it is characterised in that
Described test instruction carries the dynamic library file of replacement test case;
Described processing unit, specifically for carrying out corresponding replacement process according to the dynamic library file of the replacement test case carried in described test instruction to the dynamic library file of the test cases in described temp directory by described test subprocess;
By described test subprocess, the dynamic library file of the test cases after replacing in described temp directory is carried out corresponding test processes in the hardware environment that hardware environment simulation bag simulates.
8. the device according to claim 5 or 6, it is characterised in that
Described test instruction carries the label of test cases;
Described processing unit, the label of the described test cases specifically for being carried according to described test instruction by described test subprocess, the dynamic library file of described test cases is determined the living document of the test cases that the label of described test cases is corresponding, the living document of test cases corresponding to the label of described test cases is carried out corresponding test processes in the hardware environment that hardware environment simulation bag simulates.
CN201610031336.3A 2016-01-18 2016-01-18 Test method and management device Pending CN105718341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610031336.3A CN105718341A (en) 2016-01-18 2016-01-18 Test method and management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610031336.3A CN105718341A (en) 2016-01-18 2016-01-18 Test method and management device

Publications (1)

Publication Number Publication Date
CN105718341A true CN105718341A (en) 2016-06-29

Family

ID=56147213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610031336.3A Pending CN105718341A (en) 2016-01-18 2016-01-18 Test method and management device

Country Status (1)

Country Link
CN (1) CN105718341A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162452A (en) * 2019-04-30 2019-08-23 广州微算互联信息技术有限公司 A kind of analog detection method, device and storage medium for testing and control service

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001022227A1 (en) * 1999-09-20 2001-03-29 Actuarieel Adviesbureau Vermaase B.V. Computer program for multiple types of user interfaces and method for testing such computer programs
CN102650968A (en) * 2012-03-30 2012-08-29 奇智软件(北京)有限公司 Environmental constructing method and device for terminal system and terminal system
CN202584104U (en) * 2012-05-04 2012-12-05 中山达华智能科技股份有限公司 Online CUP (Central Processing Unit) card debug system structure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001022227A1 (en) * 1999-09-20 2001-03-29 Actuarieel Adviesbureau Vermaase B.V. Computer program for multiple types of user interfaces and method for testing such computer programs
CN102650968A (en) * 2012-03-30 2012-08-29 奇智软件(北京)有限公司 Environmental constructing method and device for terminal system and terminal system
CN202584104U (en) * 2012-05-04 2012-12-05 中山达华智能科技股份有限公司 Online CUP (Central Processing Unit) card debug system structure

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162452A (en) * 2019-04-30 2019-08-23 广州微算互联信息技术有限公司 A kind of analog detection method, device and storage medium for testing and control service

Similar Documents

Publication Publication Date Title
US10394697B2 (en) Focus area integration test heuristics
US20100313185A1 (en) Access to test-ready virtual environments
CN103226485B (en) Code dissemination method, code issue machine and code delivery system
US20140068334A1 (en) Reliable unit testing through cached mocking
US10621212B2 (en) Language tag management on international data storage
US8302088B2 (en) Analysis of effects of a software maintenance patch on configuration items of a CMDB
US20180285247A1 (en) Systems, methods, and apparatus for automated code testing
US9513902B2 (en) Automated code coverage measurement and tracking per user story and requirement
AU2018201941A1 (en) Automated program code analysis and reporting
US20120159443A1 (en) System and method for reducing test effort by object risk analysis
US10289536B2 (en) Distinguishing public and private code in testing environments
CN105787364B (en) Automatic testing method, device and system for tasks
CN110674047B (en) Software testing method and device and electronic equipment
US10310964B2 (en) System and method for determining relevance of application software maintenance
US9256509B1 (en) Computing environment analyzer
US20130111018A1 (en) Passive monitoring of virtual systems using agent-less, offline indexing
JP2009157830A (en) Computer system, method and computer program for enabling symptom verification
US20230164164A1 (en) Detecting vulnerabilities in configuration code of a cloud environment utilizing infrastructure as code
CN110851471A (en) Distributed log data processing method, device and system
CN111654495B (en) Method, apparatus, device and storage medium for determining traffic generation source
US20150154277A1 (en) Methods and Systems for Machine Learning to Discover Application Compatibility Status
CN106681783A (en) Detection method and system for SVN code
JP2015011372A (en) Debug support system, method, program, and recording medium
US8677339B2 (en) Component relinking in migrations
CN114168471A (en) Test method, test device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160629