CN107346287A - A kind of exam pool applied program testing method, terminal and simulator - Google Patents

A kind of exam pool applied program testing method, terminal and simulator Download PDF

Info

Publication number
CN107346287A
CN107346287A CN201710616776.XA CN201710616776A CN107346287A CN 107346287 A CN107346287 A CN 107346287A CN 201710616776 A CN201710616776 A CN 201710616776A CN 107346287 A CN107346287 A CN 107346287A
Authority
CN
China
Prior art keywords
simulator
exam pool
app
test
display
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
CN201710616776.XA
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.)
Guangdong Lemon Electronic Technology Co Ltd
Original Assignee
Guangdong Lemon Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Lemon Electronic Technology Co Ltd filed Critical Guangdong Lemon Electronic Technology Co Ltd
Priority to CN201710616776.XA priority Critical patent/CN107346287A/en
Publication of CN107346287A publication Critical patent/CN107346287A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present embodiments relate to field of terminal technology, discloses a kind of exam pool applied program testing method, terminal and simulator, and this method includes:The test command information that detection user inputs on simulator, the test command information include exam pool APP marks, exam pool APP version numbers and test content instruction;The target exam pool APP with exam pool APP marks and exam pool APP version numbers match is searched from the exam pool database of backstage;The examination question data that extraction matches with test content instruction from target exam pool APP, load on simulator display interface and carry out display test;As can be seen that implementing the embodiment of the present invention, the display test of content for a purpose can be realized to exam pool APP, improves exam pool APP display qualitys, testing efficiency is improved, further reduces the consumption of test prototype, reduce testing cost.

Description

