CN107908551A - Terminal software test method, device, terminal and computer-readable storage medium - Google Patents

Terminal software test method, device, terminal and computer-readable storage medium Download PDF

Info

Publication number
CN107908551A
CN107908551A CN201711027001.5A CN201711027001A CN107908551A CN 107908551 A CN107908551 A CN 107908551A CN 201711027001 A CN201711027001 A CN 201711027001A CN 107908551 A CN107908551 A CN 107908551A
Authority
CN
China
Prior art keywords
test
software
terminal
preset
daily record
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
CN201711027001.5A
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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201711027001.5A priority Critical patent/CN107908551A/en
Publication of CN107908551A publication Critical patent/CN107908551A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Abstract

The invention discloses a kind of terminal software test method, terminal software test method comprises the following steps:Based on the triggering software test request of preset Software Testing Tool, and when detecting software test request, the test assignment in the software test request is obtained;According to the test assignment and the preset Software Testing Tool, software automated testing is carried out to terminal;Based on the mistake generation test errors daily record in software automated testing, so that tester carries out software adjustment.The invention also discloses a kind of terminal software test device, terminal and computer-readable storage medium.The present invention realizes the automatic test of terminal, makes terminal test more convenient, improves terminal test efficiency.

Description

Terminal software test method, device, terminal and computer-readable storage medium
Technical field
The present invention relates to field of computer technology, more particularly to terminal software test method, device, terminal and computer to deposit Storage media.
Background technology
The test method of current application software be rely on server (server is used for the PC ends tested), Need terminal being connected wire communication with server during software test, and the test assignment division of labor is all manual by tester Carry out.
By taking Monkey is tested as an example, existing Monkey tests are that the relative program of test is arranged at server, when need When carrying out the Monkey tests of mobile terminal, mobile terminal and server are subjected to wired data connection, to carry out terminal Monkey tests, the test of such Monkey test modes is relatively complicated, with this at the same time, needs tester during the test Member has the test technical ability of specialty, the analysis that can be tested;Current urgently a kind of more automatic terminal software test method, So that the test of terminal software is simpler flexibly.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill Art.
The content of the invention
It is a primary object of the present invention to provide a kind of terminal software test method, device, terminal and computer storage to be situated between Matter, it is intended to when terminal software is tested, terminal and server (being used for the PC ends tested) are departed from, realize that the automation of terminal is surveyed Examination, makes terminal test more convenient, improves terminal test efficiency.
To achieve the above object, the present invention provides a kind of based on the triggering software test request of preset Software Testing Tool, and When detecting software test request, the test assignment in the software test request is obtained;
According to the test assignment and the preset Software Testing Tool, software automated testing is carried out to terminal;
Based on the mistake generation test errors daily record in software automated testing, so that tester carries out software adjustment.
Alternatively, according to the test assignment and the preset Software Testing Tool, software automation survey is carried out to terminal The step of examination, includes:
Corresponding test parameter is configured based on the test assignment, by the test case in the preset Software Testing Tool Frame is combined with test parameter, the corresponding test case of configuration generation test assignment;
When detecting that test case configuration is completed, there is provided the corresponding test environment of the test case;
The test case is performed with test environment based on described, to complete the software automated testing of terminal.
Alternatively, according to the test assignment and the preset Software Testing Tool, software automation survey is carried out to terminal The step of examination, further includes:
Judge whether include time task in the test assignment;
If including time task in test assignment, the start node and terminal node of the time task are obtained;
When detect reach start node when, obtain the test parameter based on test assignment configuration, and will be described preset Test case frame in Software Testing Tool is combined with test parameter, the corresponding test case of configuration generation test assignment, with Carry out the software automated testing of terminal;
When detect reach terminal node when triggering terminal software automated testing halt instruction, to stop the soft of terminal Part automatic test.
Alternatively, it is described based on the triggering software test request of preset Software Testing Tool, and detecting that software test please When asking, after the step of obtaining the test assignment in software test request, including:
Based on the preset Software Testing Tool, communication connection monitor function is set;
When detecting terminal communication abnormality, the communication connection authority of terminal is obtained, is connected with carrying out the automatic of terminal communication Connect.
Alternatively, according to the test assignment and the preset Software Testing Tool, software automation survey is carried out to terminal Before the step of examination, further include:
Judge whether the test environment for being directed to test case in preset Software Testing Tool is correct;
If test environment is correct, implementation of test cases;If test environment errors, survey that labeled test terminal is not carried out Example on probation.
Alternatively, it is described based in software automated testing mistake generation test errors daily record, for tester into After the step of row software adjusts, including:
When detecting the request of test errors log query, the test errors daily record is obtained, by the test errors day Full content in will imports preset analytic modell analytical model;
The error message in the extraction test errors daily record of participle method in preset analytic modell analytical model, and the mistake is believed Breath is highlighted, so that tester checks test errors daily record.
Alternatively, it is described based in software automated testing mistake generation test errors daily record, for tester into After the step of row software adjusts, further include:
When the export for detecting test errors daily record is asked, the test errors daily record is exported and is uploaded to high in the clouds;
Each error message in test errors daily record is extracted, and is classified according to the error message, determines mistake class Type;
The frequency that each type of error occurs is counted, when the frequency exceedes threshold value, prompts the tester, so that Tester changes terminal software.
To achieve the above object, the present invention also provides a kind of terminal software test device, the terminal software test device Including:
Acquisition module is detected, for being asked based on the triggering software test of preset Software Testing Tool, and is detecting software During test request, the test assignment in the software test request is obtained;
Automatic test module, for according to the test assignment and the preset Software Testing Tool, being carried out to terminal soft Part automatic test;
Daily record generation module, for generating test errors daily record based on the mistake in software automated testing, for test Personnel carry out software adjustment.
To achieve the above object, the present invention also provides a kind of terminal, the terminal to include:Memory, processor and storage On the memory and the terminal software test program that can run on the processor, wherein:
The terminal software test program realizes terminal software test method described above when being performed by the processor Step.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable storage medium, the computer-readable storage medium On be stored with terminal software test program, the terminal software test program realizes that terminal described above is soft when being executed by processor The step of part test method.
The present invention provides a kind of terminal software test method, comprises the following steps:Triggered based on preset Software Testing Tool Software test is asked, and when detecting software test request, obtains the test assignment in the software test request;According to institute Test assignment and the preset Software Testing Tool are stated, software automated testing is carried out to terminal;Based on software automated testing In mistake generation test errors daily record, for tester carry out software adjustment.The invention also discloses a kind of terminal software Test device, terminal and computer-readable storage medium.Terminal is separated with the PC ends for testing in the present invention, terminal software test When, triggered without user by the PC ends of test, test request can be triggered based on testing tool preset in terminal, and Automatic information software test, realizes the automatic test of terminal, makes terminal test more convenient, improves terminal test effect Rate.
Brief description of the drawings
Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of terminal software test method first embodiment of the present invention;
The refinement flow diagram that Fig. 3 is the step S20 of terminal software test method in Fig. 2;
Fig. 4 is another refinement flow diagram of the step S20 of terminal software test method in Fig. 2;
Fig. 5 is the flow diagram of terminal software test method second embodiment of the present invention;
Fig. 6 is the flow diagram of terminal software test method 3rd embodiment of the present invention;
Fig. 7 is the flow diagram of terminal software test method fourth embodiment of the present invention;
Fig. 8 is the high-level schematic functional block diagram of one embodiment of terminal software test device of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, the terminal structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Terminal of the embodiment of the present invention can with fixed terminal or mobile terminal, wherein, fixed terminal such as " Internet of Things Equipment ", the intelligent air condition with network savvy, intelligent electric lamp, intelligent power etc.;Mobile terminal, such as AR/VR with network savvy Equipment, intelligent sound box, autonomous driving vehicle, PC, smart mobile phone, tablet computer, E-book reader, pocket computer etc. have The terminal device of display function, the present invention in terminal software test device can be terminal building block, can also conduct Independent terminal.
As shown in Figure 1, the terminal can include:Processor 1001, such as CPU, network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is used for realization the connection communication between these components. User interface 1003 can include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 can optionally connect including the wired of standard Mouth, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or the memory of stabilization (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
Alternatively, terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio Circuit, WiFi module;Input unit, than display screen, touch-screen;Network interface can in blanking wave point in addition to WiFi, bluetooth, Probe, 3G/4G/5G internet base station equipment etc..Wherein, sensor ratio such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display screen, proximity sensor can when mobile terminal is moved in one's ear, close display screen and/ Or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) and accelerate The size of degree, can detect that size and the direction of gravity when static, the application available for identification mobile terminal posture is (such as vertical and horizontal Shield switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;Certainly, it is mobile Terminal can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, no longer superfluous herein State.
It will be understood by those skilled in the art that the restriction of the terminal structure shown in Fig. 1 not structure paired terminal, can wrap Include than illustrating more or fewer components, either combine some components or different components arrangement.
As shown in Figure 1, the computer software product is stored in a storage medium (storage medium:It is called computer storage Medium, readable storage medium storing program for executing, computer-readable recording medium are directly medium, such as ROM/RAM, magnetic disc, CD) in, bag Some instructions are included to use so that a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment Deng) method described in each embodiment of the present invention is performed, as can be wrapped in a kind of memory 1005 of computer-readable storage medium Include operating system, network communication module, Subscriber Interface Module SIM and terminal software test application program.
In the terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, is carried out with background server Data communication;User interface 1003 is mainly used for connecting client (user terminal), with client into row data communication;And processor 1001 can be used for calling the terminal software test application program stored in memory 1005, and perform following operation:
Based on the triggering software test request of preset Software Testing Tool, and when detecting software test request, obtain institute State the test assignment in software test request;
According to the test assignment and the preset Software Testing Tool, software automated testing is carried out to terminal;
Based on the mistake generation test errors daily record in software automated testing, so that tester carries out software adjustment.
Further, processor 1001 can call the terminal software test application program stored in memory 1005, also The step of performing according to the test assignment and the preset Software Testing Tool, software automated testing is carried out to terminal bag Include:
Corresponding test parameter is configured based on the test assignment, by the test case in the preset Software Testing Tool Frame is combined with test parameter, the corresponding test case of configuration generation test assignment;
When detecting that test case configuration is completed, there is provided the corresponding test environment of the test case;
The test case is performed with test environment based on described, to complete the software automated testing of terminal.
Further, processor 1001 can call the terminal software test application program stored in memory 1005, also The step of performing according to the test assignment and the preset Software Testing Tool, software automated testing is carried out to terminal is also wrapped Include:
Judge whether include time task in the test assignment;
If including time task in test assignment, the start node and terminal node of the time task are obtained;
When detect reach start node when, obtain the test parameter based on test assignment configuration, and will be described preset Test case frame in Software Testing Tool is combined with test parameter, the corresponding test case of configuration generation test assignment, with Carry out the software automated testing of terminal;
When detect reach terminal node when triggering terminal software automated testing halt instruction, to stop the soft of terminal Part automatic test.
Further, it is described based on the triggering software test request of preset Software Testing Tool, and detecting software test During request, after the step of obtaining the test assignment in software test request, processor 1001 can call memory The terminal software test application program stored in 1005, also performs following operation:
Based on the preset Software Testing Tool, communication connection monitor function is set;
When detecting terminal communication abnormality, the communication connection authority of terminal is obtained, is connected with carrying out the automatic of terminal communication Connect.
Further, according to the test assignment and the preset Software Testing Tool, software automation is carried out to terminal Before the step of test, processor 1001 can call the terminal software test application program stored in memory 1005, also hold The following operation of row:
Judge whether the test environment for being directed to test case in preset Software Testing Tool is correct;
If test environment is correct, implementation of test cases;If test environment errors, survey that labeled test terminal is not carried out Example on probation.
Further, the mistake generation test errors daily record based in software automated testing, for tester After the step of carrying out software adjustment, processor 1001 can call the terminal software test application journey stored in memory 1005 Sequence, also performs following operation:
When detecting the request of test errors log query, the test errors daily record is obtained, by the test errors day Full content in will imports preset analytic modell analytical model;
The error message in the extraction test errors daily record of participle method in preset analytic modell analytical model, and the mistake is believed Breath is highlighted, so that tester checks test errors daily record.
Further, the mistake generation test errors daily record based in software automated testing, for tester After the step of carrying out software adjustment, processor 1001 can call the terminal software test application journey stored in memory 1005 Sequence, also performs following operation:
When the export for detecting test errors daily record is asked, the test errors daily record is exported and is uploaded to high in the clouds;
Each error message in test errors daily record is extracted, and is classified according to the error message, determines mistake class Type;
The frequency that each type of error occurs is counted, when the frequency exceedes threshold value, prompts the tester, so that Tester changes terminal software.
With reference to Fig. 2, in a kind of first embodiment of terminal software test method of the invention, the terminal software test method Including:
Based on the triggering software test request of preset Software Testing Tool, and when detecting software test request, obtain institute State the test assignment in software test request;
According to the test assignment and the preset Software Testing Tool, software automated testing is carried out to terminal;
Based on the mistake generation test errors daily record in software automated testing, so that tester carries out software adjustment.
, it is necessary to import Software Testing Tool in the terminal, (Software Testing Tool, is called software test before the present embodiment Script), the Software Testing Tool can depart from the PC ends for test, in the terminal independent operating, realize the software of terminal Automatic test, test environment monitoring, terminal communication connection monitoring function and/or the function of test errors daily record classification, with Exemplified by Monkey, tester customizes compiling Monkey testing tools again, and it is de- to initiate test assignment realization by Script tool Performed from PC, Software Testing Tool can receive test request.
Specifically, realize that the step of terminal departs from the PC ends surveyed includes by preset Software Testing Tool:
Step S10, based on the triggering software test request of preset Software Testing Tool, and is detecting software test request When, obtain the test assignment in the software test request.
Tester is based on preset Software Testing Tool triggering software test request in terminal, wherein triggering software test please The mode asked is varied, can be phonetic order, or tester rocks test terminal, or tester at end Test request, mode of the tester based on preset Software Testing Tool triggering software test request in terminal are triggered on the interface of end Do not limit, there is greatly difference with the triggering mode of existing terminal software test, i.e. in existing terminal software test eventually End and server wired connection, detect that server just can be with triggering terminal software test when passing through wired connection in the terminal During test request, then terminal receive server import testing tool carry out software test, the present invention in preset software test Instrument receives software test request independent of server, when terminal detects software test request, obtains in test request Test assignment, test assignment can be inputted by tester, or instructed according to test and automatic defined software test and appoint Business, or acquiescence perform whole test assignments in Experience of Software Testing Work.
In the present embodiment, wiredly and/or wirelessly it is connected with server without terminal so that terminal software is tested more It is convenient to add, and tester can save the unnecessary time, shortens the time of software test, improves the effect of software test Rate.
Step S20, according to the test assignment and the preset Software Testing Tool, software automation survey is carried out to terminal Examination.
Before the test assignment in performing Software Testing Tool, it is also necessary to test environment is detected, specifically, detection test Environment comprises the following steps:
Step a, judge whether the test environment for being directed to test case in preset Software Testing Tool is correct;
If step b, test environment is correct, implementation of test cases;If test environment errors, labeled test terminal is not held Capable test case.
It is due to by the judgement of test environment:Performed again after performing each test case, after being initialized next Test case, initialization are to remove the trace of the test case of executed, avoid influencing since parameter such as does not reduce at the factor The test of next test case, so as to influence test result.After test environment has been detected further, according to test assignment The test script in preset Software Testing Tool is performed, software automated testing is carried out to terminal.
With reference to figure 3, step S20 includes:
Step S21, configures corresponding test parameter, by the preset Software Testing Tool based on the test assignment Test case frame is combined with test parameter, the corresponding test case of configuration generation test assignment;
Step S22, when detecting that test case configuration is completed, there is provided the corresponding test environment of the test case;
Step S23, performs the test case, to complete the survey of the software automation of terminal based on described with test environment Examination.
Terminal is based on the test assignment and configures corresponding test parameter, i.e. is configured if terminal software compatibility test The test parameter of compatibility test, if carrying out the pressure test of terminal software, the test parameter of corresponding configuration pressure test (that is, Software Testing Tool configures different pressure values), the survey of corresponding configuration touching test if the touching test of terminal is carried out Trying parameter, (that is, the different touch track of Software Testing Tool, the wherein generation of touch track can be to determine initial position, really Determine destination address, formed according to different connection modes), the test parameter configured is combined from different test cases, is matched somebody with somebody The corresponding test case of generation test assignment is put, after the completion of the corresponding Test cases technology of test assignment, determines test environment, The automatic test of terminal is completed to perform the test case using test environment.
In the present embodiment, user need not be manually entered test parameter, make the intelligence test of terminal more flexibly intelligent.
Step S30, based on the mistake generation test errors daily record in software automated testing, so that tester's progress is soft Part adjusts.
Based on the mistake generation test errors daily record in software automated testing, contain in test errors daily record:Error message, Termination ID, testing time etc., tester can check test errors daily record, and carry out terminal software according to test errors daily record Adjustment.
Terminal is separated with the PC ends for testing in the present embodiment, when terminal software is tested, passes through survey without user The PC ends of examination are triggered, and test request can be triggered based on testing tool preset in terminal, and automatically information software is surveyed Examination, realizes the automatic test of terminal, makes terminal test more convenient, improve terminal test efficiency;Terminal can be with the same time Test environment is initialized, ensures the accuracy rate of terminal software test.
Further, with reference to Fig. 4, the present embodiment proposes on the basis of first embodiment, with first embodiment Difference lies in, according to time task whether is set in test assignment, the software automated testing of terminal is carried out in the present embodiment, originally Step S20 in the terminal software test method is invented to further include:
Step S24, judges whether include time task in the test assignment.
Step S25, if including time task in test assignment, obtains the start node and terminal node of the time task Point.
Step S26, when detect reach start node when, obtain based on the test assignment configuration test parameter, and will Test case frame in the preset Software Testing Tool is combined with test parameter, the corresponding test of configuration generation test assignment Use-case, to carry out the software automated testing of terminal.
Step S27, when detect reach terminal node when triggering terminal software automated testing halt instruction, with stop The software automated testing of terminal.
Different mission bit streams is included in preset test assignment, whether terminal detection tester sets time task, if User setting time task, then obtain the start node and terminal node of time task, when reaching start node, terminal is automatic Software test is triggered to ask, preset Software Testing Tool obtains the test parameter based on test assignment configuration in terminal, And combined the test case frame in the preset Software Testing Tool with test parameter, configuration generation test assignment is corresponding Test case, to carry out the software automated testing of terminal, the software automated testing of triggering terminal when reaching terminal node Halt instruction, to stop the software automated testing of terminal.
In the present embodiment by setting time task, terminal carries out software automation survey automatically during arrival time node Examination, is checked without user, it is possible to realizes the software automated testing of terminal, improves the flexibility of terminal software test, Since the software test time is longer, tester can set the software automation of period progress terminal in working road to survey Examination, the period that is on duty check test errors daily record, make the software test of terminal from the limitation of the factors such as time.
Further, with reference to Fig. 5, the second embodiment of the present invention and the first embodiment of the present invention, difference lies in this Embodiment sets the function of communication intercept when premises automation is tested, and the terminal software test method includes:
Step S40, based on the preset Software Testing Tool, sets communication connection monitor function;
Step S50, when detecting terminal communication abnormality, obtains the communication connection authority of terminal, to carry out terminal communication Automatic connection.
Based on preset Software Testing Tool, communication connection monitor function is set, can with the communication connection of monitor terminal, When detecting that terminal communication connection disconnects, preset Software Testing Tool obtains the authority of terminal communication connection, to carry out terminal Automatic connection, i.e. increase the monitoring module of WiFi, wireless, mobile communications network, bluetooth etc. in preset Software Testing Tool newly, By taking WiFi is connected as an example, test process WiFi is had no progeny automatic reconnect, can be used for monitoring in preset Software Testing Tool The state of WiFi, after WiFi disconnections, carries out WiFi to reconnect automatically or carry out at classification the error log of acquisition Reason:Specifically, specifically, a, the WiFi of preset Software Testing Tool are monitored:Wscript.exe is using broadcast principles to terminal WiFi connection status is monitored, to carry out WiFi connections according to the connection status of terminal WiFi.B, preset Software Testing Tool Acquisition authority is set to reconnect WiFi:When the state for detecting WiFi is off, wscript.exe obtains The authority of WiFi connections, carries out the reconnect of terminal.
Terminal is set to communicate to connect monitoring function in the present embodiment, monitor terminal is led to during terminal software is tested Believe connection, obtain the authority of terminal communication connection when breaking in the communications automatically, and ongoing communication connection, prevent because Terminal software test error caused by terminal communication abnormality, eliminates the external influence factor of terminal software test so that terminal Software test is more accurate, and with this at the same time, by the detection communicated to connect to terminal, mistake caused by disconnecting is answered in exclusion, The output of test errors daily record is reduced, tester, which corresponds to, reduces workload.
Further, with reference to Fig. 6, in the third embodiment of the present invention, difference lies in pin of the present invention with first embodiment Test errors daily record is highlighted, to accelerate the efficiency of checking of tester, the terminal software test method is also wrapped Include:
Step S60, when detecting the request of test errors log query, obtains the test errors daily record, by the survey The full content tried in error log imports preset analytic modell analytical model;
Step S70, the error message in the extraction test errors daily record of participle method in preset analytic modell analytical model, and by institute State error message to be highlighted, so that tester checks test errors daily record.
When terminal detects the request of test errors log query, the test errors daily record is obtained, and it is wrong to extract test Error message in daily record by mistake, the method for extraction test errors daily record can be realized by critical field, analysis etc., i.e. be obtained The test errors daily record, preset analytic modell analytical model is imported by the full content in the test errors daily record, wherein, preset parsing Model be according to test errors daily record set document, the information in error log can be parsed, i.e. using the method that segments into Row parsing, determines the error message in error log, or terminal preset Software Testing Tool to the letter in test errors daily record Breath is compared with the error identification field in Software Testing Tool, if words or field and mark in test errors daily record Field is identical, then using the words in error log or field as error message, the participle method in preset analytic modell analytical model The error message in test errors daily record is extracted, and the error message is highlighted, so that tester checks survey Try error log.
The error message in test errors daily record is identified in the present embodiment, tester can be accelerated and check survey The efficiency of error log is tried, and then accelerates the efficiency that tester handles test errors daily record.
Further, with reference to Fig. 7, in the fourth embodiment of the present invention, test errors daily record is uploaded to high in the clouds by terminal, is led to The frequency of statistical test type of error appearance is crossed, overall renewal is carried out to the software of all terminals;Specifically, the terminal is soft Part test method includes:
Step S80, the test errors daily record when the export for detecting test errors daily record is asked, exported and uploaded To high in the clouds;
Step S90, extracts each error message in test errors daily record, and is classified according to the error message, really Determine type of error;
Step S100, counts the frequency that each type of error occurs, when the frequency exceedes threshold value, prompts the test Personnel, so that tester changes terminal software.
Preset Software Testing Tool carries out the test errors daily record of software test generation in the terminal, is detecting that test is wrong By mistake during the export request of daily record, i.e. tester triggers test mistake by the different mode such as phonetic order, input message command The test errors daily record is exported and is uploaded to high in the clouds (it should be added that test by the export request of daily record by mistake, terminal The export of error log can be exported to different places, such as server, high in the clouds, i.e. preset Software Testing Tool can be set Export address);Test errors daily record is exported to high in the clouds in the present embodiment, so as to the lookup in later stage, terminal preset software test Each error message in instrument extraction test errors daily record, i.e. one or more may be included in test errors daily record, from survey The mode that error message is extracted in examination error log has been carried out illustrating not repeat herein in the third embodiment, and according to institute State error message to classify, wrong classification is carried out according to error message, can be by error message and preset software test work Wrong digest information table in tool is compared, and determines type of error;The frequency that each type of error occurs is counted, when the frequency When rate exceedes threshold value, the tester is prompted, so that tester changes terminal software, i.e. in multiple terminal software test Same test problem is all fed back, then tester can be prompted to be updated the software in terminal.
With this at the same time, preset Software Testing Tool, test errors daily record can also be distributed to corresponding tester into Row processing, i.e. preset Software Testing Tool is parsed test errors daily record after test assignment is detected, determines report The error message in daily record is accused, and tester is determined according to definite error message, the daily record that reports of test is reported to pair The tester answered, it is not necessary to which tester oneself carries out the screening that test reports daily record;Specifically by test errors daily record point The step of being assigned to tester includes:1st, classify to test errors daily record, test errors daily record by ANR (" Application Not Responding " application do not respond to) and crash interrupt routines are classified, if ANR types Problem, it will obtain traecs (output under debugging) daily record automatically in a device, arrange and sort out;The test of taxonomic revision is wrong Corresponding test processes personnel are distributed in daily record by mistake:Preset Software Testing Tool can be by the test errors daily record of taxonomic revision Report to corresponding tester.
Test errors daily record is divided in the present embodiment, has saved the test errors allocation processing of tester Time, and oppositely adjust according to test errors daily record the tested software in terminal so that terminal software test is more intelligent.
With reference to figure 8, the embodiment of the present invention also proposes terminal software test device, and the terminal software test device includes:
Acquisition module 10 is detected, for being asked based on the triggering software test of preset Software Testing Tool, and it is soft detecting During part test request, the test assignment in the software test request is obtained;
Automatic test module 20, for according to the test assignment and the preset Software Testing Tool, being carried out to terminal Software automated testing;
Daily record generation module 30, for generating test errors daily record based on the mistake in software automated testing, for surveying Examination personnel carry out software adjustment.
Wherein, the step of each Implement of Function Module of terminal software test device can refer to terminal software test of the present invention Each embodiment of method, details are not described herein again.
In addition, the embodiment of the present invention also proposes a kind of computer-readable storage medium.
Terminal software test program is stored with the computer-readable storage medium, the terminal software test program is processed Device realizes terminal software test following operation when performing:
Based on the triggering software test request of preset Software Testing Tool, and when detecting software test request, obtain institute State the test assignment in software test request;
According to the test assignment and the preset Software Testing Tool, software automated testing is carried out to terminal;
Based on the mistake generation test errors daily record in software automated testing, so that tester carries out software adjustment.
Further, following operation is also realized when the terminal software test program is executed by processor:
According to the test assignment and the preset Software Testing Tool, the step of software automated testing is carried out to terminal Including:
Corresponding test parameter is configured based on the test assignment, by the test case in the preset Software Testing Tool Frame is combined with test parameter, the corresponding test case of configuration generation test assignment;
When detecting that test case configuration is completed, there is provided the corresponding test environment of the test case;
The test case is performed with test environment based on described, to complete the software automated testing of terminal.
Further, following operation is also realized when the terminal software test program is executed by processor:
According to the test assignment and the preset Software Testing Tool, the step of software automated testing is carried out to terminal Further include:
Judge whether include time task in the test assignment;
If including time task in test assignment, the start node and terminal node of the time task are obtained;
When detect reach start node when, obtain the test parameter based on test assignment configuration, and will be described preset Test case frame in Software Testing Tool is combined with test parameter, the corresponding test case of configuration generation test assignment, with Carry out the software automated testing of terminal;
When detect reach terminal node when triggering terminal software automated testing halt instruction, to stop the soft of terminal Part automatic test.
Further, following operation is also realized when the terminal software test program is executed by processor:
It is described to be asked based on the triggering software test of preset Software Testing Tool, and when detecting software test request, obtain After the step of taking the test assignment in the software test request, including:
Based on the preset Software Testing Tool, communication connection monitor function is set;
When detecting terminal communication abnormality, the communication connection authority of terminal is obtained, is connected with carrying out the automatic of terminal communication Connect.
Further, following operation is also realized when the terminal software test program is executed by processor:
According to the test assignment and the preset Software Testing Tool, the step of software automated testing is carried out to terminal Before, further include:
Judge whether the test environment for being directed to test case in preset Software Testing Tool is correct;
If test environment is correct, implementation of test cases;If test environment errors, survey that labeled test terminal is not carried out Example on probation.
Further, following operation is also realized when the terminal software test program is executed by processor:
The mistake generation test errors daily record based in software automated testing, so that tester carries out software tune After whole step, including:
When detecting the request of test errors log query, the test errors daily record is obtained, by the test errors day Full content in will imports preset analytic modell analytical model;
The error message in the extraction test errors daily record of participle method in preset analytic modell analytical model, and the mistake is believed Breath is highlighted, so that tester checks test errors daily record.
Further, following operation is also realized when the terminal software test program is executed by processor:
The mistake generation test errors daily record based in software automated testing, so that tester carries out software tune After whole step, further include:
When the export for detecting test errors daily record is asked, the test errors daily record is exported and is uploaded to high in the clouds;
Each error message in test errors daily record is extracted, and is classified according to the error message, determines mistake class Type;
The frequency that each type of error occurs is counted, when the frequency exceedes threshold value, prompts the tester, so that Tester changes terminal software.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body/operation/object is distinguished with another entity/operation/object, without necessarily requiring or implying these entity/operations/ There are any actual relationship or order between object;Term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or system including a series of elements not only include that A little key elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic key element of system.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except also there are other identical element in the process including the key element, method, article or system.
For device embodiment, since it is substantially similar to embodiment of the method, so describe fairly simple, it is related Part illustrates referring to the part of embodiment of the method.Device embodiment described above is only schematical, wherein making The unit illustrated for separating component may or may not be physically separate.In can selecting according to the actual needs Some or all of module realize the purpose of the present invention program.Those of ordinary skill in the art are not making the creative labor In the case of, you can to understand and implement.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone, Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of terminal software test method, it is characterised in that the terminal software test method comprises the following steps:
Based on the triggering software test request of preset Software Testing Tool, and when detecting software test request, obtain described soft Test assignment in part test request;
According to the test assignment and the preset Software Testing Tool, software automated testing is carried out to terminal;
Based on the mistake generation test errors daily record in software automated testing, so that tester carries out software adjustment.
2. terminal software test method as claimed in claim 1, it is characterised in that according to the test assignment and described preset Software Testing Tool, includes the step of terminal progress software automated testing:
Corresponding test parameter is configured based on the test assignment, by the test case frame in the preset Software Testing Tool Combined with test parameter, the corresponding test case of configuration generation test assignment;
When detecting that test case configuration is completed, there is provided the corresponding test environment of the test case;
The test case is performed with test environment based on described, to complete the software automated testing of terminal.
3. terminal software test method as claimed in claim 2, it is characterised in that according to the test assignment and described preset Software Testing Tool, further includes the step of terminal progress software automated testing:
Judge whether include time task in the test assignment;
If including time task in test assignment, the start node and terminal node of the time task are obtained;
When detect reach start node when, obtain the test parameter based on test assignment configuration, and by the preset software Test case frame in testing tool is combined with test parameter, the corresponding test case of configuration generation test assignment, to carry out The software automated testing of terminal;
When detect reach terminal node when triggering terminal software automated testing halt instruction, with stop the software of terminal from Dynamicization is tested.
4. the terminal software test method as described in claims 1 to 3 any one, it is characterised in that described based on preset soft The triggering software test request of part testing tool, and when detecting software test request, obtain in the software test request After the step of test assignment, including:
Based on the preset Software Testing Tool, communication connection monitor function is set;
When detecting terminal communication abnormality, the communication connection authority of terminal is obtained, to carry out the automatic connection of terminal communication.
5. terminal software test method as claimed in claim 2, it is characterised in that according to the test assignment and described preset Software Testing Tool, before the step of terminal progress software automated testing, further includes:
Judge whether the test environment for being directed to test case in preset Software Testing Tool is correct;
If test environment is correct, implementation of test cases;If test environment errors, the test that labeled test terminal is not carried out is used Example.
6. terminal software test method as claimed in claim 1, it is characterised in that described based in software automated testing Mistake generates test errors daily record, after the step of tester's progress software adjustment, including:
When detecting the request of test errors log query, the test errors daily record is obtained, by the test errors daily record Full content import preset analytic modell analytical model;
In preset analytic modell analytical model participle method extraction test errors daily record in error message, and by the error message into Row highlights, so that tester checks test errors daily record.
7. terminal software test method as claimed in claim 1, it is characterised in that described based in software automated testing Mistake generates test errors daily record, after the step of tester's progress software adjustment, further includes:
When the export for detecting test errors daily record is asked, the test errors daily record is exported and is uploaded to high in the clouds;
Each error message in test errors daily record is extracted, and is classified according to the error message, determines type of error;
The frequency that each type of error occurs is counted, when the frequency exceedes threshold value, prompts the tester, so that test Personnel change terminal software.
8. a kind of terminal software test device, it is characterised in that the terminal software test device includes:
Acquisition module is detected, for being asked based on the triggering software test of preset Software Testing Tool, and is detecting software test During request, the test assignment in the software test request is obtained;
Automatic test module, for according to the test assignment and the preset Software Testing Tool, software to be carried out to terminal certainly Dynamicization is tested;
Daily record generation module, for generating test errors daily record based on the mistake in software automated testing, for tester Carry out software adjustment.
9. a kind of terminal, it is characterised in that the terminal includes:Memory, processor and it is stored on the memory and can The terminal software test program run on the processor, wherein:
The end as any one of claim 1 to 7 is realized when the terminal software test program is performed by the processor The step of holding method for testing software.
10. a kind of computer-readable storage medium, it is characterised in that terminal software test journey is stored with the computer-readable storage medium Sequence, realizes the terminal software as any one of claim 1 to 7 when the terminal software test program is executed by processor The step of test method.
CN201711027001.5A 2017-10-27 2017-10-27 Terminal software test method, device, terminal and computer-readable storage medium Pending CN107908551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711027001.5A CN107908551A (en) 2017-10-27 2017-10-27 Terminal software test method, device, terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711027001.5A CN107908551A (en) 2017-10-27 2017-10-27 Terminal software test method, device, terminal and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN107908551A true CN107908551A (en) 2018-04-13

