CN109614311A - Applied program testing method and device, electronic equipment, storage medium - Google Patents

Applied program testing method and device, electronic equipment, storage medium Download PDF

Info

Publication number
CN109614311A
CN109614311A CN201811237330.7A CN201811237330A CN109614311A CN 109614311 A CN109614311 A CN 109614311A CN 201811237330 A CN201811237330 A CN 201811237330A CN 109614311 A CN109614311 A CN 109614311A
Authority
CN
China
Prior art keywords
version
tested
configuration file
configuration information
configuration
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
CN201811237330.7A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811237330.7A priority Critical patent/CN109614311A/en
Publication of CN109614311A publication Critical patent/CN109614311A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

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)
  • Stored Programmes (AREA)

Abstract

The disclosure is directed to a kind of applied program testing method and device, electronic equipment, storage mediums, are related to automatization testing technique field, this method comprises: the application program for current version generates the configuration file comprising configuration information;Configuration information described in oral replacement is preset by the configuration file, to obtain updated configuration file corresponding with version to be tested;It is tested according to application program of the updated configuration file to the version to be tested.The disclosure can modify configuration information by the default entrance of configuration file using contrast test, to obtain updated configuration file, and then can the application program flexibly to multiple versions test, improve testing efficiency.

Description

Applied program testing method and device, electronic equipment, storage medium
Technical field
This disclosure relates to automatization testing technique field, in particular to a kind of applied program testing method, using journey Sequence test device, electronic equipment and computer readable storage medium.
Background technique
In the development process of a application APP, need constantly to each different function version of application program into Row test is convenient for application program update and upgrading to improve the performance of application program.
In the related technology, each version respectively corresponds different configuration files, therefore can only by a configuration file The application program for testing a version, during application program update, new version can not obtain corresponding configuration file.Cause This needs to generate multiple and different configuration files and comes respectively to different versions when needing to test the application program of multiple and different versions This application program is tested.This mode limitation is larger, it has not been convenient to test the application program of different editions, and test effect Rate is low.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The disclosure is designed to provide a kind of applied program testing method and device, electronic equipment, storage medium, in turn Testing efficiency is low caused by overcoming the problems, such as the limitation and defect due to the relevant technologies at least to a certain extent.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
According to one aspect of the disclosure, a kind of applied program testing method is provided, comprising: be the application journey of current version Sequence generates the configuration file comprising configuration information;Configuration information described in oral replacement is preset by the configuration file, with To updated configuration file corresponding with version to be tested;The version to be tested is answered according to updated configuration file It is tested with program.
In a kind of exemplary embodiment of the disclosure, match confidence by the way that the default entrance adjustment of the configuration file is described Breath, includes: acquisition profile template to obtain updated configuration file corresponding with version to be tested, and from test case The associated test case information of the version to be tested is obtained in library;The test case information is added to the configuration file Template generates the configuration information of the version to be tested;The configuration information is repaired by the default entrance of the configuration file It is changed to the configuration information of the version to be tested, to obtain updated configuration file corresponding with the version to be tested.
In a kind of exemplary embodiment of the disclosure, the predetermined word for describing version is included in the configuration information Section.
In a kind of exemplary embodiment of the disclosure, the test case information is added to the profile template Before, the method also includes: classified according to the functional module of the application program to the test case information, and be Every class testing use-case information generates default mark;The corresponding test case information of all default marks is stored, to establish The test case library.
In a kind of exemplary embodiment of the disclosure, by the default entrance of the configuration file by the configuration information The configuration information for being revised as the version to be tested includes: modification entrance by the configuration file, by the current version Corresponding preset field is adjusted to the corresponding aiming field of the version to be tested, by the configuration information be revised as it is described to The configuration information of beta version.
In a kind of exemplary embodiment of the disclosure, by the corresponding preset field of the current version be adjusted to it is described to The corresponding aiming field of beta version, by the configuration information that the configuration information is revised as the version to be tested include: by The aiming field is matched with the multiple preset fields for indicating multiple versions;If the aiming field is preset with the multiple The corresponding configuration information of the preset field of successful match is then determined as the version to be tested by one of field successful match Configuration information.
In a kind of exemplary embodiment of the disclosure, by aiming field and indicate multiple preset fields of multiple versions into After row matching, the method also includes: it, will default if it fails to match for the aiming field and the multiple preset field The corresponding configuration information of field is determined as the configuration information of the version to be tested.
According to one aspect of the disclosure, a kind of Application testing device is provided, comprising: configuration file generation module, For generating the configuration file comprising configuration information for the application program of current version;Configuration information update module, for passing through The configuration file presets configuration information described in oral replacement, to obtain updated configuration text corresponding with version to be tested Part;Testing control module, for being tested according to application program of the updated configuration file to the version to be tested.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising: processor;And memory, for storing The executable instruction of the processor;Wherein, the processor is configured to above-mentioned to execute via the executable instruction is executed Applied program testing method described in any one.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with, The computer program realizes applied program testing method described in above-mentioned any one when being executed by processor.
A kind of applied program testing method, device, electronic equipment and the calculating provided in disclosure exemplary embodiment In machine readable storage medium storing program for executing, on the one hand, adjust configuration information by the default entrance of configuration file, and then obtain and test run to be measured This corresponding updated configuration file, is surveyed with the application program for treating beta version by updated configuration file Examination, can obtain configuration file by adjusting configuration information, to switch over test to different versions, avoid limitation Property, improve universality;On the other hand, it is only necessary to configuration information is modified by the default entrance of configuration file, it can be conveniently fast The application program of different editions is tested on prompt ground, improves testing efficiency.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of applied program testing method schematic diagram in disclosure exemplary embodiment;
Fig. 2 schematically shows the flow chart that different editions application program is tested in disclosure exemplary embodiment;
Fig. 3 schematically shows a kind of block diagram of Application testing device in disclosure exemplary embodiment;
Fig. 4 schematically shows the block diagram of a kind of electronic equipment in disclosure exemplary embodiment;
Fig. 5 schematically shows a kind of program product in disclosure exemplary embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.In the following description, it provides perhaps More details fully understand embodiment of the present disclosure to provide.It will be appreciated, however, by one skilled in the art that can It is omitted with technical solution of the disclosure one or more in the specific detail, or others side can be used Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and So that all aspects of this disclosure thicken.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
A kind of applied program testing method is provided firstly in this example embodiment, can be applied to various need to test The application scenarios of the application APP of different editions.Refering to what is shown in Fig. 1, the applied program testing method may include following step It is rapid:
In step s 110, the configuration file comprising configuration information is generated for the application program of current version.
In the present exemplary embodiment, before the new version of application program is published to client, need to answer new version It is tested with each functional module in program, to avoid since the functional module in new version is incompatible, there are functions to lack Fall into the problem of new edition application caused by either other problems is not available.Application program herein refers to be released Application program, can in advance publication environment in it is tested.Test pass through after application program can be deployed in for The true environment that user uses, i.e. production environment.What configuration file referred to testing the functional module of application program Configuration file, for an application program, all versions can correspond to the same configuration file, and a configuration file only needs Want a test equipment.Current version refers to the default version that the version tested either is arranged, next Current version is switched to version to be tested.It is of course also possible to be not provided with current version and directly switch version to be tested.Match Confidence ceases the configuration information for referring to current version, wherein may include test case information corresponding with current version.
In the step s 120, configuration information described in oral replacement is preset by the configuration file, with obtain with it is to be measured The corresponding updated configuration file of test run sheet.
In the present exemplary embodiment, the default entrance of configuration file refers to entering the modification that configuration information is modified Mouthful.The configuration information of current version quickly and easily can be revised as version to be tested by the default entrance of configuration file Configuration information, thus generation and updated configuration file corresponding with version to be tested, without regenerating configuration text Part rebuilds test bag, avoids cumbersome operating process, reduces workload.
In step s 130, it is tested according to application program of the updated configuration file to the version to be tested.
In the present exemplary embodiment, different configuration informations quickly can be set by the default entrance of a configuration file. Specifically, the test case letter of corresponding version can be extracted from test case library according to version information of version to be tested etc. Breath, treats beta version using test case information and is tested.In this exemplary embodiment, test case information can be mould Quasi- user is for storing using the one section of program or similar realization rate, test case library of functional module in application program The database of the test case information of corresponding different editions different function module.
In the applied program testing method provided in the present example embodiment, on the one hand, pass through the default of configuration file Entrance adjusts configuration information, and then obtains updated configuration file corresponding with version to be tested, to be matched by updated It sets file and treats the application program of beta version and tested, configuration file can be obtained by adjusting configuration information, thus right Different versions switches over test, reduces limitation;On the other hand, it is only necessary to be modified by the default entrance of configuration file Configuration information can conveniently and efficiently test the application program of different editions, improve testing efficiency.
Next, the applied program testing method in the present exemplary embodiment is further expalined in conjunction with attached drawing It is bright.
In step s 110, the configuration file comprising configuration information is generated for the application program of current version.
In the present exemplary embodiment, application program can be for example shopping class APP, game class APP, social category APP etc.. During constructing application program, the configuration file for application program can be generated.Wherein, each application program can divide It Dui Ying not a unique configuration file.For example, application program 1 corresponds to configuration file 1, the corresponding configuration file 2 of application program 2 etc. Deng.It should be noted that multiple versions of application program, such as version 1, the corresponding configuration file such as version 1.1 are all the same.It should It include the configuration information tested for all versions of the application program to building in configuration file, such as test item, Test method, test result etc..
Configuration file may be, for example, Properties configuration file, and file format can be the one-to-one lattice of key assignments Formula.The content in Properties configuration file can be scanned for by functions such as get, load, set, store, clear, The operations such as loading, calling, storage, removing.When front end needs content to be shown to change, function or circulation can be passed through It directly modifies to configuration file, simpler convenience.
When generating configuration file, can be automatically generated by a profile template for each application program corresponding Configuration file.Specifically by information such as each application program corresponding information, such as application name, function, main modular Automatic filling is into profile template, to quickly generate the corresponding configuration file of each application program.
Independent configuration information is generated respectively in addition, may include in configuration file for each version of application program, Therefore the configuration information can be called to adjust the corresponding configuration file of each version application program.For example, being generated for version 1 corresponding Configuration information 1 generates corresponding configuration information 2 etc. for version 2, can accurately, easily be switched to version to be tested.
It specifically, include preset field, preset field root when constructing configuration file by developer in configuration information It is arranged according to actual demand and reserves.The preset field is used to describe the different editions of the same application program, and same answers Value with the corresponding preset field of each version of program is different.For example, version 1 corresponds to preset field 1, version 1.1 is right Answer preset field 2 etc..
When generating the corresponding configuration file of each application program, preset field wherein included can be set as defaulting Field.Default fields can be the corresponding preset field of any one version, such as be set as the corresponding preset field 1 of version 1.
After generating configuration file, the configuration file of generation can be stored in inside application program, inside application program That is local data base, in order to directly quickly read.In addition to this, the configuration file of generation can also be stored in cloud service Device.It is required to send configuration file acquisition request to Cloud Server if being stored in Cloud Server, when application program starts every time, To obtain configuration file.
In the step s 120, configuration information described in oral replacement is preset by the configuration file, with obtain with it is to be measured The corresponding updated configuration file of test run sheet.
In the present exemplary embodiment, default entrance refers to the port of application program, can be according to actual needs by exploit person Member reserves and is arranged when constructing application program.The default entrance for example can be the modification entrance of configuration file.Specifically, Configuration information described in oral replacement is preset by the configuration file, to obtain updated match corresponding with version to be tested The specific steps for setting file include: the first step, obtain profile template, and the test run to be measured is obtained from test case library This associated test case information.Profile template refers to the corresponding Universal Die of all versions of each application program Plate, wherein may include the content of partial profiles, such as to may include application name, basic function corresponding with confidence Breath etc..In order to guarantee the integrality of test, test of the missing to partial function in configuration file is avoided, can determine whether to need The corresponding test case information of version to be tested is added to profile template.It specifically, can be by version to be tested and current version This functional module compares, to obtain comparing result;If the functional module of version to be tested and the function of current version Module is identical, then does not need to increase test case information.If version to be tested increases difference for current version Functional module, then need to increase the corresponding test case information of these functional modules.
In order to facilitate test, all test case information is stored in test case library.Specifically, test is being generated It when use-case library, can be classified according to the functional module of the application program to the test case information, and be every class testing Use-case information generates default mark;The corresponding test case information of all default marks is stored, to establish the test Use-case library.Wherein, default mark can be number or letter, for uniquely indicating that the test case of each functional module is believed Breath.For example, mark 1 indicates that the corresponding test case information of functional module 1, mark 2 indicate the corresponding test of functional module 2 Use-case information etc..It should be noted that can also be classified according to different interactive mode etc. to test case information, this Place is not particularly limited.
On this basis, if functional module or known version to be tested that known version to be tested includes are relative to working as Increased functional module for preceding version, then can be according to the corresponding default mark of functional module directly and quickly from test case Test case information corresponding with the functional module type of version to be tested is obtained in library.In this way, according to version to be tested Default mark obtain test case information, the problems such as the omission occurred when effectively can avoid manually selecting, mistake is selected, improve and survey Efficiency and test accuracy rate are tried, avoids re-starting test increase testing cost, waste detection time because of error in judgement The problem of.
Second step can be by institute after obtaining the associated test case information of the version to be tested in test case library It states test case information and is added to the profile template, generate the configuration information of the version to be tested.Program can be passed through The test case information that the first step obtains is added in general profile template, the configuration for being directed to version to be tested is generated It is accurate to improve test so as to avoid that cannot treat the problem of functional module that beta version newly increases is tested for information Rate.
The configuration information is revised as the version to be tested by the default entrance of the configuration file by third step Configuration information, to obtain updated configuration file corresponding with the version to be tested.Due to including description in configuration information The preset field of version, therefore adjustment configuration information is equivalent to and is adjusted to preset field.Specifically, pass through the configuration text It includes: to be matched by described that the configuration information is revised as the step of configuration information of the version to be tested by the default entrance of part The corresponding preset field of the current version is adjusted to the corresponding target word of the version to be tested by the modification entrance for setting file The configuration information, is revised as the configuration information of the version to be tested by section.Wherein, preset field is adjusted to target word The specific steps of section include: to match aiming field with the multiple preset fields for indicating multiple versions;If the target word One of section and the multiple preset field successful match then determine the corresponding configuration information of the preset field of successful match For the configuration information of the version to be tested.In addition, if the aiming field is with the multiple preset field, it fails to match, The corresponding configuration information of default fields is determined as to the configuration information of the version to be tested.
For example, the concrete condition of the corresponding configuration information of all versions are as follows: the corresponding configuration information a of preset field 1, pre- If field 2 corresponds to the corresponding configuration information c of configuration information b, preset field 3.If aiming field is 1, it is believed that not needing to increase newly Test case information directly can match confidence using the configuration information of version 1.1 as the corresponding version to be tested of aiming field Breath, therefore the configuration file of script can be modified according to the corresponding configuration information a of preset field 1.In addition to this, if due to The reasons such as filling in mistake or forget to fill in leads to the configuration information of preset field corresponding with all versions of aiming field It fails to match, then is adjusted according to the corresponding configuration information of default fields to the configuration file.For example, all versions The concrete condition of corresponding configuration information are as follows: the corresponding configuration information a of preset field 1, the corresponding configuration information b of preset field 2, preset Field 3 corresponds to configuration information c.If aiming field is 15, preset field equal of aiming field and all versions can be determined With failure, then the configuration information of the default fields such as corresponding version of preset field 1 can be determined as matching for version to be tested A part of confidence breath, and test case information is added according to newly-increased functional module, to generate the configuration of version to be tested Information, and then obtain modified configuration file.
After modifying aiming field by the modification entrance of configuration file and being switched to version to be tested, it can call to be tested The corresponding configuration information of version carries out real time modifying to the configuration file of the APP generated in step S110, according to modified The application program of configuration file version to be tested corresponding to aiming field is tested, to realize a multi-purpose pack, is flexibly cut Change the version to be tested of application program, it is convenient and efficient and improve testing efficiency.
When adjusting preset field, aiming field can be inputted by the modification entrance of the configuration file of application program, it will The corresponding preset field of current version in configuration file is revised as indicating the aiming field of version to be tested.Wherein, if it is known Preset field in configuration file can be then revised as the corresponding aiming field of version to be tested by version to be tested;If unknown Version to be tested, can according to version version number is incremented by successively or the rules modification aiming field successively decreased, can also modify at random Aiming field does not do particular determination herein.In addition to this, it in order to not influence progress, can be limited in preset duration to predetermined word Section is modified, to guarantee the validity of the aiming field of modification.Preset duration for example can be 30 seconds, 1 minute etc., specifically It can be configured by developer.If completing modification in preset duration, step S130 is continued to execute;If do not completed, S120 is then re-execute the steps to modify.
User setting and after having modified aiming field, can be committed to test macro for modified aiming field, such as can It is submitted, can also be submitted manually by tester with automatic within a certain period of time.In order to guarantee the validity of test, can limit System is completed to submit within a certain period of time, for example, preset field is revised as aiming field for completing submission;For not complete At submission, keep the corresponding preset field of current version constant.
Further, when detecting that modified aiming field submission finishes, application program can be carried out just automatically Beginningization, to be restarted automatically application program.At the same time, if detecting the initialization operation to application program, can receive by The test request that application program is sent, and functional module corresponding in application program is tested in response test request.Specifically Ground, the configurable configuration logic that can be switched between current version and version to be tested, by configuring logic switch To version to be tested.Repeatedly test environment can be carried out to avoid the application program manually to multiple versions by addition configuration logic Switching, can not only reduce drain on manpower and material resources, reduce the cost of maintenance, and can be to avoid because manual operation causes to lose It leaks, the problem of mistake.
Next, in step s 130, according to updated configuration file to the application program of the version to be tested into Row test.
It, can be corresponding to the associated configuration information of aiming field on the basis of step S120 in the present exemplary embodiment Version to be tested is tested, to flexibly realize that the application program to multiple versions switches over test.Specifically, logical Cross the configuration file of application program modification entrance modified aiming field after, the aiming field obtained after modification can be committed to Test macro, to test application program.
Wherein, due to include in the configuration file that generates in step s 110 independent description version configuration information, The corresponding configuration file of configuration information adjustment application program can be called.Version is being had switched by the modification entrance of configuration file Afterwards, the corresponding configuration information of version to be tested can be called, the configuration file of the APP generated in step S110 is repaired in real time Change, generate configuration file corresponding with version to be tested, thus corresponding to aiming field according to the configuration file of version to be tested The application program of version to be tested tested, realize a multi-purpose pack.
In the present exemplary embodiment, during the entire process of testing an application program, only one configuration File, therefore reduce the workload for being packaged configuration file;It in addition to this, can be to the test of all versions of application program It is completed in one equipment, reduces testing cost;In addition, preset field is revised as mesh by the modification entrance in configuration file The mode of marking-up section can be switched to corresponding to aiming field in conjunction with the configuration file for calling version corresponding with aiming field Version to be tested tested, improve flexibility, universality and testing efficiency.
Fig. 2 shows the flow charts of test different editions application program, specifically includes the following steps:
In step s 201, a configuration file corresponding with APP is generated when constructing APP, which is stored in APP It is local;
In step S202, which includes configuration information, reserves a preset field in configuration information, is used for table Show version;
In step S203, user can be adjusted preset field on the modification entrance of APP, to obtain target word Section submits APP after aiming field that can be restarted automatically;
In step S204, APP reads the corresponding configuration file of aiming field during initializing, and calls test run to be measured This corresponding configuration information sends test request to server-side, is tested with treating beta version.
Pass through step S201 to step S204, during the entire process of testing an application program, only one A configuration file, therefore reduce the workload for being packaged configuration file;In addition, will be preset by the modification entrance in configuration file Field is revised as the mode of aiming field, in conjunction with the configuration file for calling version to be tested corresponding with aiming field, can cut It is changed to version to be tested corresponding to aiming field to test, improves flexibility, universality and testing efficiency, realize one Packet is multi-purpose.
The disclosure additionally provides a kind of Application testing device.Refering to what is shown in Fig. 3, the device 300 may include:
Configuration file generation module 301 can be used for generating matching comprising configuration information for the application program of current version Set file;
Configuration file update module 302 can be used for presetting described in oral replacement with confidence by the configuration file Breath, to obtain updated configuration file corresponding with version to be tested;
Testing control module 303 can be used for the application journey according to updated configuration file to the version to be tested Sequence is tested.
In a kind of exemplary embodiment of the disclosure, configuration file update module includes: that test case obtains module, is used In acquisition profile template, and the associated test case information of the version to be tested is obtained from test case library;Configuration Information generating module generates the version to be tested for the test case information to be added to the profile template Configuration information;File modification module, for the configuration information to be revised as institute by the default entrance of the configuration file The configuration information of version to be tested is stated, to obtain updated configuration file corresponding with the version to be tested.
In a kind of exemplary embodiment of the disclosure, the predetermined word for describing version is included in the configuration information Section.
In a kind of exemplary embodiment of the disclosure, the test case information is added to the profile template Before, described device further include: identifier generation module, for the functional module according to the application program to the test case Information is classified, and generates default mark for each class testing use-case information;Test case library establishes module, for all It presets the corresponding test case information of mark to be stored, to establish the test case library.
In a kind of exemplary embodiment of the disclosure, file modification module includes: configuration information modified module, for leading to It is corresponding to be adjusted to the version to be tested by the modification entrance for crossing the configuration file for the corresponding preset field of the current version Aiming field, the configuration information is revised as to the configuration information of the version to be tested.
In a kind of exemplary embodiment of the disclosure, configuration information modified module includes: fields match module, and being used for will Aiming field is matched with the multiple preset fields for indicating multiple versions;First modified module, if being used for the aiming field With one of the multiple preset field successful match, then the corresponding configuration information of the preset field of successful match is determined as The configuration information of the version to be tested.
In a kind of exemplary embodiment of the disclosure, by aiming field and indicate multiple preset fields of multiple versions into After row matching, described device further include: the second modified module, if equal for the aiming field and the multiple preset field It fails to match, then the corresponding configuration information of default fields is determined as to the configuration information of the version to be tested.
It should be noted that the detail of each module applies journey corresponding in above-mentioned Application testing device It is described in detail in sequence test method, therefore details are not described herein again.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
The electronic equipment 400 of this embodiment according to the present invention is described referring to Fig. 4.The electronics that Fig. 4 is shown Equipment 400 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 4, electronic equipment 400 is showed in the form of universal computing device.The component of electronic equipment 400 can wrap It includes but is not limited to: at least one above-mentioned processing unit 410, at least one above-mentioned storage unit 420, the different system components of connection The bus 430 of (including storage unit 420 and processing unit 410).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 410 Row, so that various according to the present invention described in the execution of the processing unit 410 above-mentioned " illustrative methods " part of this specification The step of illustrative embodiments.For example, the processing unit 410 can execute step as shown in fig. 1.
Storage unit 420 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 4201 and/or cache memory unit 4202, it can further include read-only memory unit (ROM) 4203.
Storage unit 420 can also include program/utility with one group of (at least one) program module 4205 4204, such program module 4205 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 430 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Display unit 440 can be display having a display function, to pass through the display exhibits by processing unit 410 Execute processing result obtained from the method in the present exemplary embodiment.Display include but is not limited to liquid crystal display either Other displays.
Electronic equipment 400 can also be with one or more external equipments 600 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 400 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 400 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 450.Also, electronic equipment 400 can be with By network adapter 460 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown, network adapter 460 is communicated by bus 430 with other modules of electronic equipment 400. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 400, including but not Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 5, describing the program product for realizing the above method of embodiment according to the present invention 500, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points out.