A kind of exam pool applied program testing method, terminal and simulator
Technical field
The present invention relates to field of terminal technology, and in particular to a kind of exam pool application program (Application, abbreviation APP) Method of testing, terminal and simulator.
Background technology
Many exam pool APP are released on the market, including are provided the exam pool APP of study reference for junior-senior high school teacher student, are society Exam pool APP of examination exercise examination question of every profession and trade personnel offer etc. can be gone up, study user can pass through Intelligent mobile equipment (such as intelligence Can mobile phone etc.) APP client is logged in, examination question exercise is carried out whenever and wherever possible, is offered convenience to study user.Most of exam pools APP can carry out data iteration renewal, can all be related to the increase of data content during renewal every time, but for testing exam pool APP mobile phone does not distinguish increased data content typically, tests no emphasis, and it is not very complete to cause test, rear Display quality is had influence on after supervention cloth exam pool APP.
The content of the invention
It is existing for solving the embodiment of the invention discloses a kind of exam pool applied program testing method, terminal and simulator Exam pool APP tests do not divide emphasis, test imperfect the problem of having influence on exam pool APP display qualitys.
First aspect present invention discloses a kind of exam pool applied program testing method, applied to simulator, the simulator Install in the terminal, the display interface size of the simulator and the mobile terminal model machine for testing exam pool application APP Display interface size it is identical and the functional module of the simulator is identical with the functional module of the mobile terminal model machine, institute State the exam pool APP data association corresponding with the exam pool APP data of backstage exam pool database involved by the functional module of simulator, institute The method of stating includes:
The test command information that detection user inputs on the simulator, the test command information include exam pool APP Mark, exam pool APP version numbers and test content instruction;
The mesh with exam pool APP marks and exam pool APP version numbers match is searched from the backstage exam pool database Title storehouse APP;
The examination question data that extraction matches with the test content instruction from the target exam pool APP, in the simulation Loading carries out display test on device display interface.
As an alternative embodiment, in first aspect present invention, indicate to be used to indicate in the test content When test increases examination question newly, the extraction from the target exam pool APP and the examination question data tested content instruction and matched, Loading carries out display test on the simulator display interface, including:
Extract the newly-increased examination question in the target exam pool APP and be loaded into the display interface of the simulator and carry out display survey Examination.
As an alternative embodiment, in first aspect present invention, indicate to be used to indicate in the test content When testing whole exam pool APP, the extraction from the target exam pool APP and the examination question number tested content instruction and matched According to, loaded on the simulator display interface and carry out display test, including:
The target exam pool APP is loaded on the simulator display interface and carries out display test.
As an alternative embodiment, in first aspect present invention, the detection user is on the simulator Before the test command information of input, methods described also includes:
Detect the current Internet protocol IP address of the terminal;
Judge whether the current IP address is in preset IP address range;
If the current IP address is in the preset IP address range, the detection user is performed in the simulation The step of test command information inputted on device.
As an alternative embodiment, in first aspect present invention, the detection user is on the simulator Before the test command information of input, methods described also includes:
Obtain the login account information that user inputs on the simulator;
Judge whether the login account information is the preset account for authorizing test exam pool APP;
If it is, the detection user is performed the test command information inputted on the simulator the step of.
Second aspect of the present invention discloses a kind of terminal, and the simulator is installed in the terminal, the display of the simulator Interface dimensions are identical with the display interface size for the mobile terminal model machine of testing exam pool application APP and the simulation The functional module of device is identical with the functional module of the mobile terminal model machine, the exam pool involved by the functional module of the simulator The association corresponding with the exam pool APP data of backstage exam pool database of APP data, the simulator include:
Detection unit, the test command information inputted for detecting user on the simulator, the test instruction letter Breath includes exam pool APP marks, exam pool APP version numbers and test content instruction;
Searching unit, for being searched from the backstage exam pool database and exam pool APP marks and exam pool APP versions Number target exam pool APP to match;
Test cell is shown, for the examination that extraction matches with the test content instruction from the target exam pool APP Data are inscribed, is loaded on the simulator display interface and carries out display test.
As an alternative embodiment, in second aspect of the present invention, indicate to be used to indicate in the test content When test increases examination question newly, the display test cell specifically includes:
First test cell, for extracting the newly-increased examination question in the target exam pool APP and being loaded into the simulator Display interface carries out display test.
As an alternative embodiment, in second aspect of the present invention, indicate to be used to indicate in the test content When testing whole exam pool APP, the display test cell specifically includes:
Second test cell, display survey is carried out for loading the target exam pool APP on the simulator display interface Examination.
As an alternative embodiment, in second aspect of the present invention, the simulator also includes:
IP recognition units, for the test command information inputted in detection unit detection user on the simulator Before, the current Internet protocol IP address of the terminal is detected;Judge whether the current IP address is in preset IP address Scope;
The detection unit is specifically used for, and determines that the current IP address is in described preset in the IP recognition units IP address range when, test command information that perform detection user inputs on the simulator.
As an alternative embodiment, in second aspect of the present invention, the simulator also includes:
Account recognition unit, the test for being inputted in detection unit detection user on the simulator instruct letter Before breath, the login account information that user inputs on the simulator is obtained;Judge whether the login account information is to award Power test exam pool APP preset account;
The detection unit is specifically used for, and determines that the login account information is tested to authorize in the account recognition unit During exam pool APP preset account, the test command information that the detection user inputs on the simulator is performed.
Third aspect present invention discloses a kind of terminal, including the simulator that second aspect of the present invention discloses.
Fourth aspect present invention discloses a kind of terminal, it may include:
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, performs such as first party of the present invention Exam pool applied program testing method described in face.
Fifth aspect present invention discloses a kind of computer-readable recording medium, and it is stored based on electronic data interchange Calculation machine program, wherein, the computer program causes computer to perform exam pool application program as described in the first aspect of the invention Method of testing.
Compared with prior art, the embodiment of the present invention has the advantages that:
In embodiments of the present invention, by setting a simulator in the terminal, the display interface size of the simulator with The display interface size of mobile terminal model machine for testing exam pool APP is identical and the simulator can realize mobile terminal sample The function of machine, and exam pool APP data involved in the functional module of simulator and the exam pool APP data in exam pool database Corresponding association.The test command information that simulator detection user inputs on simulator, the test command information include exam pool APP Mark, exam pool APP version numbers and test content instruction, are searched and exam pool APP marks, exam pool APP versions from exam pool database This number target exam pool APP to match, and the examination question number that extraction matches with test content instruction from target exam pool APP According to then the loaded and displayed examination question data carry out display test on simulator display interface.As can be seen that implement in the present invention In example, test mode can be set in simulator, only choose the examination question data that matching test content indicates in target exam pool APP Display test is carried out, carries out display test with there can be emphasis, the display test of content for a purpose is realized, searches everywhere and deposit Display quality hidden danger, to improve whole exam pool APP display quality, while can also improve testing efficiency;Further, by In carrying out display test using simulator, the consumption to mobile terminal model machine can be reduced, testing cost can be reduced, and Can solve limitation caused by mobile terminal model machine network is tested display, further improve and show testing efficiency.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it will use below required in embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is the schematic diagram of simulator provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of exam pool applied program testing method disclosed in the embodiment of the present invention;
Fig. 3 is another schematic flow sheet of exam pool applied program testing method disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of simulator disclosed in the embodiment of the present invention;
Fig. 5 is another structural representation of simulator disclosed in the embodiment of the present invention;
Fig. 6 is another structural representation of simulator disclosed in the embodiment of the present invention;
Fig. 7 is another structural representation of simulator disclosed in the embodiment of the present invention;
Fig. 8 is the structural representation of terminal disclosed in the embodiment of the present invention;
Fig. 9 is another structural representation of terminal disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on this Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made Example is applied, belongs to the scope of protection of the invention.
It should be noted that term " first ", " second " in description and claims of this specification etc. is to be used for Different objects is distinguished, rather than for describing particular order.The term " comprising " and " having " of the embodiment of the present invention and he Any deformation, it is intended that cover it is non-exclusive include, for example, contain the process of series of steps or unit, method, System, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include what is do not listed clearly Or for the intrinsic other steps of these processes, method, product or equipment or unit.
The embodiment of the invention discloses a kind of exam pool applied program testing method, is directed to for carrying out content to exam pool APP Property display test, to improve exam pool APP display quality, improve and show testing efficiency.The embodiment of the present invention is also correspondingly public A kind of terminal and simulator are driven.
The present embodiments relate to terminal can be computer etc., and mobile terminal model machine can be smart mobile phone etc., Exam pool APP provided in an embodiment of the present invention display test primarily to can allow exam pool APP in the equipment such as smart mobile phone just Often display, ensures the usage experience sense of user.In embodiments of the present invention, simulator is set in terminal, and the simulator passes through Show on a terminal screen to complete exam pool APP display tests.The outward appearance of simulator provided in an embodiment of the present invention can with It is similar in the outward appearance of test exam pool APP any mobile terminal model machine, and in the function achieved by test exam pool APP, Simulator has the functional module as mobile terminal model machine completely, realizes all APP involved by these functional modules Data association corresponding with the exam pool APP data in exam pool database.
It should be noted that simulator provided in an embodiment of the present invention is an application client, C languages can be used Speech, JAVA language etc. are developed, and are then mounted in terminal.
Referring to Fig. 1, Fig. 1 is the schematic diagram of simulator provided in an embodiment of the present invention;It should be noted that Fig. 1 only gives Go out a kind of a kind of position relationship of the structure type and simulator of simulator in terminal screen, other are in the mould shown in Fig. 1 Deformed on the basis of plan device or optimize obtained simulator, can be used in solution technical solution of the present invention belongs to this hair Bright protection scheme, at the same other deformed on the basis of the simulator shown in Fig. 1 and the relative position of terminal screen or Person optimizes obtained position relationship, can be used in the protection scheme for also belonging to the present invention for solving technical solution of the present invention, This is not especially limited.Simulator is shown on terminal screen shown in Fig. 1, is provided with the simulator for realizing test Select button, select button includes test starting key (one of round button), test acknowledgement key (press by another circle Button), the key that moves up and down for selecting specific exam pool APP.
, below will be from terminal and simulator angle, with reference to tool based on the above-mentioned simple introduction to terminal and simulator Body embodiment, make the introduction of a more step to technical solution of the present invention.
Embodiment one
Referring to Fig. 2, Fig. 2 is the schematic flow sheet of exam pool applied program testing method disclosed in the embodiment of the present invention;Such as Shown in Fig. 2, a kind of exam pool applied program testing method may include:
201st, the test command information of simulator detection user input, the test command information include exam pool APP marks, topic Storehouse APP version numbers and test content instruction.
As an alternative embodiment, first opening simulator before step 201 is performed, specifically, terminal is (specific Can also be that simulator performs) OPEN for being directed to simulator is received, open and simultaneously show the simulator on a terminal screen.
It is appreciated that after being mounted with simulator in the terminal, the icon of simulator can be shown on screen, for use as fast Speed opens the shortcut of simulator, then as an alternative embodiment, terminal reception refers to for the opening of simulator Order, opens and shows that the simulator specifically includes:Terminal detects whether to receive the icon of the simulator to showing on screen Double click operation, if detecting the double click operation to the icon, open the simulator and shown on screen.
It is further appreciated that after being mounted with simulator in the terminal, the journey of simulator can be added in the program listing of terminal Sequence information, include the icon of simulator.So alternatively optional embodiment, terminal receive beating for simulator Instruction is opened, opens and shows that the simulator specifically includes:Terminal detects whether to receive the icon to simulator in program listing Clicking operation, if detect the clicking operation, open the simulator and shown on screen.
As an alternative embodiment, terminal receives the OPEN for simulator, open and show the simulation Device, including:Terminal receives the OPEN for simulator, and the simulator is shown in the predeterminated position of screen.In the embodiment party In formula, it can be used for a certain region of preset terminal screen when opening simulator, show the simulator, simulated even in opening During device, a certain region has shown that other application program or document content, and terminal will be in the front end loaded and displayed mould Intend device.
Further, terminal receive for simulator OPEN, the predeterminated position of screen show the simulator it Afterwards, terminal detection to the clicking operation of the simulator and based under the clicking operation to the drag operation of the simulator, control The simulator is moved in path of the simulator along the drag operation, and is detecting that the clicking operation to the simulator discharges it Afterwards, the simulator is controlled to be shown in the current location of screen.
Simulator with reference to shown in Fig. 1, as an alternative embodiment, simulator after display is opened, detects The test command information that user inputs on simulator includes:Test starting key on simulator monitoring simulator, is being monitored After operation to test starting key, show that exam pool APP is identified on simulator;User is to exam pool in simulator monitoring simulator The selection operation of APP marks, to obtain exam pool APP marks, and the exam pool APP version numbers under exam pool APP marks are shown, enter one Selection of the user to exam pool APP version numbers in step monitoring simulator, to obtain exam pool APP version numbers, further monitoring simulation The test content to exam pool APP corresponding to exam pool APP version numbers that user inputs in device indicates, so as to obtain test instruction Information.It is appreciated that exam pool APP marks and exam pool APP version numbers can use list display, user can be by shown in Fig. 1 Move up and down key to select, equally, after user selects exam pool APP version numbers, simulator can further be shown The option of content instruction is tested, user can also select by moving up and down key.It is further appreciated that implement in the present invention In example, select button, each select button can also be set for the test content instruction set on simulator Corresponding test content instruction, such as test content instruction include newly-increased examination question test and exam pool APP tests etc., then respectively Two select buttons are set, and one is newly-increased examination question testing button, and another is exam pool APP testing buttons.
202nd, simulator searches the target with exam pool APP marks and exam pool APP version numbers match from exam pool database Exam pool APP.
It is appreciated that simulator is searched and exam pool APP marks and exam pool APP version numbers phase from the exam pool database of backstage The target exam pool APP matched somebody with somebody, it is that simulator searches the target exam pool associated with exam pool APP marks and exam pool APP version numbers APP。
203rd, simulator extracts the examination question data to match with test content instruction from target exam pool APP, in the simulation Loading carries out display test on device display interface.
As an alternative embodiment, test content instruction can serve to indicate that test newly-increased examination question (newly-increased examination question Test), simulator extracts the examination question data to match with test content instruction from target exam pool APP, is shown in the simulator Loading carries out showing that test includes on interface:Extract the newly-increased examination question in target exam pool APP and be loaded into display circle of simulator Face carries out display test.By the embodiment, user can select only to test number of iterations corresponding to exam pool APP version numbers According to being tested without total data, possess specific aim.And iterative data is removed, other data are almost in a upper version This when, has completed to show to test and reached requirement and can just announce, then, it is necessary to be carried out for newly-increased examination question in redaction Test emphasis display test, then show the whole exam pool APP of test again, can make display test more it is complete in place.
Alternatively optional embodiment, the test content indicate to be used to indicate to test whole exam pool APP (exam pools APP is tested), simulator extracts the examination question data to match with test content instruction from target exam pool APP, shows in the simulator Show that loading carries out showing that test includes on interface:Loaded targets exam pool APP carries out display test on simulator display interface.It is logical The embodiment is crossed, user can select to carry out display test to whole exam pool APP.
Typically, (i.e. the exam pool APP of some theme) is identified for some exam pool APP, can existed under its renewal The multiple versions come, typically also only need to be updated its latest edition, can be with when being updated to latest edition Display test first is carried out for its newly-increased examination question, can be further to whole exam pool APP in the newly-increased examination question of independent test by rear Tested, to check whole structure.
In embodiments of the present invention, by setting a simulator in the terminal, the display interface size of the simulator with The display interface size of mobile terminal model machine for testing exam pool APP is identical and the simulator can realize mobile terminal sample The function of machine, and exam pool APP data involved in the functional module of simulator and the exam pool APP data in exam pool database Corresponding association.Afterwards, the test command information that simulator detection user inputs on simulator, the test command information include topic Storehouse APP marks, exam pool APP version numbers and test content instruction, simulator is searched from exam pool database to be marked with exam pool APP Know, the target exam pool APP of exam pool APP version numbers match, and extraction and test content instruction phase from target exam pool APP The examination question data matched somebody with somebody, then the loaded and displayed examination question data carry out display test on simulator display interface.As can be seen that In the embodiment of the present invention, test mode can be set in simulator, matching test content in target exam pool APP is only chosen and indicate Examination question data carry out display test, carry out display test with can having emphasis, realize content for a purpose display test, look into Display quality hidden danger existing for everywhere is looked for, to improve whole exam pool APP display quality, while can also improve testing efficiency; Further, due to carrying out display test using simulator, the consumption to mobile terminal model machine can be reduced, test can be reduced Cost, and can solve limitation caused by mobile terminal model machine network is tested display, further improve and show testing efficiency.
Embodiment two
Referring to Fig. 3, another flow that Fig. 3 is exam pool applied program testing method disclosed in the embodiment of the present invention is illustrated Figure;As shown in figure 3, a kind of exam pool applied program testing method may include:
301st, simulator receives the OPEN for simulator.
302nd, simulator detects current Internet protocol (Internet Protocol, abbreviation IP) address.
303rd, simulator judges whether current IP address is in preset IP address range.Wherein, at current IP address When preset IP address range, step 304 is turned to;When current IP address is not at preset IP address range, terminate this Flow.
It is appreciated that preset IP address range can be some LAN scope in embodiments of the present invention, specifically It can be the LAN scope where some company, to strengthen the secrecy to exam pool APP, prevent exam pool APP from leaking.Only exist Belong in preset IP address range, just allow loading simulation device.
304th, simulator operation interface displayed on the terminals.
As an alternative embodiment, after simulator operation interface displayed on the terminals, obtain user and simulating The login account information inputted on device, the login account information include user account, modification logging etc.;Judge login account information Whether it is the preset account for authorizing test exam pool APP;If it is, perform step 305;If it is not, then terminate the flow.Pass through The embodiment, administrative staff can pre-set the login account for logging in simulator, and login account then is distributed into mandate User, user by the login account of distribution after being logged in, and simulator is by detecting the login account, it is then determined that user Identity.
As an alternative embodiment, in step 303 if it is determined that current IP address is in preset IP address model When enclosing, the login account information that user inputs on simulator is obtained;Judge whether login account information is to authorize test exam pool APP preset account;If it is, perform step 305;If it is not, then terminate the flow.
As an alternative embodiment, after simulator operation interface displayed on the terminals, obtain user and simulating The login account information inputted on device, the login account information include user account, modification logging and employee's job number etc.;Judgement is stepped on Whether whether preset account, the modification logging for being mandate test exam pool APP are the mandate to user account in the account information of land Test modification logging corresponding to exam pool APP preset account;If it is, determining whether employee's job number is Authorization execution The authorized employees job number of test is shown, if it is, performing step 305, if not authorized employees job number, then terminates the flow; If user account be not preset account and modification logging be not preset account corresponding to modification logging, terminate the flow.
305th, the test command information that simulator detection user inputs on simulator, the test command information include exam pool APP marks, exam pool APP version numbers and test content instruction.
306th, simulator searches the target with exam pool APP marks and exam pool APP version numbers match from exam pool database Exam pool APP.
307th, simulator extracts the examination question data to match with test content instruction from target exam pool APP, in simulator Loading carries out display test on display interface.
In embodiments of the present invention, by being provided with secrecy system in simulator, only for installation and simulation is used When the IP address of the terminal of device belongs to preset IP address range, simulator could be used to carry out exam pool APP display tests, to prevent Only exam pool APP data leaks, and improves privacy degrees;Furthermore it is possible to set test mode in simulator, target exam pool is only chosen The examination question data that matching test content indicates in APP carry out display test, carry out display test with can having emphasis, in realization Appearance targetedly shows test, searches display quality hidden danger existing for everywhere, to improve whole exam pool APP display quality, It can also improve testing efficiency simultaneously;Further, due to carrying out display test using simulator, can reduce to mobile terminal sample The consumption of machine, testing cost can be reduced, and can solve limitation caused by mobile terminal model machine network is tested display, entered One step, which improves, shows testing efficiency.
Embodiment three
Referring to Fig. 4, Fig. 4 is the structural representation of simulator disclosed in the embodiment of the present invention;The simulator is arranged on eventually In end, the display interface size of the simulator and the display interface of the mobile terminal model machine for testing exam pool application APP Size is identical and the functional module of the simulator is identical with the functional module of mobile terminal model machine, the functional module of the simulator Involved exam pool APP data association corresponding with the exam pool APP data of backstage exam pool database, as shown in figure 4, the simulator can Including:
Detection unit 410, the test command information inputted for detecting user on simulator, the test command information bag Include exam pool APP marks, exam pool APP version numbers and test content instruction;
Searching unit 420, for being searched from the exam pool database of backstage and exam pool APP marks and exam pool APP version numbers phase The target exam pool APP of matching;
Test cell 430 is shown, for the examination question number that extraction matches with test content instruction from target exam pool APP According to, on the simulator display interface loading carry out display test.
In embodiments of the present invention, by setting a simulator in the terminal, the display interface size of the simulator with The display interface size of mobile terminal model machine for testing exam pool APP is identical and the simulator can realize mobile terminal sample The function of machine, and exam pool APP data involved in the functional module of simulator and the exam pool APP data in exam pool database Corresponding association.Detection unit 410 detects the test command information that user inputs on simulator, and the test command information includes topic Storehouse APP marks, exam pool APP version numbers and test content instruction, searching unit 420 are searched and the exam pool from exam pool database APP marks, the target exam pool APP of exam pool APP version numbers match, display test cell 430 extract from target exam pool APP The examination question data to match with test content instruction, then the loaded and displayed examination question data are shown on simulator display interface Show test.As can be seen that in embodiments of the present invention, test mode can be set in simulator, target exam pool APP is only chosen The examination question data of middle matching test content instruction carry out display test, carry out display test with can having emphasis, realize content Test is targetedly shown, searches display quality hidden danger existing for everywhere, to improve whole exam pool APP display quality, together When can also improve testing efficiency;Further, due to carrying out display test using simulator, can reduce to mobile terminal model machine Consumption, testing cost can be reduced, and can solve mobile terminal model machine network to display test caused by limitation, enter one Step, which improves, shows testing efficiency.
It is understood that the terminal shown in Fig. 4 can be used for performing the exam pool application program shown in step 201- steps 203 Method of testing.
As an alternative embodiment, incorporated by reference to Fig. 4, in the simulator shown in Fig. 5, refer in above-mentioned test content When showing for indicating that test increases examination question newly, above-mentioned display test cell 430 specifically includes:
First test cell 510, for extracting the newly-increased examination question in target exam pool APP and being loaded into display circle of simulator Face carries out display test.
As an alternative embodiment, with reference to Fig. 4, in the simulator shown in Fig. 5, indicated in above-mentioned test content During for indicating to test whole exam pool APP, above-mentioned display test cell 430 specifically includes:
Second test cell 520, display test is carried out for loading target exam pool APP on simulator display interface.
Example IV
Referring to Fig. 6, Fig. 6 is another structural representation of simulator disclosed in the embodiment of the present invention;Simulation shown in Fig. 6 Device is to optimize what is obtained on the basis of the simulator shown in Fig. 4, and in the simulator shown in Fig. 6, the simulator also wraps Include:
IP recognition units 610, for detection unit 410 detect the test command information that is inputted on simulator of user it Before, the current Internet protocol IP address of detection terminal;Judge whether the current IP address is in preset IP address range;
Above-mentioned detection unit 410 is specifically used for, and determines current IP address with being in preset IP in IP recognition units 610 During the scope of location, test command information that perform detection user inputs on simulator.
It is understood that the terminal shown in Fig. 6 can be used for performing the exam pool application program shown in step 301- steps 307 Method of testing.
Embodiment five
Referring to Fig. 7, as shown in fig. 7, the simulator shown in Fig. 7 be carried out on the basis of the simulator shown in Fig. 4 it is excellent Change what is obtained, in the simulator shown in Fig. 7, the simulator also includes:
Account recognition unit 710, for the test command information inputted in the detection user of detection unit 410 on simulator Before, the login account information that user inputs on simulator is obtained;Judge whether login account information is to authorize test exam pool APP preset account;
The detection unit 410 is specifically used for, and determines the login account information in account recognition unit 710 to authorize test question During storehouse APP preset account, test command information that perform detection user inputs on simulator.
Embodiment six
Referring to Fig. 8, Fig. 8 is the structural representation of terminal disclosed in the embodiment of the present invention;A kind of as shown in figure 8, terminal It may include:Fig. 4 to Fig. 7 simulators arbitrarily shown in the drawings.
More explanation and introductions for being related to simulator, refer to above method embodiment and the embodiment of simulator, This is not repeated further.
Referring to Fig. 9, Fig. 9 is another structural representation of terminal disclosed in the embodiment of the present invention;In the terminal shown in Fig. 8 In, the terminal may include:At least one processor 910, such as CPU, memory 920, at least one communication bus 930, input Device 940, output device 950.Wherein, communication bus 930 is used to realize the communication connection between these components.Memory 920 Can be high-speed RAM memory or non-labile memory (non-volatile memory), for example, at least one Individual magnetic disk storage.Memory 920 optionally can also be at least one storage device for being located remotely from aforementioned processor 910. Wherein, processor 910 can store batch processing code, and handle with reference to the terminal described by Fig. 4 to Fig. 8 in memory 920 Device 910 calls the program code stored in memory 920, for performing following operation:
The test command information that detection user inputs on the simulator, the test command information include exam pool APP Mark, exam pool APP version numbers and test content instruction;
The mesh with exam pool APP marks and exam pool APP version numbers match is searched from the backstage exam pool database Title storehouse APP;
The examination question data that extraction matches with the test content instruction from the target exam pool APP, in the simulation Loading carries out display test on device display interface.
Alternatively, above-mentioned processor 910 is additionally operable to perform following operation:
When the test content indicates to be used to indicate that test increases examination question newly, extract newly-increased in the target exam pool APP Examination question is simultaneously loaded into the display interface of the simulator and carries out display test.
Alternatively, above-mentioned processor 910 is additionally operable to perform following operation:
When the test content indicates to be used to indicate to test whole exam pool APP, add on the simulator display interface Carry the target exam pool APP and carry out display test.
Alternatively, above-mentioned processor 910 is additionally operable to perform following operation:
Before the test command information that detection user inputs on the simulator, the current internet of the terminal is detected Protocol IP address;Judge whether the current IP address is in preset IP address range;If the current IP address is in The preset IP address range, the test command information that detection user inputs on the simulator.
Alternatively, above-mentioned processor 910 is additionally operable to perform following operation:
Before the test command information that detection user inputs on the simulator, user is obtained on the simulator The login account information of input;Judge whether the login account information is the preset account for authorizing test exam pool APP;If It is the test command information that detection user inputs on the simulator.
By implementing above-mentioned terminal, display test is carried out with there can be emphasis, realize the display test of content for a purpose, Display quality hidden danger existing for everywhere is searched, to improve whole exam pool APP display quality, while can also improve test effect Rate;Further, due to carrying out display test using simulator, the consumption to mobile terminal model machine can be reduced, can be reduced Testing cost, and can solve limitation caused by mobile terminal model machine network is tested display, further improve display test Efficiency;Further, it there is provided secrecy system, can prevent exam pool APP data from leaking, improve privacy degrees.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage Medium include read-only storage (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only storage (One- Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only storage (Electrically-Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read-Only Memory, CD-ROM) or other disk storages, magnetic disk storage, magnetic tape storage or can For carrying or any other computer-readable medium of data storage.
A kind of exam pool applied program testing method, terminal and simulator disclosed in the embodiment of the present invention have been carried out in detail above Thin to introduce, specific case used herein is set forth to the principle and embodiment of the present invention, and above example is said It is bright to be only intended to help the method and its core concept for understanding the present invention;Meanwhile for those of ordinary skill in the art, foundation The thought of the present invention, there will be changes in specific embodiments and applications, in summary, this specification content is not It is interpreted as limitation of the present invention.

Claims (13)

1. a kind of exam pool applied program testing method, it is characterised in that applied to simulator, the simulator is arranged on terminal In, the display interface size of the simulator and the display interface of the mobile terminal model machine for testing exam pool application APP Size is identical and the functional module of the simulator is identical with the functional module of the mobile terminal model machine, the simulator Exam pool APP data association corresponding with the exam pool APP data of backstage exam pool database involved by functional module, methods described bag Include:
The test command information that is inputted on the simulator of detection user, the test command information include exam pool APP marks, Exam pool APP version numbers and test content instruction;
Search from the backstage exam pool database and inscribed with the target of exam pool APP marks and exam pool APP version numbers match Storehouse APP;
The examination question data that extraction matches with the test content instruction from the target exam pool APP, show in the simulator Show that loading carries out display test on interface.
2. according to the method for claim 1, it is characterised in that indicate to be used to indicate the newly-increased examination of test in the test content During topic, the extraction from the target exam pool APP and the examination question data tested content instruction and matched, in the simulation Loading carries out display test on device display interface, including:
Extract the newly-increased examination question in the target exam pool APP and be loaded into the display interface of the simulator and carry out display test.
3. method according to claim 1 or 2, it is characterised in that indicate to be used to indicate that test is whole in the test content During individual exam pool APP, the extraction from the target exam pool APP and the examination question data tested content instruction and matched, Loading carries out display test on the simulator display interface, including:
The target exam pool APP is loaded on the simulator display interface and carries out display test.
4. according to the method for claim 1, it is characterised in that the test that the detection user inputs on the simulator Before command information, methods described also includes:
Detect the current Internet protocol IP address of the terminal;
Judge whether the current IP address is in preset IP address range;
If the current IP address is in the preset IP address range, the detection user is performed on the simulator The step of test command information of input.
5. according to the method for claim 1, it is characterised in that the test that the detection user inputs on the simulator Before command information, methods described also includes:
Obtain the login account information that user inputs on the simulator;
Judge whether the login account information is the preset account for authorizing test exam pool APP;
If it is, the detection user is performed the test command information inputted on the simulator the step of.
A kind of 6. simulator, it is characterised in that simulator installation in the terminal, the display interface size of the simulator with The display interface size of mobile terminal model machine for testing exam pool application APP is identical and the function mould of the simulator Block is identical with the functional module of the mobile terminal model machine, the exam pool APP data involved by the functional module of the simulator with The exam pool APP data of backstage exam pool database are corresponding to be associated, and the simulator includes:
Detection unit, the test command information inputted for detecting user on the simulator, the test command information bag Include exam pool APP marks, exam pool APP version numbers and test content instruction;
Searching unit, for being searched from the backstage exam pool database and exam pool APP marks and exam pool APP version numbers phase The target exam pool APP of matching;
Test cell is shown, for the examination question number that extraction matches with the test content instruction from the target exam pool APP According to, on the simulator display interface loading carry out display test.
7. simulator according to claim 6, it is characterised in that indicate to be used to indicate that test is newly-increased in the test content During examination question, the display test cell specifically includes:
First test cell, for extracting the newly-increased examination question in the target exam pool APP and being loaded into the display of the simulator Interface carries out display test.
8. the simulator according to claim 6 or 7, it is characterised in that indicate to be used to indicate test in the test content During whole exam pool APP, the display test cell specifically includes:
Second test cell, display test is carried out for loading the target exam pool APP on the simulator display interface.
9. simulator according to claim 6, it is characterised in that the simulator also includes:
IP recognition units, for the test command information that is inputted on the simulator of detection unit detection user it Before, detect the current Internet protocol IP address of the terminal;Judge whether the current IP address is in preset IP address model Enclose;
The detection unit is specifically used for, and determines that the current IP address is in the preset IP in the IP recognition units During address realm, test command information that perform detection user inputs on the simulator.
10. simulator according to claim 6, it is characterised in that the simulator also includes:
Account recognition unit, for the test command information that is inputted on the simulator of detection unit detection user it Before, obtain the login account information that user inputs on the simulator;Judge whether the login account information is to authorize to survey Test item bank APP preset account;
The detection unit is specifically used for, and determines the login account information in the account recognition unit to authorize test exam pool During APP preset account, the test command information that the detection user inputs on the simulator is performed.
A kind of 11. terminal, it is characterised in that including:
Simulator described in any one of claim 6 to 10.
A kind of 12. terminal, it is characterised in that including:
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, performs such as claim 1 to right It is required that the exam pool applied program testing method described in 5 any one.
A kind of 13. computer-readable recording medium, it is characterised in that it stores the computer program for electronic data interchange, Wherein, the computer program causes computer to perform the exam pool application journey as described in claim 1 to any one of claim 5 Sequence method of testing.
CN201710616776.XA 2017-07-20 2017-07-20 A kind of exam pool applied program testing method, terminal and simulator Pending CN107346287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710616776.XA CN107346287A (en) 2017-07-20 2017-07-20 A kind of exam pool applied program testing method, terminal and simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710616776.XA CN107346287A (en) 2017-07-20 2017-07-20 A kind of exam pool applied program testing method, terminal and simulator

Publications (1)

Publication Number Publication Date
CN107346287A true CN107346287A (en) 2017-11-14

Family

ID=60257093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710616776.XA Pending CN107346287A (en) 2017-07-20 2017-07-20 A kind of exam pool applied program testing method, terminal and simulator

Country Status (1)

Country Link
CN (1) CN107346287A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021816A (en) * 2017-12-05 2018-05-11 广东欧珀移动通信有限公司 Test method, device, storage medium and the electronic equipment of electronic equipment
CN109376078A (en) * 2018-09-25 2019-02-22 平安普惠企业管理有限公司 Test method, terminal device and the medium of mobile application
CN111722999A (en) * 2019-03-22 2020-09-29 天津五八到家科技有限公司 Data testing method and device, electronic equipment and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020129338A1 (en) * 2001-03-07 2002-09-12 Macdonell Kevin Method and system for on-line submission and debug of software code for a portable computer system or electronic device
CN103309801A (en) * 2012-03-15 2013-09-18 百度在线网络技术(北京)有限公司 Method and device for determining regression testing range
CN103777999A (en) * 2014-01-09 2014-05-07 深圳市星策网络科技有限公司 Android software simulation method and device
CN104978263A (en) * 2014-04-09 2015-10-14 腾讯科技(深圳)有限公司 Mobile terminal application program test method and mobile terminal application program test system
CN105404519A (en) * 2015-12-07 2016-03-16 青岛海信电器股份有限公司 Version control method, code testing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020129338A1 (en) * 2001-03-07 2002-09-12 Macdonell Kevin Method and system for on-line submission and debug of software code for a portable computer system or electronic device
CN103309801A (en) * 2012-03-15 2013-09-18 百度在线网络技术(北京)有限公司 Method and device for determining regression testing range
CN103777999A (en) * 2014-01-09 2014-05-07 深圳市星策网络科技有限公司 Android software simulation method and device
CN104978263A (en) * 2014-04-09 2015-10-14 腾讯科技(深圳)有限公司 Mobile terminal application program test method and mobile terminal application program test system
CN105404519A (en) * 2015-12-07 2016-03-16 青岛海信电器股份有限公司 Version control method, code testing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘新生: "《软件测试理论》", 31 August 2010, 中国计量出版社 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021816A (en) * 2017-12-05 2018-05-11 广东欧珀移动通信有限公司 Test method, device, storage medium and the electronic equipment of electronic equipment
CN108021816B (en) * 2017-12-05 2021-01-26 Oppo广东移动通信有限公司 Electronic device test method and device, storage medium and electronic device
CN109376078A (en) * 2018-09-25 2019-02-22 平安普惠企业管理有限公司 Test method, terminal device and the medium of mobile application
CN109376078B (en) * 2018-09-25 2023-08-25 北京新时科技发展有限公司 Mobile application testing method, terminal equipment and medium
CN111722999A (en) * 2019-03-22 2020-09-29 天津五八到家科技有限公司 Data testing method and device, electronic equipment and system

Similar Documents

Publication Publication Date Title
CN107918655A (en) A kind of test paper generation management control system and control method
St. Amant et al. Model-based evaluation of cell phone menu interaction
CN103118031B (en) Log in method and the electronic equipment of application account
CN108200030A (en) Detection method, system, device and the computer readable storage medium of malicious traffic stream
CN107346287A (en) A kind of exam pool applied program testing method, terminal and simulator
CN106502890A (en) Method for generating test case and system
CN106796597A (en) Automatic intelligent data grabber and checking
CN108399124A (en) Application testing method, device, computer equipment and storage medium
CN103970646B (en) A kind of automatic analysis method for the sequence of operation and system thereof
CN107357487B (en) Application control method, electronic equipment and computer storage media
CN109271762B (en) User authentication method and device based on slider verification code
CN107612880A (en) One kind applies access method and device
CN108108249A (en) Data inputting method and device
CN109947635A (en) A kind of data reporting method, device, storage medium and terminal device
CN104464730A (en) Apparatus and method for generating an event by voice recognition
CN108364416A (en) A kind of self-service control method of 24 hours intelligent libraries
CN105160274B (en) A kind of guard method of user data and terminal
US9723489B1 (en) Automated vulnerability discovery in mobile device applications
CN104217153A (en) Information processing method and electronic equipment
CN110362313A (en) A kind of form validation method, client and server
CN110188523A (en) A kind of verification method and mobile terminal
CN110119940A (en) Cashing method, device, equipment and computer readable storage medium
CN109344335A (en) A kind of content recommendation method and electronic equipment
CN107066864A (en) A kind of application icon display methods and its equipment
CN106815910A (en) Access control management method and gate control system

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

Application publication date: 20171114

RJ01 Rejection of invention patent application after publication