Family

ID=61841846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711027001.5A Pending CN107908551A (en) 2017-10-27 2017-10-27 Terminal software test method, device, terminal and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN107908551A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874680A (en) * 2018-07-09 2018-11-23 上海瀚银信息技术有限公司 A kind of method for testing software and system of automation
CN108877806A (en) * 2018-06-29 2018-11-23 中国航空无线电电子研究所 System is verified in the test for testing instruction type speech control system
CN109144866A (en) * 2018-08-15 2019-01-04 广东美的厨房电器制造有限公司 Method for testing software and software testing device based on household electrical appliance
CN109408366A (en) * 2018-09-03 2019-03-01 平安科技(深圳)有限公司 Data source configures test method, system, computer equipment and storage medium
CN109509122A (en) * 2018-10-15 2019-03-22 广州思谋信息科技有限公司 A kind of software test training system based on AR intelligent glasses
CN109726116A (en) * 2018-11-08 2019-05-07 深圳壹账通智能科技有限公司 Joint debugging test method, device, computer installation and storage medium
CN109828906A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 UI automated testing method, device, electronic equipment and storage medium
CN110442508A (en) * 2018-05-03 2019-11-12 阿里巴巴集团控股有限公司 Test assignment processing method, device, equipment and medium
CN110532190A (en) * 2019-09-05 2019-12-03 北京博睿宏远数据科技股份有限公司 A kind of Software function test method, system and cluster
CN110659214A (en) * 2019-09-27 2020-01-07 珠海金山网络游戏科技有限公司 Information processing system, method, computing device, and storage medium
CN111797023A (en) * 2020-07-07 2020-10-20 北京首汽智行科技有限公司 Vehicle-mounted equipment system stability testing method
CN111858364A (en) * 2020-07-24 2020-10-30 中国建设银行股份有限公司 Parameter configuration method, device and system of test terminal
CN112416776A (en) * 2020-11-24 2021-02-26 天津五八到家货运服务有限公司 Selection method and device of operating environment, test equipment and storage medium
CN115827498A (en) * 2023-02-20 2023-03-21 创云融达信息技术(天津)股份有限公司 Pressure test distribution method and system for software program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447892A (en) * 2008-11-24 2009-06-03 中兴通讯股份有限公司 Distributed test method, system and test server
CN104239158A (en) * 2013-06-07 2014-12-24 Sap欧洲公司 Analysis engine for automatic analysis and error log linking
CN104932328A (en) * 2015-04-30 2015-09-23 中国电子科技集团公司第四十一研究所 Combined environment test processing method
CN105824755A (en) * 2016-03-17 2016-08-03 厦门美图移动科技有限公司 Automation test method, automation test device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447892A (en) * 2008-11-24 2009-06-03 中兴通讯股份有限公司 Distributed test method, system and test server
CN104239158A (en) * 2013-06-07 2014-12-24 Sap欧洲公司 Analysis engine for automatic analysis and error log linking
CN104932328A (en) * 2015-04-30 2015-09-23 中国电子科技集团公司第四十一研究所 Combined environment test processing method
CN105824755A (en) * 2016-03-17 2016-08-03 厦门美图移动科技有限公司 Automation test method, automation test device and mobile terminal

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442508A (en) * 2018-05-03 2019-11-12 阿里巴巴集团控股有限公司 Test assignment processing method, device, equipment and medium
CN108877806A (en) * 2018-06-29 2018-11-23 中国航空无线电电子研究所 System is verified in the test for testing instruction type speech control system
CN108874680B (en) * 2018-07-09 2022-06-24 上海瀚银信息技术有限公司 Automatic software testing method and system
CN108874680A (en) * 2018-07-09 2018-11-23 上海瀚银信息技术有限公司 A kind of method for testing software and system of automation
CN109144866A (en) * 2018-08-15 2019-01-04 广东美的厨房电器制造有限公司 Method for testing software and software testing device based on household electrical appliance
CN109144866B (en) * 2018-08-15 2022-08-16 广东美的厨房电器制造有限公司 Software testing method and software testing device based on household appliances
CN109408366A (en) * 2018-09-03 2019-03-01 平安科技(深圳)有限公司 Data source configures test method, system, computer equipment and storage medium
CN109408366B (en) * 2018-09-03 2023-05-30 平安科技(深圳)有限公司 Data source configuration test method, system, computer equipment and storage medium
CN109509122A (en) * 2018-10-15 2019-03-22 广州思谋信息科技有限公司 A kind of software test training system based on AR intelligent glasses
CN109726116A (en) * 2018-11-08 2019-05-07 深圳壹账通智能科技有限公司 Joint debugging test method, device, computer installation and storage medium
CN109828906A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 UI automated testing method, device, electronic equipment and storage medium
CN110532190A (en) * 2019-09-05 2019-12-03 北京博睿宏远数据科技股份有限公司 A kind of Software function test method, system and cluster
CN110659214A (en) * 2019-09-27 2020-01-07 珠海金山网络游戏科技有限公司 Information processing system, method, computing device, and storage medium
CN110659214B (en) * 2019-09-27 2023-08-22 珠海金山数字网络科技有限公司 Information processing system, method, computing device, and storage medium
CN111797023A (en) * 2020-07-07 2020-10-20 北京首汽智行科技有限公司 Vehicle-mounted equipment system stability testing method
CN111858364A (en) * 2020-07-24 2020-10-30 中国建设银行股份有限公司 Parameter configuration method, device and system of test terminal
CN112416776A (en) * 2020-11-24 2021-02-26 天津五八到家货运服务有限公司 Selection method and device of operating environment, test equipment and storage medium
CN115827498A (en) * 2023-02-20 2023-03-21 创云融达信息技术(天津)股份有限公司 Pressure test distribution method and system for software program

