CN107832224A - A kind of method of testing of application program, device, storage medium and intelligent terminal - Google Patents
A kind of method of testing of application program, device, storage medium and intelligent terminal Download PDFInfo
- Publication number
- CN107832224A CN107832224A CN201711173528.9A CN201711173528A CN107832224A CN 107832224 A CN107832224 A CN 107832224A CN 201711173528 A CN201711173528 A CN 201711173528A CN 107832224 A CN107832224 A CN 107832224A
- Authority
- CN
- China
- Prior art keywords
- virtual
- target program
- backstage
- program
- service
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/14—Arrangements for monitoring or testing data switching networks using software, i.e. software packages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Abstract
The embodiment of the invention discloses a kind of method of testing of application program, device, storage medium and intelligent terminal.This method includes:Detect the startup event of target program;Judge whether the target program meets that virtual backstage provides the condition of service;Wherein, the virtual background server is stored in intelligent terminal;If satisfied, the action command and control instruction that are then got according to the target program, access the virtual backstage, into accession page, are tested.The technical scheme provided by using the embodiment of the present invention, it is possible to achieve improve the effect of the efficiency of client exploitation and test process.
Description
Technical field
The present embodiments relate to Application testing technical field, more particularly to a kind of method of testing of application program,
Device, storage medium and intelligent terminal.
Background technology
Because application program (Application, App) is all single client in mobile terminal, the word of interface display,
The data such as picture and video are nearly all to return to obtain by access server, and show user.
However, in process of application development, the exploitation of client and the exploitation of server end are concurrent developments, but
End opportunity tends not to synchronization.This results in client and developed, it is also necessary to which waiting for server has been developed, and could normally be surveyed
Examination, debugging and modification bug (leak).Therefore, the test of client often wants the exploitation completion of waiting for server end to carry out,
Reduce the exploitation of client and the efficiency of test process.
The content of the invention
The embodiment of the present invention provides a kind of method of testing of application program, device, storage medium and intelligent terminal, Ke Yishi
Now improve the effect of the efficiency of client exploitation and test process.
In a first aspect, the embodiments of the invention provide a kind of method of testing of application program, this method includes:
Detect the startup event of target program;
Judge whether the target program meets that virtual backstage provides the condition of service;Wherein, the virtual background service
Device is stored in intelligent terminal;
If satisfied, the action command and control instruction that are then got according to the target program, access the virtual backstage,
Into accession page, tested.
Further, judge whether the target program meets that virtual backstage provides the condition of service, including:
Obtain virtual background service switch parameter;
When the virtual background service switch parameter meets to impose a condition, it is defined as meeting that virtual backstage provides service
Condition.
Further, judge whether the target program meets that virtual backstage provides the condition of service, including:
Obtain the returning result that the target program is asked to the accession page that server background is sent;
If non-back page data, it is defined as meeting the condition that virtual backstage provides service.
Further, the action command and control instruction got according to the target program, the virtual backstage is accessed,
Into accession page, tested, including:
The action command and control instruction got according to the target program, position the access page of the target program
Face;
According to the accession page of the target program, page data is obtained;The page data includes:Virtual backstage configures
Return format parameter and recycle time parameter in file;
According to the page data of acquisition, into accession page, tested.
Further, the format parameter that returns includes at least one in json forms, string forms and xml forms
Kind.
Further, obtaining virtual background service switch parameter includes:Obtain Appflag assignment;
When the Appflag is when being entered as 1, it is defined as meeting the condition that virtual backstage provides service;
When the Appflag is when being entered as 0, it is defined as being unsatisfactory for the condition that virtual backstage provides service.
Further, methods described also includes:
After whether the target program meets that virtual backstage provides the condition of service, the virtual backstage is in circulation etc.
State is treated, monitors the accession page request of the target program.
Second aspect, the embodiment of the present invention additionally provide a kind of test device of application program, and the device includes:
Start detection module, for detecting the startup event of target program;
Virtual background service judge module, for judging whether the target program meets that virtual backstage provides the bar of service
Part;Wherein, the virtual background server is stored in intelligent terminal;
Target program test module, if satisfied, the action command and control instruction that are then got according to the target program,
The virtual backstage is accessed, into accession page, is tested.
Further, the virtual background service judge module, is used for:
Obtain virtual background service switch parameter;
When the virtual background service switch parameter meets to impose a condition, it is defined as meeting that virtual backstage provides service
Condition.
Further, the virtual background service judge module, is used for:
Obtain the returning result that the target program is asked to the accession page that server background is sent;
If non-back page data, it is defined as meeting the condition that virtual backstage provides service.
Further, the target program test module, is used for:
The action command and control instruction got according to the target program, position the access page of the target program
Face;
According to the accession page of the target program, page data is obtained;The page data includes:Virtual backstage configures
Return format parameter and recycle time parameter in file;
According to the page data of acquisition, into accession page, tested.
Further, the format parameter that returns includes at least one in json forms, string forms and xml forms
Kind.
Further, the virtual background service judge module, includes for obtaining virtual background service switch parameter:Obtain
Take Appflag assignment;
When the Appflag is when being entered as 1, it is defined as meeting the condition that virtual backstage provides service;
When the Appflag is when being entered as 0, it is defined as being unsatisfactory for the condition that virtual backstage provides service.
Further, described device also includes:
Wait and monitor module, it is described for after whether the target program meets that virtual backstage provides the condition of service
Virtual backstage is in circular wait state, monitors the accession page request of the target program.
The third aspect, the embodiments of the invention provide a kind of computer-readable recording medium, is stored thereon with computer journey
Sequence, the method for testing of application program as described in the present embodiment of the invention is realized when the program is executed by processor.
Fourth aspect, the embodiments of the invention provide a kind of mobile terminal, including memory, processor and it is stored in storage
On device and it can be realized in the computer program of processor operation described in the computing device during computer program as the present invention is real
Apply the method for testing of the application program described in example.
Technical scheme provided by the present invention, by the startup event for detecting target program;Judging the target program is
The no condition for meeting virtual backstage and service being provided;Wherein, the virtual background server is stored in intelligent terminal;If satisfied,
The action command and control instruction then got according to the target program, the virtual backstage is accessed, into accession page, is entered
Row test, is solved in the prior art, the asynchronous caused test of the exploitation to client of exploitation of server and client side
The problem of efficiency is low, it is possible to achieve improve the effect of the efficiency of client exploitation and test process.
Brief description of the drawings
Fig. 1 is the flow chart of the method for testing for the application program that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the method for testing for the application program that the embodiment of the present invention two provides;
Fig. 3 is the flow chart of the method for testing for the application program that the embodiment of the present invention three provides;
Fig. 4 is the flow chart of the method for testing for the application program that the embodiment of the present invention four provides;
Fig. 5 is the structural representation of the test device for the application program that the embodiment of the present invention five provides;
Fig. 6 is a kind of structural representation for intelligent terminal that the embodiment of the present invention seven provides.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just
Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing described as flow chart or method.Although each step is described as the processing of order, many of which by flow chart
Step can be implemented concurrently, concomitantly or simultaneously.In addition, the order of each step can be rearranged.When its operation
The processing can be terminated during completion, it is also possible to the additional step being not included in accompanying drawing.The processing can be with
Corresponding to method, function, code, subroutine, subprogram etc..
Embodiment one
Fig. 1 is the flow chart of the method for testing for the application program that the embodiment of the present invention one provides, and the present embodiment is applicable should
With the situation of program development, this method can be held by the method for testing device for the application program that the embodiment of the present invention is provided
OK, the device can be realized by the mode of software and/or hardware, and can be integrated in intelligent terminal.
As shown in figure 1, the method for testing of the application program includes:
S110, the startup event for detecting target program.
Wherein, target program can be that developer develops completion, be ready for the application program of test.Mobile terminal is worked as
When detecting that the startup event of application program occurs, obtain program and start information.Wherein, mobile terminal can be applied by detecting
The establishment of process when program starts, or the broadcast message sent during application program launching are defined as detecting application program launching
Event occurs.Wherein, when the startup event of application program is establishment process, due to create process all by
ActivityManagerService service managements, can application program create process when, by
ActivityManagerService determines that the startup event of target program has occurred and that.Wherein, application program is in start-up course
In, one or more process can be created, then when it creates first process, it may be determined that be the startup thing of application program
Part occurs, and each application program is designed to single process such as in android system, and application program can also basis
The needs of oneself go to decide whether to enable multiple processes.The program process that Android application frameworks layer creates
With two features, a kind of is that the entrance function of process is ActivityThread.main, and another kind is program process branch
Hold Binder inter-process communication mechanisms.In addition to this it is possible to it is when the icon for detecting application program is clicked, it is determined that should
Occurred with the startup event of program.
S120, judge whether the target program meets that virtual backstage provides the condition of service;Wherein, the virtual backstage
Server storage is in intelligent terminal.
In embodiments of the present invention, intelligent terminal can be the intelligence such as smart mobile phone, tablet personal computer and personal digital assistant
Can terminal.Wherein, judge whether the target program meets that the mode for the condition that virtual backstage provides service has a variety of, Ke Yishi
Start rear line in target program and initiate whether access the dialog box on virtual backstage or before application program launching,
Whether application program is accessed and is virtually set from the background, if set to accessing virtual backstage, as meets virtually to carry from the background
For the condition of service, then virtual backstage is directly accessed after application program launching.
The virtual background server is stored in intelligent terminal, can be individually provided with the program bag of target program
, can be with by accessing test file progress mesh after target program opening for providing the test file of virtual background service
The test of beacon course sequence or in the other configurations file of target program be used for carry out providing virtual background service.Such as
It can be after APP reads and starts configuration file appBegin.json, read and open virtual background service
WebAppService files.
S130, if satisfied, the action command and control instruction that are then got according to the target program, access described virtual
From the background, into accession page, tested.
Wherein, action command and control instruction can be the operational orders sent by developer, obtain developer
After action command and control instruction in target program, virtual backstage is accessed, test page is carried out and is tested.Wherein, may be used
The information that developer's homepage should include whether is returned in the homepage of current application program to be test target program, may be used also
Be test target program after homepage receives action command and the control instruction of developer, entering new interface is
It is no to be consistent with target program at the interface for setting timing design.Such as in the APP that does shopping, the homepage that shopping APP enters can be tested
The homepage content that this shows when whether showing design, if the operational order for getting user is into shopping cart,
After the icon of developer's click shopping car, if can normally return to shopping-cart interface.Wherein, action command and control instruction
, for another one particular value of imparting, 0 can be such as entered as, then corresponding basis in the case where getting one of them
Action command and control instruction, are tested accordingly.
Accordingly, if not satisfied, then target program can be tested by the server accessed really, if can not
The data of server return are received, then can terminate the test of the target program.
The technical scheme of the present embodiment, by the startup event for detecting target program;Judge whether the target program is full
The virtual backstage of foot provides the condition of service;Wherein, the virtual background server is stored in intelligent terminal;If satisfied, then root
The action command and control instruction got according to the target program, the virtual backstage is accessed, into accession page, is surveyed
Examination, is solved in the prior art, the asynchronous caused exploitation testing efficiency to client of exploitation of server and client side
The problem of low, it is possible to achieve improve the effect of the efficiency of client exploitation and test process.
Embodiment two
Fig. 2 is the flow chart of the method for testing for the application program that the embodiment of the present invention two provides.The present embodiment is in above-mentioned reality
On the basis of applying example, it is optimized for:Judge whether the target program meets that virtual backstage provides the condition of service, including:Obtain
Virtual background service switch parameter;When the virtual background service switch parameter meets to impose a condition, it is defined as meeting virtually
Backstage provides the condition of service.
As shown in Fig. 2 the method for testing of the application program includes:
S210, the startup event for detecting target program.
S220, obtain virtual background service switch parameter.
Wherein, the virtual background service parameter can be stored in the file in the program bag of target program.Specifically, can
To be when background service switch parameter in the program bag for detect application program be present, according to the specific data for reading this document
Mode, it is determined that the switch parameter of virtual background service.
S230, when the virtual background service switch parameter meets to impose a condition, be defined as meeting that virtual backstage provides
The condition of service.
Wherein, when meeting to impose a condition, then virtual background service is opened.
In the present embodiment, optionally, obtaining virtual background service switch parameter includes:Obtain Appflag assignment;When
When being entered as 1 of the Appflag, it is defined as meeting the condition that virtual backstage provides service;When being entered as the Appflag
When 0, it is defined as being unsatisfactory for the condition that virtual backstage provides service.The benefit so set is can be according to Appflag assignment
Determine whether to open virtual background service, method is easy, is easy to the setting and processing of developer, true when the target program
After server erects, target program can be provided by real server to realize by the way that its assignment is arranged into 0
Background service.
S240, if satisfied, the action command and control instruction that are then got according to the target program, access described virtual
From the background, into accession page, tested.
The technical program is on the basis of above-mentioned technical proposal, there is provided a kind of side by reading the assignment of configuration file
Formula determines whether to open the effect of virtual background service so that the test of target program is easier, improves to target journey
The efficiency that sequence is tested.
Embodiment three
Fig. 3 is the flow chart of the method for testing for the application program that the embodiment of the present invention three provides.The present embodiment is in above-mentioned reality
On the basis of applying example, it is optimized for:Judge whether the target program meets that virtual backstage provides the condition of service, including:Obtain
The returning result that the target program is asked to the accession page that server background is sent;If non-back page data, are defined as
Meet that virtual backstage provides the condition of service.
As shown in figure 3, the method for testing of the application program includes:
S310, the startup event for detecting target program.
S320, obtain the returning result that the target program is asked to the accession page that server background is sent.
Wherein it is possible to the side for the returning result asked by reading target program to the accession page that server background is sent
Formula, determine whether that presence server provides service for the target program of the client.Accession page request can be target journey
The access request of the homepage access request of sequence or other any pages.
If S330, non-back page data, it is defined as meeting the condition that virtual backstage provides service.
Wherein, if non-back page data, illustrate that there is currently no server provides service for target program, it is determined that
To meet that virtual backstage provides the condition of service.What deserves to be explained is cause the mode of non-back page data to have a lot, example
Such as, current network is off down, then can cause non-back page data, be can also be that current server is in and is safeguarded shape
Other situations such as state, can be when so allowing for accessing virtual backstage during use of the intelligent terminal in user,
It can may also enter in virtual background service.In such a case, it is possible to by being user in virtual backstage offer service
Display is currently at the prompt message in the test process of target program, and the data that can distinguish current page to ensure user are
True Data is also merely the virtual data that developer provides test.
S340, if satisfied, the action command and control instruction that are then got according to the target program, access described virtual
From the background, into accession page, tested.
The technical program is on the basis of above-mentioned each technical scheme, there is provided one kind is target by reading acquisition server
The mode of the returned data result of program, to determine whether to open the effect of virtual background service so that the survey to target program
The controlling of examination is stronger, could carry out the test of target program without building completion completely when server, and then improve pair
The efficiency that target program is tested.
Example IV
Fig. 4 is the flow chart of the method for testing for the application program that the embodiment of the present invention four provides.The present embodiment is in above-mentioned reality
On the basis of applying example, it is optimized for:The action command and control instruction got according to the target program, access it is described it is virtual after
Platform, into accession page, tested, including:The action command and control instruction got according to the target program, positioning
The accession page of the target program;According to the accession page of the target program, page data is obtained;The page data bag
Include:Return format parameter and recycle time parameter in the configuration file of virtual backstage;According to the page data of acquisition, enter
Accession page, tested.
As shown in figure 4, the method for testing of the application program includes:
S410, the startup event for detecting target program.
S420, judge whether the target program meets that virtual backstage provides the condition of service;Wherein, the virtual backstage
Server storage is in intelligent terminal.
S430, if satisfied, the action command and control instruction that are then got according to the target program, position the target
The accession page of program.
Wherein it is possible to according to the page of current goal program and action command and control instruction, target program is navigated to
Accession page.
S440, the accession page according to the target program, obtain page data;The page data includes:After virtual
Return format parameter and recycle time parameter in platform configuration file.
Each page can have corresponding page data, it is determined that after the accession page of target program, Ke Yixiang
WebAppService sends the page request and receives the page data that webAppService is returned.Wherein, the page
Face data include:Return format parameter and recycle time parameter in the configuration file of virtual backstage.Wherein, format parameter bag is returned
Text formatting, picture format and video format etc. are included, recycle time parameter can be according to certain in the way of setting
Number returned, as text formatting can as first time return data, picture and video etc. due to exist postpone, then
It can be returned accordingly at second or afterwards, the benefit so set is can to ensure virtual backstage back page number
According to response speed, and more conform to the control mode of server returned data.
In the present embodiment, optionally, the return format parameter includes json forms, string forms and xml lattice
At least one of formula.The benefit so set is that developer can be with the data of self-defined what form of return, and can be with
Solve in target program test process to the overhead issues of intelligent terminal, while return speed can be improved.
S450, the page data according to acquisition, into accession page, are tested.
After page data is got, then the back page is entered, and determine to test according to the result of back page
As a result, the test of more multiple solutions can be carried out accordingly.
The technical program is on the basis of above-mentioned each technical scheme, there is provided a kind of to return to format parameter by setting and return
Count parameter is returned, to carry out the test of target program, you can to improve the efficiency of target program test, and can enough controls intelligent end
The memory cost at end, improve page response speed.
On the basis of the various embodiments described above, in addition to:Whether meet virtual backstage offer service in the target program
Condition after, the virtual backstage be in circular wait state, and the accession page for monitoring the target program is asked.So set
Benefit be can be in the use and test process of target program, virtual backstage is awaited orders for the operational order of user at any time, when
According to the operational order of user when needing, carry out the page and show, the technical scheme that the embodiment of the present invention is provided can be expanded
The scope of application.
Embodiment five
Fig. 5 is the structural representation of the test device for the application program that the embodiment of the present invention five provides.As shown in figure 5, institute
The test device of application program is stated, including:
Start detection module 510, for detecting the startup event of target program;
Virtual background service judge module 520, for judging whether the target program meets virtual backstage offer service
Condition;Wherein, the virtual background server is stored in intelligent terminal;
Target program test module 530, if satisfied, the action command and control that are then got according to the target program refer to
Order, the virtual backstage is accessed, into accession page, is tested.
Technical scheme provided by the present invention, by the startup event for detecting target program;Judging the target program is
The no condition for meeting virtual backstage and service being provided;Wherein, the virtual background server is stored in intelligent terminal;If satisfied,
The action command and control instruction then got according to the target program, the virtual backstage is accessed, into accession page, is entered
Row test, is solved in the prior art, the asynchronous caused test of the exploitation to client of exploitation of server and client side
The problem of efficiency is low, it is possible to achieve improve the effect of the efficiency of client exploitation and test process.
On the basis of the various embodiments described above, optionally, the virtual background service judge module 520, it is used for:
Obtain virtual background service switch parameter;
When the virtual background service switch parameter meets to impose a condition, it is defined as meeting that virtual backstage provides service
Condition.
On the basis of the various embodiments described above, optionally, the virtual background service judge module 520, it is used for:
Obtain the returning result that the target program is asked to the accession page that server background is sent;
If non-back page data, it is defined as meeting the condition that virtual backstage provides service.
On the basis of the various embodiments described above, optionally, the target program test module 530, it is used for:
The action command and control instruction got according to the target program, position the access page of the target program
Face;
According to the accession page of the target program, page data is obtained;The page data includes:Virtual backstage configures
Return format parameter and recycle time parameter in file;
According to the page data of acquisition, into accession page, tested.
On the basis of the various embodiments described above, optionally, the return format parameter includes json forms, string forms
And at least one of xml forms.
On the basis of the various embodiments described above, optionally, the virtual background service judge module 520, for obtaining void
Intending background service switch parameter includes:Obtain Appflag assignment;
When the Appflag is when being entered as 1, it is defined as meeting the condition that virtual backstage provides service;
When the Appflag is when being entered as 0, it is defined as being unsatisfactory for the condition that virtual backstage provides service.
On the basis of the various embodiments described above, optionally, described device also includes:
Wait and monitor module, it is described for after whether the target program meets that virtual backstage provides the condition of service
Virtual backstage is in circular wait state, monitors the accession page request of the target program.
The said goods can perform the method that any embodiment of the present invention is provided, and possess the corresponding functional module of execution method
And beneficial effect.
Embodiment six
The embodiment of the present invention also provides a kind of storage medium for including computer executable instructions, and the computer can perform
When being performed by computer processor for performing a kind of method of testing of application program, this method includes for instruction:
Detect the startup event of target program;
Judge whether the target program meets that virtual backstage provides the condition of service;Wherein, the virtual background service
Device is stored in intelligent terminal;
If satisfied, the action command and control instruction that are then got according to the target program, access the virtual backstage,
Into accession page, tested.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap
Include:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as
DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetizing mediums
(such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can also include other
The memory of type or its combination.In addition, storage medium can be located at program in the computer system being wherein performed, or
It can be located in different second computer systems, second computer system is connected to computer by network (such as internet)
System.Second computer system can provide programmed instruction and be used to perform to computer.Term " storage medium " can include can
To reside in diverse location two or more storage mediums of (such as in different computer systems by network connection).
Storage medium can store the programmed instruction (such as being implemented as computer program) that can be performed by one or more processors.
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer
The test operation for the application program that executable instruction is not limited to the described above, it can also carry out any embodiment of the present invention and provided
Application program method of testing in associative operation.
Embodiment seven
The embodiments of the invention provide a kind of intelligent terminal, provided in an embodiment of the present invention answer can be integrated in the intelligent terminal
With the test device of program.Fig. 6 is a kind of structural representation for intelligent terminal that the embodiment of the present invention seven provides.As shown in fig. 6,
The intelligent terminal can include:Memory 601, central processing unit (Central Processing Unit, CPU) 602 are (also known as
Processor, hereinafter referred to as CPU), circuit board (not shown) and power circuit (not shown).The circuit board is placed in
The interior volume that the housing surrounds;The CPU602 and the memory 601 are arranged on the circuit board;The power supply electricity
Road, for each circuit or the device power supply for the intelligent terminal;The memory 601, for storing executable program generation
Code;The CPU602 is run and the executable journey by reading the executable program code stored in the memory 601
Computer program corresponding to sequence code, to realize following steps:
Detect the startup event of target program;
Judge whether the target program meets that virtual backstage provides the condition of service;Wherein, the virtual background service
Device is stored in intelligent terminal;
If satisfied, the action command and control instruction that are then got according to the target program, access the virtual backstage,
Into accession page, tested.
The intelligent terminal also includes:Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, audio-frequency electric
Road 606, loudspeaker 611, power management chip 608, input/output (I/O) subsystem 609, touch-screen 612, other input/controls
Control equipment 610 and outside port 604, these parts are communicated by one or more communication bus or signal wire 607.
It should be understood that diagram intelligent terminal 600 is only an example of intelligent terminal, and intelligent terminal 600
Can have than more or less parts shown in figure, can combine two or more parts, or can be with
Configured with different parts.Various parts shown in figure can be including one or more signal transactings and/or special
Hardware, software including integrated circuit are realized in the combination of hardware and software.
The test intelligent terminal for application program provided below with regard to the present embodiment is described in detail, and the intelligence is eventually
End is by taking mobile phone as an example.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 can
Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories,
Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU602 and deposited by Peripheral Interface 603, the Peripheral Interface 603
Reservoir 601.
I/O subsystems 609, the I/O subsystems 609 can be by the input/output peripherals in equipment, such as touch-screen 612
With other input/control devicess 610, Peripheral Interface 603 is connected to.I/O subsystems 609 can include the He of display controller 6091
For controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controls
Device 6092 processed receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610,
Other input/control devicess 610 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole, click on roller.What deserves to be explained is input controller 6092 can with it is following any one be connected:Keyboard, infrared port,
The instruction equipment of USB interface and such as mouse.
Touch-screen 612, the touch-screen 612 are the input interface and output interface between user's intelligent terminal and user,
Visual output display can be included into figure, text, icon, video etc. to user, visual output.
Display controller 6091 in I/O subsystems 609 receives electric signal from touch-screen 612 or sent out to touch-screen 612
Electric signals.Touch-screen 612 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 6091
The interaction of user interface object on touch-screen 612, that is, realize man-machine interaction, the user interface being shown on touch-screen 612
Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light
Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 605, it is mainly used in establishing the communication of mobile phone and wireless network (i.e. network side), realizes mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 605 receive and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 605 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications
Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 605 can include being used to perform
The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one
Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identify mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606, it is mainly used in receiving voice data from Peripheral Interface 603, the voice data is converted into telecommunications
Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611, for the voice signal for receiving mobile phone from wireless network by RF circuits 605, it is reduced to sound
And play the sound to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface are powered
And power management.
Intelligent terminal provided in an embodiment of the present invention, it is possible to achieve improve the effect of the efficiency of client exploitation and test process
Fruit.
Preferred embodiment
In order to allow those skilled in the art to become more apparent upon the technical scheme that the embodiment of the present invention is provided, the present invention is also
Provide preferred embodiment.
The first step, start app first, then app reads configuration file appBegin.json.Whether reading will open automatic
Change service webAppService.Illustrate Appflag=0, is not turned on;Appflag=1, open service.What is returned is any lattice
Formula json forms, string forms, xml forms, the frequency n umber also returned etc. webAppService configuration parameters.
Second step, webAppService quite start a web background service, and endless loop, which waits, monitors request.
3rd step, when homepage of managing money matters asks true background server not have data return, will immediately request automation
Service webAppService.Gone according to action=finance the and controller=finance_first parameters of upload
Automation services configuration file webAppService, json are parsed, it is financing homepage to navigate to.
4th step, this when of webAppService can be read pair according to configuration file webAppService, json
The data format that the financing homepage answered needs, is spliced into the data of json forms, and return to app ends.It is automatic so as to realize
Change the simulation of data.Such as:Data format:
" add_interest_ratio_new "=" 110 ";
" add_interest_text "=" mark 0.5% of increasing the interest ";
" balance_title "=" U5269 U4f59 U91d1 U989d ";
" begin_Money "=100;
" buy "=1;
" clickID "=21211;
" countdown_time "=" ";
" desc "=" U6bcf U65e5 U9650 U91cf ";
" fenqile_institution "=" U5206 U671f U4e50 U673a U6784 ";
" min_ratio_max "=" U6700 U9ad8 U52a01.09% ";
" product_icon "=" circle ";
" product_id "=" H0002 ";
" product_title "=" 5 U4e07 U8d77 U6295 U4e13 U4eab ";
Data format corresponding to 5th step, different interfaces is different, according to corresponding action and controller, obtains
Corresponding data format.
The present embodiment can be illustrated more intuitively in the technology disclosed in the embodiment of the present invention by providing instantiation
Hold.
The executable present invention of test device, storage medium and intelligent terminal of the application program provided in above-described embodiment appoints
The method of testing for the application program that meaning embodiment is provided, possess and perform the corresponding functional module of this method and beneficial effect.Not
The ins and outs of detailed description in the above-described embodiments, reference can be made to the test for the application program that any embodiment of the present invention is provided
Method.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
- A kind of 1. method of testing of application program, it is characterised in that including:Detect the startup event of target program;Judge whether the target program meets that virtual backstage provides the condition of service;Wherein, the virtual background server is deposited It is stored in intelligent terminal;If satisfied, the action command and control instruction that are then got according to the target program, access the virtual backstage, enter Accession page, tested.
- 2. the method for testing of application program according to claim 1, it is characterised in that judge whether the target program is full The virtual backstage of foot provides the condition of service, including:Obtain virtual background service switch parameter;When the virtual background service switch parameter meets to impose a condition, it is defined as meeting the bar that virtual backstage provides service Part.
- 3. the method for testing of application program according to claim 1, it is characterised in that judge whether the target program is full The virtual backstage of foot provides the condition of service, including:Obtain the returning result that the target program is asked to the accession page that server background is sent;If non-back page data, it is defined as meeting the condition that virtual backstage provides service.
- 4. the method for testing of the application program according to Claims 2 or 3, it is characterised in that obtained according to the target program The action command and control instruction got, the virtual backstage is accessed, into accession page, is tested, including:The action command and control instruction got according to the target program, position the accession page of the target program;According to the accession page of the target program, page data is obtained;The page data includes:Virtual backstage configuration file In return format parameter and recycle time parameter;According to the page data of acquisition, into accession page, tested.
- 5. the method for testing of application program according to claim 4, it is characterised in that the return format parameter includes At least one of json forms, string forms and xml forms.
- 6. the method for testing of application program according to claim 2, it is characterised in that obtain virtual background service switch ginseng Number includes:Obtain Appflag assignment;When the Appflag is when being entered as 1, it is defined as meeting the condition that virtual backstage provides service;When the Appflag is when being entered as 0, it is defined as being unsatisfactory for the condition that virtual backstage provides service.
- 7. the method for testing of the application program according to Claims 2 or 3, it is characterised in that also include:After whether the target program meets that virtual backstage provides the condition of service, the virtual backstage is in circular wait shape State, monitor the accession page request of the target program.
- A kind of 8. test device of application program, it is characterised in that including:Start detection module, for detecting the startup event of target program;Virtual background service judge module, for judging whether the target program meets that virtual backstage provides the condition of service; Wherein, the virtual background server is stored in intelligent terminal;Target program test module, if satisfied, the action command and control instruction that are then got according to the target program, are accessed The virtual backstage, into accession page, is tested.
- 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor The method of testing of the application program as described in any in claim 1-7 is realized during row.
- 10. a kind of intelligent terminal, including memory, processor and storage are on a memory and can be in the computer of processor operation Program, it is characterised in that realize answering as described in any in claim 1-7 described in the computing device during computer program With the method for testing of program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711173528.9A CN107832224A (en) | 2017-11-22 | 2017-11-22 | A kind of method of testing of application program, device, storage medium and intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711173528.9A CN107832224A (en) | 2017-11-22 | 2017-11-22 | A kind of method of testing of application program, device, storage medium and intelligent terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107832224A true CN107832224A (en) | 2018-03-23 |
Family
ID=61653351
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711173528.9A Pending CN107832224A (en) | 2017-11-22 | 2017-11-22 | A kind of method of testing of application program, device, storage medium and intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107832224A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109902011A (en) * | 2019-02-28 | 2019-06-18 | 深圳乐信软件技术有限公司 | A kind of software Caton monitoring method, device, equipment and storage medium |
CN110888812A (en) * | 2019-11-26 | 2020-03-17 | 国核自仪系统工程有限公司 | System and method for testing response time of terminal page |
CN111159039A (en) * | 2019-12-30 | 2020-05-15 | 中信百信银行股份有限公司 | Service simulation method, system, device and storage medium |
CN114039760A (en) * | 2021-11-03 | 2022-02-11 | 中国工商银行股份有限公司 | Security testing method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905258A (en) * | 2012-12-24 | 2014-07-02 | 百度国际科技(深圳)有限公司 | Method and apparatus for testing data uploading function of client |
CN106126420A (en) * | 2016-06-21 | 2016-11-16 | 北京小米移动软件有限公司 | Application program adjustment method and device |
CN106528400A (en) * | 2016-09-22 | 2017-03-22 | 深圳峰创智诚科技有限公司 | MOCK testing method and device |
CN106933732A (en) * | 2015-12-30 | 2017-07-07 | 航天信息股份有限公司 | Method for testing software and system |
CN107220169A (en) * | 2016-03-21 | 2017-09-29 | 阿里巴巴集团控股有限公司 | A kind of emulating server returns to the method and apparatus for customizing data |
US20170300402A1 (en) * | 2016-04-19 | 2017-10-19 | Sap Se | Mock server and extensions for application testing |
-
2017
- 2017-11-22 CN CN201711173528.9A patent/CN107832224A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905258A (en) * | 2012-12-24 | 2014-07-02 | 百度国际科技(深圳)有限公司 | Method and apparatus for testing data uploading function of client |
CN106933732A (en) * | 2015-12-30 | 2017-07-07 | 航天信息股份有限公司 | Method for testing software and system |
CN107220169A (en) * | 2016-03-21 | 2017-09-29 | 阿里巴巴集团控股有限公司 | A kind of emulating server returns to the method and apparatus for customizing data |
US20170300402A1 (en) * | 2016-04-19 | 2017-10-19 | Sap Se | Mock server and extensions for application testing |
CN106126420A (en) * | 2016-06-21 | 2016-11-16 | 北京小米移动软件有限公司 | Application program adjustment method and device |
CN106528400A (en) * | 2016-09-22 | 2017-03-22 | 深圳峰创智诚科技有限公司 | MOCK testing method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109902011A (en) * | 2019-02-28 | 2019-06-18 | 深圳乐信软件技术有限公司 | A kind of software Caton monitoring method, device, equipment and storage medium |
CN110888812A (en) * | 2019-11-26 | 2020-03-17 | 国核自仪系统工程有限公司 | System and method for testing response time of terminal page |
CN110888812B (en) * | 2019-11-26 | 2023-11-07 | 国核自仪系统工程有限公司 | Test system and test method for response time of terminal page |
CN111159039A (en) * | 2019-12-30 | 2020-05-15 | 中信百信银行股份有限公司 | Service simulation method, system, device and storage medium |
CN114039760A (en) * | 2021-11-03 | 2022-02-11 | 中国工商银行股份有限公司 | Security testing method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107832224A (en) | A kind of method of testing of application program, device, storage medium and intelligent terminal | |
CN107944259A (en) | Using the management-control method of startup, device and storage medium and mobile terminal | |
CN107861830A (en) | Detection method, device, storage medium and the mobile terminal of application crash | |
CN109324857B (en) | User guide implementation method, device and storage medium | |
CN108762837A (en) | Application program preloads method, apparatus, storage medium and terminal | |
CN107479816B (en) | Recognition methods, device, storage medium and the mobile terminal of blank screen gesture | |
CN109376056A (en) | Abnormal log analysis method, device, storage medium, mobile terminal and server | |
CN107450837B (en) | Respond method, apparatus, storage medium and the mobile terminal of blank screen gesture | |
CN109858019A (en) | Dialogue state tracking and device, storage medium and semantics recognition system | |
CN107402713B (en) | Accelerate method, apparatus, storage medium and the mobile terminal of the processing of blank screen gesture | |
CN109243425A (en) | Speech recognition test method, device, system, computer equipment and storage medium | |
CN109840418A (en) | Jump control method, device, storage medium and the terminal of application program | |
CN112035768A (en) | Page rendering method and device for fast application, storage medium and electronic equipment | |
CN107450838A (en) | Response method, device, storage medium and the mobile terminal of blank screen gesture | |
CN109344066A (en) | A kind of test method of browser page, system and terminal | |
CN112996020A (en) | Bluetooth-based automatic testing method and device and Bluetooth testing terminal | |
CN112214405A (en) | Software testing method and device, electronic equipment and readable storage medium | |
CN108319474B (en) | Page information generation method, device and equipment | |
CN112286485B (en) | Method and device for controlling application through voice, electronic equipment and storage medium | |
CN113835700A (en) | Activity online method and device, electronic equipment and computer readable storage medium | |
CN108182090A (en) | Flash plug-in loading methods and device based on blink kernels | |
CN107395888B (en) | Processing method, device, storage medium and the mobile terminal of blank screen gesture | |
CN109005469A (en) | A kind of conversion method of message format, device, storage medium and android terminal | |
CN114999457A (en) | Voice system testing method and device, storage medium and electronic equipment | |
CN116627521A (en) | Service module preloading method, skipping method, device and storage medium |
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: 20180323 |