We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
测试异常
若识
To determine that a test abnormal keyword exists in the test log if so.
A first determining unit configured to determine that the test abnormal keyword exists in the test log when the judging result of the first judging unit is yes.
Specifically, the device comprises: a test running module 1 configured to assemble acquired test demand information to generate a test command line, and run the generated test command line to send out a test instruction to execute a test of a condition indicated by the demand information; an identification module 2 configured to monitor a test log and perform keyword identification on the content of the test log; and an extraction module 3 configured to extract information, associated with an abnormal keyword, in the test log if the test abnormal keyword exists in the test log according to the identification, and take the information as abnormal information.
S103: if a test abnormal keyword exists in the test log according to the identification, extracting information, associated with the abnormal keyword, in the test log and taking the information as abnormal information.
The method of claim 1, wherein the method further comprises the following steps before extracting the information, associated with the abnormal keyword, in the test log and taking the information as abnormal information if the test abnormal keyword exists in the test log according to the identification: if a keyword for representing abnormity exists in the test log in a keyword identification process, determining whether the keyword for representing the abnormity is generated due to execution of the test of the condition indicated by the demand information.
S206: if the test abnormal keyword exists in the test log according to the identification, extracting information, associated with the abnormal keyword, in the test log and taking the information as abnormal information; and the abnormal information can be saved in forms of copying and dumping and others. S207: displaying the extracted abnormal information in an abnormity display window; Namely, taking the information associated with the abnormal keyword in the test log and extracted in S206 as abnormal information and displaying the abnormal information to the user.
During the testing process and in S205 according to the embodiment of the invention, one determination method or a more combined determination method therein can be adopted to determine whether the test abnormal keyword exists.
A first judging unit configured to judge whether an abnormal information keyword exists in a Logcat log when the test log includes the Logcat log, and to further judge whether the keyword for representing the abnormity is generated due to execution of the test of the condition indicated by the demand information when the abnormal information keyword exists; A first determining unit configured to determine that the test abnormal keyword exists in the test log when the judging result of the first judging unit is yes.
To ensure product safety, we also test abnormal conditions and test withstand voltages and leakage after the products have been subjected to worst-case high temperature and high humidity conditions.
The following is a description in detail on an abnormal information acquisition device disclosed as an embodiment of the invention. Please refer to Figure 3, namely a structure diagram of an abnormal information acquisition device disclosed as an embodiment of the invention. The device can be arranged in intelligent terminal equipment, such as smartphones, tablet personal computers and intelligent wearable devices, and can also be arranged in some servers configured to test an application program of the intelligent terminal equipment. Specifically, the device comprises: a test running module 1 configured to assemble acquired test demand information to generate a test command line, and run the generated test command line to send out a test instruction to execute a test of a condition indicated by the demand information; an identification module 2 configured to monitor a test log and perform keyword identification on the content of the test log; and an extraction module 3 configured to extract information, associated with an abnormal keyword, in the test log if the test abnormal keyword exists in the test log according to the identification, and take the information as abnormal information.
The device of claim 9, wherein the determining module comprises: a third judging unit configured to judge whether an ANR field for representing the abnormity of a response exists in an ANR log when the test log includes the ANR log; and to further judge whether the ANR field for representing the abnormity of the response is generated due to execution of the test of the condition indicated by the demand information when the ANR field for representing the abnormity of the response exists; and a third determining unit configured to determine that the test abnormal keyword exists in the test log when the judging result of the third judging unit is yes. The device of any one of claims 8 to 12, further comprising: an acquisition module configured to acquire the test demand information input in a demand input box by a user, wherein the test demand information includes any one or more of test time information, test object information, interval information and event proportion information.
Specifically, as shown in Figure 5, as for a Logcat log, the determining module 4 can include the following units for relevant processing: a first judging unit 41 configured to judge whether an abnormal information keyword exists in the Logcat log when a test log includes the Logcat log, and to further judge whether the keyword for representing the abnormity is generated due to execution of a test of a condition indicated by demand information when the abnormal information keyword exists; and a first determining unit 42 configured to determine that a test abnormal keyword exists in the test log when the judging result of the first judging unit 41 is yes. As shown in Figure 6, as for a Monkey log, the determining module 4 can include the following units for relevant processing: a second judging unit 43 configured to judge whether a CRASH field exists in the Monkey log when a test log includes the Monkey log; and to further judge whether the CRASH field is generated due to execution of a test of a condition indicated by demand information when the CRASH field exists; and a second determining unit 44 configured to determine that a test abnormal keyword exists in the test log when the judging result of the second judging unit 43 is yes.
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.