Similar Documents

Publication Publication Date Title
CN107908551A (en) Terminal software test method, device, terminal and computer-readable storage medium
CN105404585B (en) Obtain the method and device of code coverage
CN108427646B (en) Android App automatic test framework construction method and device based on Apium
CN105094783B (en) method and device for testing stability of android application
CN106776294B (en) Automatic android mobile phone testing method and system
CN107832226A (en) Report-generating method, device, equipment and computer media based on performance test
CN109684047A (en) Event-handling method, device, equipment and computer storage medium
CN111459794A (en) Communication network testing method, device, computer equipment and storage medium
CN109656827B (en) Control tree generation method and terminal equipment
CN105630685A (en) Method and device for testing program interface
CN106502906B (en) A kind of method and apparatus of test application program
CN107656872B (en) Software testing method, device, equipment and computer storage medium
CN105320701B (en) Screening technique, device and the terminal of function point test implementation
CN104516812A (en) Method and device for testing software
CN109947650B (en) Script step processing method, device and system
CN111752826A (en) Interface testing method and device, electronic equipment and storage medium
CN106776301B (en) Subelement testing method and device
CN105100796A (en) Television test method, device and system
CN108614775A (en) Automated testing method, device, terminal device and computer readable storage medium
CN106294108A (en) Applied program testing method and device
CN108337125A (en) Intelligent hardware devices test method, cloud platform and background controller
CN109271316A (en) Android device and its automated testing method, memory
CN110069407B (en) Function test method and device for application program
CN110895509A (en) Test processing method and device, electronic equipment and storage medium
CN110489347A (en) Method for edition management, device, equipment and readable storage medium storing program for executing based on GIT

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180413