Claims (10)

1. a kind of applied program testing method characterized by comprising
The configuration file comprising configuration information is generated for the application program of current version;
Configuration information described in oral replacement is preset by the configuration file, after obtaining update corresponding with version to be tested Configuration file;
It is tested according to application program of the updated configuration file to the version to be tested.
2. applied program testing method according to claim 1, which is characterized in that by the configuration file preset into Mouth adjusts the configuration information, includes: to obtain updated configuration file corresponding with version to be tested
Profile template is obtained, and obtains the associated test case information of the version to be tested from test case library;
The test case information is added to the profile template, generates the configuration information of the version to be tested;
The configuration information is revised as to the configuration information of the version to be tested by the default entrance of the configuration file, with Obtain updated configuration file corresponding with the version to be tested.
3. applied program testing method according to claim 2, which is characterized in that comprising for retouching in the configuration information State the preset field of version.
4. applied program testing method according to claim 2, which is characterized in that the test case information to be added to Before the profile template, the method also includes:
Classified according to the functional module of the application program to the test case information, and is every class testing use-case information Generate default mark;
The corresponding test case information of all default marks is stored, to establish the test case library.
5. applied program testing method according to claim 3, which is characterized in that by the configuration file preset into Include: mouthful by the configuration information that the configuration information is revised as the version to be tested
By the modification entrance of the configuration file, the corresponding preset field of the current version is adjusted to the test run to be measured The configuration information, is revised as the configuration information of the version to be tested by this corresponding aiming field.
6. applied program testing method according to claim 5, which is characterized in that the current version is corresponding default Field is adjusted to the corresponding aiming field of the version to be tested, and the configuration information is revised as the version to be tested Configuration information includes:
The aiming field is matched with the multiple preset fields for indicating multiple versions;
If one of the aiming field and the multiple preset field successful match, by the preset field pair of successful match The configuration information answered is determined as the configuration information of the version to be tested.
7. applied program testing method according to claim 6, which is characterized in that by aiming field and indicate multiple versions Multiple preset fields matched after, the method also includes:
If it fails to match for the aiming field and the multiple preset field, the corresponding configuration information of default fields is determined For the configuration information of the version to be tested.
8. a kind of Application testing device characterized by comprising
Configuration file generation module, for generating the configuration file comprising configuration information for the application program of current version;
Configuration file update module, for presetting configuration information described in oral replacement by the configuration file, with obtain with The corresponding updated configuration file of version to be tested;
Testing control module, for being tested according to application program of the updated configuration file to the version to be tested.
9. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to come described in perform claim requirement 1-7 any one via the execution executable instruction Applied program testing method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program Applied program testing method described in claim 1-7 any one is realized when being executed by processor.
CN201811237330.7A 2018-10-23 2018-10-23 Applied program testing method and device, electronic equipment, storage medium Pending CN109614311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811237330.7A CN109614311A (en) 2018-10-23 2018-10-23 Applied program testing method and device, electronic equipment, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811237330.7A CN109614311A (en) 2018-10-23 2018-10-23 Applied program testing method and device, electronic equipment, storage medium

