CN103077110B - A kind of method of testing and device - Google Patents

A kind of method of testing and device Download PDF

Info

Publication number
CN103077110B
CN103077110B CN201110328247.2A CN201110328247A CN103077110B CN 103077110 B CN103077110 B CN 103077110B CN 201110328247 A CN201110328247 A CN 201110328247A CN 103077110 B CN103077110 B CN 103077110B
Authority
CN
China
Prior art keywords
tested
data
software
automatic test
test suite
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.)
Active
Application number
CN201110328247.2A
Other languages
Chinese (zh)
Other versions
CN103077110A (en
Inventor
彭猛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201110328247.2A priority Critical patent/CN103077110B/en
Publication of CN103077110A publication Critical patent/CN103077110A/en
Priority to HK13107358.6A priority patent/HK1180085A1/en
Application granted granted Critical
Publication of CN103077110B publication Critical patent/CN103077110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

This application discloses a kind of method of testing and device, reduce the problem of the accuracy of test in order to solve the method for carrying out automatic test to software in prior art.The method determines the identification information of the data to be tested of carrying out needed for current test case, these data to be tested comprise the data that the interface of tested software represents, the acquisition message obtaining data to be tested is sent to tested software, obtain the data to be tested that tested software provides, and according to the data to be tested obtained, tested software is tested.Owing to obtaining the data that the interface of tested software represents in the embodiment of the present application, and according to the data that this page represents, tested software is tested, whether the data that therefore can also the interface of testing software represent are correct, improve the accuracy of testing software.

Description

A kind of method of testing and device
Technical field
The application relates to communication technical field, particularly relates to a kind of method of testing and device.
Background technology
Along with popularizing of computing machine, various software also emerges in an endless stream, and how to carry out automatic test to software and is called current problem demanding prompt solution.
In the prior art, automatic test being carried out mainly by writing test script to software, and some test cases are set, carrying out the process that test case carrys out analog manual operation, to reach the object of testing software by running this test script.But whether this method can only break down in the operation of testing software, whether correct for the data represented in the interface of software, the party's rule cannot be tested.
Such as, automatic test is carried out to the interpolation good friend function of certain chat software, test script carries out corresponding test case, first log in this chat software with account A, then analog manual operation adds account B is good friend, and the test result of this process shows the interpolation good friend function normal operation of this chat software, but, with the addition of account B for after good friend for account A, in the good friend interface of account A, whether show account B, the method but can not be tested.
For another example, the personalized signature function of this chat software is tested, test script first logs in this chat software with account A, then the personalized signature of account A is revised, suppose to be revised as " bbb " from " aaa ", the test result of this process shows the personalized signature function also normal operation of this chat software, but, suppose that account A and B is good friend, then the method can not test whether the individualized signature of the account A shown in the interface of account B is amended " bbb ".
Therefore, method of testing of the prior art can only the ruuning situation of testing software whether normal, can not data in testing software whether correct, reduce the accuracy of test.
Summary of the invention
The embodiment of the present application provides a kind of method of testing and device, reduces the problem of the accuracy of test in order to solve the method for carrying out automatic test to software in prior art.
A kind of method of testing that the embodiment of the present application provides, comprising:
Determine the identification information of the data to be tested of carrying out needed for current test case, described data to be tested comprise the data that the interface of tested software represents; And
Send the first acquisition message obtaining described data to be tested to described tested software, described first obtains the identification information carrying described data to be tested in message; And
Obtain the data to be tested that described tested software provides according to the identification information of described data to be tested;
Data to be tested according to obtaining are tested described tested software.
A kind of proving installation that the embodiment of the present application provides, comprising:
Determination module, for determining the identification information of the data to be tested of carrying out needed for current test case, described data to be tested comprise the data that the interface of tested software represents;
Sending module, for sending the first acquisition message obtaining described data to be tested to described tested software, described first obtains the identification information carrying described data to be tested in message;
Obtain module, for obtaining the data to be tested that described tested software provides according to the identification information of described data to be tested;
Test module, for testing described tested software according to the data to be tested obtained.
The embodiment of the present application provides a kind of method of testing and device, the method determines the identification information of the data to be tested of carrying out needed for current test case, these data to be tested comprise the data that the interface of tested software represents, the acquisition message obtaining data to be tested is sent to tested software, obtain the data to be tested that tested software provides, and according to the data to be tested obtained, tested software is tested.Owing to obtaining the data that the interface of tested software represents in the embodiment of the present application, and according to the data that this page represents, tested software is tested, whether the data that therefore can also the interface of testing software represent are correct, improve the accuracy of testing software.
Accompanying drawing explanation
The test process that Fig. 1 provides for the embodiment of the present application;
The good friend's marking Function to test chat software that Fig. 2 provides for the embodiment of the present application, the good friend interface of this chat software of explanation;
The DCO process that Fig. 3 provides for the embodiment of the present application;
The proving installation structural representation that Fig. 4 provides for the embodiment of the present application;
The test macro specific implementation structural representation comprising proving installation and tested software that Fig. 5 provides for the embodiment of the present application.
Embodiment
Owing to can only test the ruuning situation of software in prior art, as central processing unit (CentralProcessingUnit, CPU) take, EMS memory occupation etc., and can not whether the data that the interface of this software represents correctly be tested, the accuracy of testing therefore can be caused to reduce.The embodiment of the present application is in order to improve the accuracy of test, not only want the ruuning situation of testing software whether normal, also want data that the interface of testing software represents whether correct, therefore when testing software, obtain data that the interface of this software represents as data to be tested, and contrast with the data preset, the data realizing the interface to this software represents are tested.
Below in conjunction with Figure of description, the embodiment of the present application is described in detail.
The test process that Fig. 1 provides for the embodiment of the present application, specifically comprises the following steps:
S101: the identification information determining the data to be tested of carrying out needed for current test case, these data to be tested comprise the data that the interface of tested software represents.
In the embodiment of the present application, first proving installation will determine the identification information of the data to be tested of carrying out needed for current test case, and what also namely first will determine current testing case is what.
Be described to test certain chat software below, automatic test is carried out to the interpolation good friend function of this chat software, proving installation account A logs in this chat software, and to add account B be good friend, that now will test is not only in the process of adding good friend, whether the ruuning situation of this chat software is normal, also to test and with the addition of account B for after good friend, whether account B is shown in the good friend interface of account A, also namely current testing case be whether show account B in the good friend interface of account A, then data to be tested comprise each good friend's data that the good friend interface of this chat software represents.For this test case, the identification information of data to be tested is: the buddy list that the good friend interface of this chat software represents.
S102: send the first acquisition message obtaining these data to be tested to tested software, carries the identification information of these data to be tested in this first acquisition message.
Wherein, the mode sending windows messaging to tested software can be adopted when sending this first acquisition message, the identification information of data to be tested is carried in this windows messaging and send to tested software.And, due to the window handle that each window interface correspondence one of Windows is unique, therefore, proving installation is when sending windows messaging, the window handle of the window interface representing these data to be tested can be searched in tested software, windows messaging is sent to the window interface that the window handle that finds is corresponding, to obtain these data to be tested represented in this window interface.Or, also the window handle that the window interface that represents these data to be tested is corresponding directly can be pre-set in current test case, when sending windows messaging, directly windows messaging is sent to the window interface that the window handle that pre-sets is corresponding, to obtain these data to be tested represented in this window interface.
Continue to adopt example, what proving installation determined current testing case is whether show account B in the good friend interface of account A, and determine that the identification information of data to be tested is: the buddy list that the good friend interface of this chat software represents, then buddy list is carried in the first acquisition message as identification information and sends to this chat software.
S103: obtain the data to be tested that this tested software provides according to the identification information of these data to be tested.
Continue along using example, after receiving the first acquisition message as this chat software of tested software, according to the buddy list of carrying in this first acquisition message, search the data from each good friend represented in good friend interface, the data of each good friend found are supplied to proving installation as data to be tested.
S104: the data to be tested according to obtaining are tested this tested software.
The data to be tested that proving installation will obtain, contrast with default test data, test tested software.
Continue along using example, the data of each good friend that proving installation will the good friend interface of this chat software obtained represent, contrast with the data of each good friend preset, when the data of each good friend obtained are completely the same with the data of each good friend preset, then determine that the data that the good friend interface of this chat software represents are correct, otherwise determine incorrect.
Concrete, suppose to use account A log in this chat software and add account B for after good friend, the data of each good friend that the good friend interface of this chat software should represent are: account C, account D, account B, then by account C, account D, account B is as the data of each good friend preset, the data of each good friend that the good friend interface of this chat software obtained represents are: account C, account D, after then contrasting, find that the data obtained are consistent with the data transformation preset, determine that the data that the good friend interface of this chat software represents are incorrect, and generate test report output according to test result.
In above process, proving installation obtains the data that the interface of tested software represents, and accordingly this tested software is tested, compared to the method can only tested the ruuning situation of tested software in prior art, the method for testing that the embodiment of the present application provides improves the accuracy of test.
In the embodiment of the present application, in order to make tested software when searching data to be tested, do not affect the application of other functions as far as possible, thus improve the accuracy of test further, one can be increased independent of the automatic test suite of other functional modules in tested software, be designated as AutoTest.dll assembly.Proving installation sends the first method obtaining message to tested software and is specially, and sends first and obtains message, search data to be tested by automatic test suite in the interface of tested software to the automatic test suite in tested software.
And, in order to reduce the impact that proving installation causes other functions of tested software when obtaining data to be tested further, proving installation can be made an appointment a memory location with automatic test suite, be designated as the first memory location, this first memory location is for storing the data to be tested found.Concrete, after automatic test suite receives the first acquisition message, the identification information of the data to be tested of carrying in message is obtained according to first, the data to be tested that the identification information of these data to be tested is corresponding are searched in tested software, the statistical conversion to be tested found is kept on the first memory location of agreement, the data to be tested of proving installation reading and saving on first memory location of arranging with this automatic test suite, to obtain data to be tested.Conveniently test suite searches data to be tested automatically, when the first acquisition message that proving installation sends is windows messaging, can the window handle of the window interface representing data to be tested be carried in windows messaging, automatic test suite then according to this window handle, can search data to be tested in corresponding window interface.
Said method performs the step of searching data to be tested by the automatic test suite of other functional modules independent of tested software, can reduce when searching data to be tested the impact that other functions of this tested software cause.And, the data to be tested found are kept on the first memory location by automatic test suite, tested software is skipped by proving installation, directly on this first memory location, read data to be tested, impact when proving installation obtains data to be tested, other functions of tested software caused can be reduced, further increase the accuracy of test.
In addition, automatic test suite is by the statistical conversion to be tested found and when being kept on the first memory location, this data to be tested are read accurately in order to enable proving installation, the data to be tested found can also be converted to the statistical conversion of setting form by automatic test suite, and the data of the setting form of derivation are kept on the first memory location of agreement.Wherein, this setting form can be arranged according to proving installation and automatic test suite agreement in advance, such as this setting form can be extend markup language (ExtensibleMarkupLanguage, XML) form, namely data to be tested are kept on the first memory location by automatic testing equipment in xml format.
Consider in actual applications, lawless person may utilize the automatic test suite in tested software to pretend to be tester to obtain data.Continue along using example, lawless person may utilize the automatic test suite in chat software to search the data of each good friend that the good friend interface of account A represents, to carry out some illegal operations.Therefore in order to improve the security of the data of preserving in tested software, in the embodiment of the present application, first proving installation will send authentication information to automatic test suite, automatic test suite is when determining that this authentication information is kept in the white list pre-set, just in tested software, search data to be tested, if determine, this authentication information is not kept in the white list pre-set, then explanation transmission first obtains the transmit leg of message may be lawless person, does not search data to be tested.
Concrete, before the data to be tested of proving installation reading and saving on the first memory location, send authentication information to automatic test suite, and determine to receive automatic test suite returns first confirm notice after, data to be tested are read in the first memory location.Wherein, first confirms for automatic test suite, notice is determining that this authentication information is kept in the white list of setting, and the first memory location data to be tested found being kept at this agreement returns afterwards.
Continue along using example, when testing chat software, because first proving installation will use account A to log in this chat software, therefore the account A used just can as authentication information, account A is first sent to automatic test suite by proving installation, automatic test suite determines that this account A is present in the white list of setting, then during subsequently received first acquisition message, for data to be tested searched by proving installation.Account A directly can also be carried in the first acquisition message and send to automatic test suite by proving installation, automatic test suite obtains according to first the account A carried in message, determine that this account A is present in the white list of setting, then obtain the identification information of the data to be tested of carrying in message according to first, search data to be tested.
And, in order to improve the security of the data of preserving in tested software further, automatic test suite in this tested software can be set as can only being called by the terminal at the current place of this tested software, namely can only call this locality, not by network call.All code macro switches in automatic test suite can also be protected; when issuing this tested software; this macro switch is turned off, to shield the automatic test suite in this tested software, is equivalent to the automatic test suite deleted in the tested software of externally issue.
Due in actual applications, the process of a test may comprise several test cases, and in each test case, proving installation may all will input some data and test.Continue along being described by example, after the interpolation good friend function of chat software is tested, also to test the marking Function of good friend, proving installation needs analog manual operation to open the interface of the mark of certain good friend of amendment, and mark at corresponding Position input, whether being labeled on this good friend interface of this good friend after mark is added in test shows correctly.
Therefore, in the embodiment of the present application, proving installation also will determine the identification information carrying out the data to be entered that follow-up test use-case will input, and the second acquisition message obtaining this tested software and show the display position information of these data to be entered is sent to automatic test suite, carry the identification information of data to be entered in this second acquisition message.After automatic test suite receives this second acquisition message, the identification information of the data to be entered of carrying in message is obtained according to second, in tested software, search the display position information that this tested software shows these data to be entered, the display position information found is derived and is kept on second memory location of arranging with proving installation.Proving installation then this tested software of reading and saving can show the display position information of these data to be entered on second memory location of arranging with automatic test suite, and according to the display position information read, in corresponding Position input data to be entered, carry out follow-up test use-case.
Continue along using example, as shown in Figure 2, the good friend's marking Function to test chat software that Fig. 2 provides for the embodiment of the present application, the good friend interface of this chat software of explanation.When testing good friend's marking Function of this chat software, first proving installation determines that data to be entered that follow-up test will input are the mark of good friend B, therefore determine the identification information being labeled as data to be entered of good friend B, then send the second acquisition message of carrying this identification information to the automatic test suite in this chat software.Automatic test suite then searches the display position information of the mark of this chat software display good friend B, and the display position information found as shown in Figure 2, derives and is kept on the second memory location by the positional information of the mark of the display good friend B found.Wherein, this display position information can be the coordinate information of screen, and when display position information being kept on the second memory location, the data that display position information can be converted to setting form are equally preserved, as XML format.Proving installation is reading displayed positional information on the second memory location, supposes that data to be entered are bbb, then according to this display position information, the position of the mark of display good friend B is as shown in Figure 2 added mark bbb.In subsequent steps, test then can test according to method as shown in Figure 1 whether the mark of the good friend B that this good friend interface shows is bbb.
Same, in order to improve the security of the data of preserving in tested software, automatic test suite, before searching tested software and showing the display position information of data to be entered, also will determine that the authentication information that proving installation sends is kept in the white list of setting.Concrete, proving installation is on the second memory location before reading displayed positional information, send authentication information to automatic test suite, and determine to receive automatic test suite returns second confirm notice after, read the display position information that the second memory location is preserved.Wherein, second confirms for automatic test suite, notice is determining that authentication information is kept in the white list of setting, and the display information found is derived and to be kept on the second memory location of this agreement and return afterwards.
Further, authentication information also can directly be carried in the second acquisition message by proving installation, sends to automatic test suite, sends to automatic test suite substantially identical with being directly carried in the first acquisition message by authentication information, just repeats no longer one by one here.
In the embodiment of the present application, in order to improve testing efficiency, first acquisition message and second can be obtained message coalescing is an acquisition message, also namely proving installation can determine the identification information of the data to be tested needed for current test, and determine the identification information of the data to be entered that follow-up test will input, the identification information of the identification information of data to be tested, data to be entered and authentication information are carried in an acquisition message and send to automatic test suite.Now, same memory location also can be merged in first memory location and the second memory location, first confirms that notice and second confirms that notice also can be merged into one and confirm notice, also be that automatic test suite is according to this acquisition message, judge whether obtain the authentication information carried in message exists with white list, if, then search the data to be tested in tested software, and search the display position information that tested software shows data to be entered, the data to be tested found and display position information are derived and is kept on the memory location of agreement, and return confirmation notice to proving installation, to notify that proving installation reads data to be tested and display position information on the memory location of agreement, otherwise, do not search data to be tested and display position information.
The DCO process that Fig. 3 provides for the embodiment of the present application, specifically comprises the following steps:
S301: the identification information of the data to be tested of carrying out needed for current test case determined by proving installation, and carry out the identification information of the data to be entered that follow-up test use-case will input.
Wherein, data to be tested comprise the data that the interface of tested software represents.
S302: the identification information of the identification information of data to be tested, data to be entered and authentication information are carried at the automatic test suite obtaining in message and send in tested software.
S303: test suite is according to the authentication information carried in the acquisition message received automatically, judges whether this authentication information is kept in the white list of setting, if so, then carries out step S304, otherwise carry out step S309.
S304: automatically test suite searches data to be tested corresponding to the identification information of data to be tested in tested software, searches the display position information that tested software shows data to be entered.
S305: the statistical conversion data to be tested found and display position information being converted to setting form, and be kept on the memory location of arrange with proving installation, return to proving installation and confirm to notify.
S306: after proving installation receives the confirmation notice, the memory location of this agreement is read data to be tested and display position information.
S307: test tested software according to data to be tested, generates and exports test report.
S308: according to display position information, in these data to be entered of corresponding Position input, carries out follow-up test use-case, returns step S301.
Wherein, when determining do not have follow-up test, then test process terminates.
S309: do not search data to be tested and display position information, refusal obtains message.
The proving installation structural representation that Fig. 4 provides for the embodiment of the present application, specifically comprises:
Determination module 401, for determining the identification information of the data to be tested of carrying out needed for current test case, described data to be tested comprise the data that the interface of tested software represents;
Sending module 402, for sending the first acquisition message obtaining described data to be tested to described tested software, described first obtains the identification information carrying described data to be tested in message;
Obtain module 403, for obtaining the data to be tested that described tested software provides according to the identification information of described data to be tested;
Test module 404, for testing described tested software according to the data to be tested obtained.
Described sending module 402 specifically for, send described first to the automatic test suite in described tested software and obtain message;
Described acquisition module 403 specifically for, the data to be tested of reading and saving on first memory location of arranging with described automatic test suite, wherein, described automatic test suite obtains the identification information of the data described to be tested of carrying in message according to receive described first, in described tested software, search the data to be tested that the identification information of described data to be tested is corresponding, the statistical conversion to be tested found is kept on the first memory location of described agreement.
Described acquisition module 403 specifically for, first memory location of described agreement is read the data of the setting form of conversion, wherein, the data to be tested found are converted to the statistical conversion of setting form by described automatic test suite, and the data of the setting form of derivation are kept on described first memory location.
Described device also comprises:
Authentication module 405, before the data to be tested of reading and saving on first memory location of arranging with described automatic test suite, authentication information is sent to described automatic test suite, and determine to receive that described automatic test suite returns first confirms notice, wherein, described first confirm for described automatic test suite, notice is determining that described authentication information is kept in the white list of setting, and the first memory location being kept at described agreement is returned the statistical conversion to be tested found afterwards.
Described determination module 401 also for, determine the identification information carrying out the data to be entered that follow-up test use-case will input;
Described sending module 402 also for, send second of the display position information obtaining the described data to be entered of described tested software display to described automatic test suite and obtain message, described second obtains the identification information carrying described data to be entered in message;
Described acquisition module 403 also for, on second memory location of arranging with described automatic test suite, the described tested software of reading and saving shows the display position information of described data to be entered, wherein, described automatic test suite obtains the identification information of the data described to be entered of carrying in message according to receive described second, in described tested software, search the display position information of the described data to be entered of described tested software display, the display position information found is derived and is kept on the second memory location of described agreement;
Described test module 404 also for, according to the described display position information read, data to be entered described in corresponding Position input, and carry out follow-up test use-case.
Described device also comprises:
Authentication module 405, before the described tested software of reading and saving on second memory location of arranging with described automatic test suite shows the display position information of described data to be entered, authentication information is sent to described automatic test suite, and determine to receive that described automatic test suite returns second confirms notice, wherein, described second confirm for described automatic test suite, notice is determining that described authentication information is kept in the white list of setting, and the display information found derived and to be kept on the second memory location of described agreement and return afterwards.
The test macro specific implementation structural representation comprising proving installation and tested software that Fig. 5 provides for the embodiment of the present application, as shown in Figure 5, proving installation sends to the automatic test suite in tested software and obtains message, automatic test suite searches data to be tested and display position information, the data to be tested found and display position information are converted to the statistical conversion of setting form, and be kept on the memory location of agreement, proving installation is skipped tested software and read corresponding data on the memory location of this agreement, in order to carry out testing and generating test report, and carry out follow-up test case.Wherein, this proving installation can be test script, also can be visualization interface.When proving installation is test script, but without the need to any manual intervention in the process of realization test, reduce workload as far as possible.When proving installation is visualization interface, manually by the process adjustment at any time of interface to test, the dirigibility of test can be improved.
The embodiment of the present application provides a kind of method of testing and device, the method determines the identification information of the data to be tested of carrying out needed for current test case, these data to be tested comprise the data that the interface of tested software represents, the acquisition message obtaining data to be tested is sent to tested software, obtain the data to be tested that tested software provides, and according to the data to be tested obtained, tested software is tested.Owing to obtaining the data that the interface of tested software represents in the embodiment of the present application, and according to the data that this page represents, tested software is tested, whether the data that therefore can also the interface of testing software represent are correct, improve the accuracy of testing software.
Obviously, those skilled in the art can carry out various change and modification to the application and not depart from the spirit and scope of the application.Like this, if these amendments of the application and modification belong within the scope of the application's claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.

Claims (8)

1. a method of testing, is characterized in that, comprising:
Determine the identification information of the data to be tested of carrying out needed for current test case, described data to be tested comprise the data that the interface of tested software represents; And
Send the first acquisition message obtaining described data to be tested to described tested software, described first obtains the identification information carrying described data to be tested in message; And
Obtain the data to be tested that described tested software provides according to the identification information of described data to be tested;
Data to be tested according to obtaining are tested described tested software;
Send the first acquisition message obtaining described data to be tested to described tested software, specifically comprise:
Send described first to the automatic test suite in described tested software and obtain message;
Obtain the data to be tested that described tested software provides according to the identification information of described data to be tested, specifically comprise:
The data to be tested of reading and saving on first memory location of arranging with described automatic test suite, wherein, described automatic test suite obtains the identification information of the data described to be tested of carrying in message according to receive described first, in described tested software, search the data to be tested that the identification information of described data to be tested is corresponding, the statistical conversion to be tested found is kept on the first memory location of described agreement.
2. the method for claim 1, is characterized in that, described automatic test suite is by the statistical conversion to be tested found and be kept on the first memory location of described agreement, specifically comprises:
The data to be tested found are converted to the statistical conversion of setting form by described automatic test suite, and the data of the setting form of derivation are kept on the first memory location of described agreement.
3. the method for claim 1, is characterized in that, on first memory location of arranging with described automatic test suite reading and saving data to be tested before, described method also comprises:
Authentication information is sent to described automatic test suite; And
Determine to receive that described automatic test suite returns first confirms notice, wherein, described first confirm for described automatic test suite, notice is determining that described authentication information is kept in the white list of setting, and the first memory location being kept at described agreement is returned the statistical conversion to be tested found afterwards.
4. the method for claim 1, is characterized in that, described method also comprises:
Determine the identification information carrying out the data to be entered that follow-up test use-case will input; And
Send second of the display position information obtaining the described data to be entered of described tested software display to described automatic test suite and obtain message, described second obtains the identification information carrying described data to be entered in message; And
On second memory location of arranging with described automatic test suite, the described tested software of reading and saving shows the display position information of described data to be entered, wherein, described automatic test suite obtains the identification information of the data described to be entered of carrying in message according to receive described second, in described tested software, search the display position information of the described data to be entered of described tested software display, the display position information found is derived and is kept on the second memory location of described agreement;
According to the described display position information read, data to be entered described in corresponding Position input, and carry out follow-up test use-case.
5. method as claimed in claim 4, is characterized in that, before on second memory location of arranging with described automatic test suite, the described tested software of reading and saving shows the display position information of described data to be entered, described method also comprises:
Authentication information is sent to described automatic test suite; And
Determine to receive that described automatic test suite returns second confirms notice, wherein, described second confirm for described automatic test suite, notice is determining that described authentication information is kept in the white list of setting, and the display information found derived and to be kept on the second memory location of described agreement and return afterwards.
6. a proving installation, is characterized in that, comprising:
Determination module, for determining the identification information of the data to be tested of carrying out needed for current test case, described data to be tested comprise the data that the interface of tested software represents;
Sending module, for sending the first acquisition message obtaining described data to be tested to described tested software, described first obtains the identification information carrying described data to be tested in message;
Obtain module, for obtaining the data to be tested that described tested software provides according to the identification information of described data to be tested;
Test module, for testing described tested software according to the data to be tested obtained;
Described sending module specifically for, send described first to the automatic test suite in described tested software and obtain message;
Described acquisition module specifically for, the data to be tested of reading and saving on first memory location of arranging with described automatic test suite, wherein, described automatic test suite obtains the identification information of the data described to be tested of carrying in message according to receive described first, in described tested software, search the data to be tested that the identification information of described data to be tested is corresponding, the statistical conversion to be tested found is kept on the first memory location of described agreement.
7. device as claimed in claim 6, it is characterized in that, described acquisition module specifically for, first memory location of described agreement is read the data of the setting form of conversion, wherein, the data to be tested found are converted to the statistical conversion of setting form by described automatic test suite, and the data of the setting form of derivation are kept on described first memory location.
8. device as claimed in claim 6, it is characterized in that, described device also comprises:
Authentication module, before the data to be tested of reading and saving on first memory location of arranging with described automatic test suite, authentication information is sent to described automatic test suite, and determine to receive that described automatic test suite returns first confirms notice, wherein, described first confirm for described automatic test suite, notice is determining that described authentication information is kept in the white list of setting, and the first memory location being kept at described agreement is returned the statistical conversion to be tested found afterwards.
CN201110328247.2A 2011-10-25 2011-10-25 A kind of method of testing and device Active CN103077110B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110328247.2A CN103077110B (en) 2011-10-25 2011-10-25 A kind of method of testing and device
HK13107358.6A HK1180085A1 (en) 2011-10-25 2013-06-25 A testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110328247.2A CN103077110B (en) 2011-10-25 2011-10-25 A kind of method of testing and device

Publications (2)

Publication Number Publication Date
CN103077110A CN103077110A (en) 2013-05-01
CN103077110B true CN103077110B (en) 2015-11-25

Family

ID=48153643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110328247.2A Active CN103077110B (en) 2011-10-25 2011-10-25 A kind of method of testing and device

Country Status (2)

Country Link
CN (1) CN103077110B (en)
HK (1) HK1180085A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932979A (en) * 2015-07-01 2015-09-23 王沛 Software fault locating method and device
CN105260082B (en) * 2015-10-16 2018-12-07 华为技术有限公司 A kind of test data methods of exhibiting and exploitation terminal
CN106713011B (en) * 2016-11-22 2020-04-28 腾讯科技(深圳)有限公司 Method and system for obtaining test data
US10572361B2 (en) * 2017-04-28 2020-02-25 The Boeing Company Concurrent production use of a production enterprise system and testing of a modified enterprise system
CN108389104B (en) * 2018-01-31 2021-06-25 口碑(上海)信息技术有限公司 Simulation verification method and device for network activities
CN110471833A (en) * 2019-06-27 2019-11-19 网宿科技股份有限公司 A kind of acquisition methods of test data, electronic equipment and storage medium
CN112667513A (en) * 2020-12-31 2021-04-16 长沙市到家悠享网络科技有限公司 Test method, test device, test equipment and storage medium
CN113362175B (en) * 2021-06-23 2023-07-25 富途网络科技(深圳)有限公司 Interface display method and device, storage medium and terminal equipment
CN113468073A (en) * 2021-08-02 2021-10-01 在线途游(北京)科技有限公司 Automatic testing method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630286A (en) * 2009-08-07 2010-01-20 金蝶软件(中国)有限公司 Automatic testing method and automatic testing device
CN102156673A (en) * 2011-04-20 2011-08-17 北京航空航天大学 Test case description oriented GUI (Graphical User Interface) automatic test system and test method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100504809C (en) * 2005-08-25 2009-06-24 国际商业机器公司 Device and method for implementing test scenarios replay in different voice environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630286A (en) * 2009-08-07 2010-01-20 金蝶软件(中国)有限公司 Automatic testing method and automatic testing device
CN102156673A (en) * 2011-04-20 2011-08-17 北京航空航天大学 Test case description oriented GUI (Graphical User Interface) automatic test system and test method thereof

Also Published As

Publication number Publication date
HK1180085A1 (en) 2013-10-11
CN103077110A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
CN103077110B (en) A kind of method of testing and device
CN108429670B (en) Message sending method, message receiving method and terminal
CN104281106A (en) Remote control method and system for air conditioner
CN107818046B (en) A/B test method and device for application program page
CN105050047A (en) Signal strength prompting method and terminal
CN107729014B (en) Page jump method and structure based on Android
CN103596021A (en) Account login method, device and system of intelligent television
CN107179971B (en) Automatic coding method and system for CAN bus fault processing
CN104602186A (en) Contact positioning method
CN104021500A (en) Product quality tracing device based on two-dimensional bar code technology
CN112269746A (en) Automatic testing method and related equipment
CN108255700B (en) Test result generation method and device
CN104168555B (en) Communication prompt method and device
CN104184768A (en) Method of transmitting data of Internet of things, device and system
CN103532941A (en) Graphical page presentation method and device in CGS (client gateway server) mode
CN105488199A (en) Mixed form processing method, device and mobile terminal
CN113722589B (en) Information generation method, device, server and storage medium
CN111131358A (en) Information acquisition method, device and system, readable storage medium and electronic equipment
CN110602194B (en) IOT message subscription method, IOT message subscription device and computer readable storage medium
CN112530435B (en) Data transmission method, device and system, readable storage medium and electronic equipment
CN108235249B (en) Method and device for determining coding mode, storage medium and terminal
US20100262416A1 (en) Computer and method for simulating an attention command test of a mobile phone
CN112905464A (en) Application running environment data processing method and device
CN113645052A (en) Firmware debugging method and related equipment
CN103838607A (en) Text display method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1180085

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1180085

Country of ref document: HK