Publications (1)

Publication Number Publication Date
CN109614311A true CN109614311A (en) 2019-04-12

Family

ID=66002040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811237330.7A Pending CN109614311A (en) 2018-10-23 2018-10-23 Applied program testing method and device, electronic equipment, storage medium

Country Status (1)

Country Link
CN (1) CN109614311A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110389903A (en) * 2019-07-19 2019-10-29 中国工商银行股份有限公司 Test environment dispositions method and device, electronic equipment and readable storage medium storing program for executing
CN110727594A (en) * 2019-10-14 2020-01-24 北京智游网安科技有限公司 Test method for application integrity protection, intelligent terminal and storage medium
WO2020215693A1 (en) * 2019-04-23 2020-10-29 平安科技(深圳)有限公司 Software testing method and apparatus, computer device, and readable storage medium
CN112035365A (en) * 2020-09-01 2020-12-04 中国银行股份有限公司 Version deployment method and device supporting multiple test environments
CN112463615A (en) * 2020-12-03 2021-03-09 中国工商银行股份有限公司 Application testing method and device, computing equipment and medium
CN114995921A (en) * 2022-08-08 2022-09-02 深圳竹云科技股份有限公司 Application configuration updating method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110004867A1 (en) * 2009-07-01 2011-01-06 International Business Machines Corporation Automated level-based targeted test configuration
CN107783770A (en) * 2017-08-25 2018-03-09 上海壹账通金融科技有限公司 Page configuration update method, device, server and medium
CN108319554A (en) * 2018-02-13 2018-07-24 广州市百果园信息技术有限公司 Test method, computer readable storage medium and the terminal device of application function

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110004867A1 (en) * 2009-07-01 2011-01-06 International Business Machines Corporation Automated level-based targeted test configuration
CN107783770A (en) * 2017-08-25 2018-03-09 上海壹账通金融科技有限公司 Page configuration update method, device, server and medium
CN108319554A (en) * 2018-02-13 2018-07-24 广州市百果园信息技术有限公司 Test method, computer readable storage medium and the terminal device of application function

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李平;廖永波;阮爱武;李威;李文昌;: "SoC软硬件协同技术的FPGA芯片测试新方法", 电子科技大学学报, no. 05, 30 September 2009 (2009-09-30) *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020215693A1 (en) * 2019-04-23 2020-10-29 平安科技(深圳)有限公司 Software testing method and apparatus, computer device, and readable storage medium
CN110389903A (en) * 2019-07-19 2019-10-29 中国工商银行股份有限公司 Test environment dispositions method and device, electronic equipment and readable storage medium storing program for executing
CN110389903B (en) * 2019-07-19 2023-08-22 中国工商银行股份有限公司 Test environment deployment method and device, electronic equipment and readable storage medium
CN110727594A (en) * 2019-10-14 2020-01-24 北京智游网安科技有限公司 Test method for application integrity protection, intelligent terminal and storage medium
CN112035365A (en) * 2020-09-01 2020-12-04 中国银行股份有限公司 Version deployment method and device supporting multiple test environments
CN112035365B (en) * 2020-09-01 2023-08-18 中国银行股份有限公司 Version deployment method and device supporting multiple test environments
CN112463615A (en) * 2020-12-03 2021-03-09 中国工商银行股份有限公司 Application testing method and device, computing equipment and medium
CN114995921A (en) * 2022-08-08 2022-09-02 深圳竹云科技股份有限公司 Application configuration updating method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109614311A (en) Applied program testing method and device, electronic equipment, storage medium
US10324830B2 (en) Conditional upgrade and installation of software based on risk-based validation
AU2018201941A1 (en) Automated program code analysis and reporting
WO2017067441A1 (en) Method, device and system for testing application, and non-transient machine-readable storage medium
US20180260201A1 (en) Intelligent software deployment on an iaas platform
CN110727454A (en) Updating method and device of intelligent equipment, electronic equipment and storage medium
CN109669853A (en) Test report generation method and device, storage medium, electric terminal
US20200374292A1 (en) Intelligent device security
US20170109260A1 (en) Test Simulation for Software Defined Networking Environments
US10761494B2 (en) Policy introduced effect prediction apparatus, and policy introduced effect prediction method
EP4246332A1 (en) System and method for serverless application testing
CN113885911A (en) Robot version updating method and device based on RPA and AI
CN115238047A (en) Robot program for monitoring
EP3321808B1 (en) Verification system and verification method
CN109104292B (en) Update deployment processing method, related device, and computer-readable storage medium
CN110717315B (en) System data batch modification method and device, storage medium and electronic equipment
US20230297496A1 (en) System and method for serverless application testing
CN113126881B (en) System configuration method, device, equipment, readable storage medium and distributed storage system
CN116301916A (en) Service deployment method, device, electronic equipment and storage medium
CN109471792A (en) Test control method and device, electronic equipment, medium
CN113240088A (en) Training method of text intention recognition model
EP3379409B1 (en) Automated program code analysis and reporting
CN117492788A (en) Chip program upgrading method, device, electronic equipment and computer readable medium
US10268958B1 (en) Recommended launch configuration
EP4227796A1 (en) Service deployment processing method and apparatus, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary)

Applicant after: Shenzhen one ledger Intelligent Technology Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A

Applicant before: Shenzhen one ledger Intelligent Technology Co., Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination