CN109308251A - The method of calibration and device of test data - Google Patents

The method of calibration and device of test data Download PDF

Info

Publication number
CN109308251A
CN109308251A CN201710622510.6A CN201710622510A CN109308251A CN 109308251 A CN109308251 A CN 109308251A CN 201710622510 A CN201710622510 A CN 201710622510A CN 109308251 A CN109308251 A CN 109308251A
Authority
CN
China
Prior art keywords
default
template
line data
data
verification
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.)
Granted
Application number
CN201710622510.6A
Other languages
Chinese (zh)
Other versions
CN109308251B (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710622510.6A priority Critical patent/CN109308251B/en
Publication of CN109308251A publication Critical patent/CN109308251A/en
Application granted granted Critical
Publication of CN109308251B publication Critical patent/CN109308251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3692Test management for test results analysis

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of method of calibration of test data and device, it is related to Internet technical field, the problem of when main purpose is to solve to show whether result is correct in test client UI in the prior art, artificial eye is distinguished, cost of labor is big, low efficiency.Technical solution of the present invention includes: to receive verification solicited message, verifies the template identification Information ID in solicited message comprising template to be verified;It is sent according to template ID to default merchandising database and obtains merchandise display data corresponding with template to be verified;If default merchandising database has default base-line data, default base-line data is compared with the merchandise display data of acquisition;According to comparison result, determine whether verification succeeds.Present invention can apply to during server test template data.

Description

The method of calibration and device of test data
Technical field
The present invention relates to Internet technical fields, more particularly to the method for calibration and device of a kind of test data.
Background technique
Along with the fast development of Internet technology, the rise of mobile application is general trend of events institute under the spring tide of mobile Internet Become, the quick update of more and more quick Requirement Iteration bring mobile application.In order to meet the need that mobile application quickly updates It asks, what is risen therewith is cloud template configuration, and mobile application (client), which updates to be configured by corresponding Server template, to be completed, Mobilism template configuration can reduce the development cost of client, and more typical mobile application is shopping application program (Application, APP).
Currently, mobilism template configuration is edited in the editor module of server, issues template and issued, still, Editor module will not be verified with shopping APP in time after editing is completed, and release module can not also check this publication Result presentation.Therefore, in order to check updated template, after shopping APP updates, tester needs to start in mobile device Mounted shopping APP goes to check updated user interface (User Interface, UI).
During inventor states invention in realization, discovery in test client UI, needs artificial meat in the prior art Eye identify UI in show result it is whether correct, increase cost of labor, low efficiency, particularly, do shopping APP in the scope of business compared with Extensively, corresponding details page is also more, and the mode manually checked takes time and effort, and cost is larger.
Summary of the invention
In view of this, the method for calibration and device of a kind of test data provided by the invention, main purpose is to solve existing Have in technology that when showing whether result is correct in test client UI, artificial eye is distinguished, cost of labor is big, low efficiency asks Topic.
First aspect according to the present invention, the present invention provides a kind of methods of calibration of test data, comprising:
It receives and verifies solicited message, the template identification Information ID comprising template to be verified in the verification solicited message, one Kind template to be verified corresponds to class I goods display data;
It is sent according to the template ID to default merchandising database and obtains merchandise display corresponding with the template to be verified Data;
If there is default base-line data in the default merchandising database, by the commodity of default base-line data and acquisition Display data is compared;
According to comparison result, determine whether verification succeeds.
The second aspect according to the present invention, the present invention provides a kind of calibration equipments of test data, comprising:
Receiving unit includes the template of template to be verified for receiving verification solicited message, in the verification solicited message Identification information ID, a kind of template to be verified correspond to class I goods display data;
First transmission unit, the template ID for being received according to the receiving unit are sent out to default merchandising database Send acquisition merchandise display data corresponding with the template to be verified;
Comparing unit, for when there is default base-line data in the default merchandising database, by default base-line data with The merchandise display data obtained are compared;
Display unit, for determining the merchandise display number of the default base-line data and acquisition when the comparing unit When difference between is more than the default difference upper limit, difference section is highlighted;
First determination unit determines whether verification succeeds for the comparison result according to the comparing unit.
According to the present invention in terms of third, the present invention provides a kind of servers, comprising:
Transceiver is configured as receiving verification solicited message, includes the mould of template to be verified in the verification solicited message Panel sign Information ID, a kind of template to be verified correspond to class I goods display data;According to the template ID to default commodity data Library, which is sent, obtains merchandise display data corresponding with the template to be verified;
Processor is configured as when the default merchandising database has default base-line data, by default base-line data It is compared with the merchandise display data of acquisition;
According to comparison result, determine whether verification succeeds;
Memory is configured as storing the executable instruction of the processor;
Bus is configured as coupling the transceiver, the processor and the memory.
By above-mentioned technical proposal, the method for calibration and device of test data provided by the invention, server receive verification Solicited message includes the template identification Information ID of template to be verified in the verification solicited message, a kind of template to be verified corresponding one Class merchandise display data send to default merchandising database according to template ID and obtain merchandise display number corresponding with template to be verified According to;If default merchandising database has default base-line data, default base-line data and the merchandise display data of acquisition are carried out It compares;According to comparison result, determine whether verification succeeds;Compared with prior art, the embodiment of the present invention can be complete in server side At the verification of template to be verified, is participated in without artificial, substantially increase verification efficiency.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
The frame that Fig. 1 shows a kind of user interface (User Interface, the UI) test provided in the prior art shows It is intended to;
Fig. 2 shows a kind of flow charts of the method for calibration of test data provided in an embodiment of the present invention;
Fig. 3 shows a kind of configuration diagram of server provided in an embodiment of the present invention;
Fig. 4 shows the signal that a kind of template to be verified provided in an embodiment of the present invention corresponds to class I goods display data Figure;
Fig. 5 shows the signal that different commodity are applicable in same template to be verified provided in an embodiment of the present invention Figure;
Fig. 6 shows the flow chart of the method for calibration of another test data provided in an embodiment of the present invention;
Fig. 7 shows a kind of editor's schematic diagram for sending verification solicited message provided in an embodiment of the present invention;
Fig. 8 shows the schematic diagram that a kind of component provided in an embodiment of the present invention constitutes interface view;
Fig. 9 shows a kind of schematic diagram of verification report provided in an embodiment of the present invention;
Figure 10 shows a kind of composition block diagram of the calibration equipment of test data provided in an embodiment of the present invention;
Figure 11 shows the composition block diagram of the calibration equipment of another test data provided in an embodiment of the present invention;
Figure 12 shows a kind of Entity Architecture figure of server provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
It is surveyed as shown in Figure 1, Fig. 1 shows a kind of user interface (User Interface, UI) provided in the prior art The block schematic illustration of examination needs verifying template to be tested just under pre- hair ring border when needing to UI template test is executed True property, wherein the pre- hair ring border refers to that after UI edit model is good, the environment before formal publication, programming personnel exists The test of UI template can be carried out under pre- hair ring border, if test passes through, UI template is formally issued;If test does not pass through, after It is continuous that UI template is remodified, is adjusted, until UI template test passes through, and issue.Specific test process includes: when service Device carries out UI template after issuing in advance under pre- hair ring border, and tester tests UI template using client, based on visitor Search engine in the end of family is as server transmission test request, and server is after responding test request, by tester Go whether artificial judgment is successfully tested.Test process is complex, and requires manual intervention, and causes testing efficiency low.
To solve the above problems, the embodiment of the present invention provides a kind of method of calibration of test data, this method is applied to clothes Business device side, as shown in Figure 2, which comprises
101, server receives verification solicited message.
Method shown in the present invention be applied to server side, server side can complete independently test data verification, nothing The cooperation of client is needed, as shown in figure 3, Fig. 3 shows a kind of configuration diagram of server provided in an embodiment of the present invention, clothes Be engaged in device including but not limited to the following contents: edit model module is sent for editing template to be verified, and to MCIP module Verify solicited message;MCIP module, for completing the verifying work of template to be verified;Default merchandising database Ali LtemCenter module, is in the nature a data source, and data query in the management and line for convenience goods automates for UI Verification provides data source on newest line;UI automates module, for storing the automatic executable file for executing verification.
In the embodiment of the present invention, need to edit template to be verified in edit model module in advance, different is to be verified Template corresponds to a unique template flag information ID, and template to be verified is edited according to actual needs.In actual application In, template ID can be distributed automatically by edit model module, can also be manually allocated.Template to be verified is in a type of article The basic structure for being included, for example, the basic structures such as commodity picture displaying, seller address, moon sales volume, particularly with regard in commodity Hold, also seller is needed to be added.In the scene that test UI shows interface, after editting template to be verified, by programming personnel The editor of merchandise news is carried out, based on template to be verified so as to follow-up test use.
In general, a kind of template to be verified corresponds to class I goods display data, illustratively, as shown in figure 4, ID1 pairs of template What is answered is the display data for killing commodity class the second, and it is the display data of online shopping supermarket commodity class that template ID2 is corresponding.And it is same to It is applicable to different commodity in verification template to use, illustratively, as shown in figure 5, certain women's dress and certain household electrical appliances use template ID1 (second kills commodity class) carries out merchandise display, and the two belongs to the second and kills commodity class, and it is poor that the two can exist on respective presentation component It is different, such as: at express delivery component exhibiting, women's dress merchandise display is that " express delivery: 0.00 ", electrical household appliance is shown as " express delivery: freight free " Etc..Fig. 4 and Fig. 5 example that only present invention provides for ease of understanding can't treat calibration mode in actual application Plate, merchandise display interface are defined.
After edit model module edits template to be verified, the trigger trigger component into MCIP module is sent Solicited message is verified, trigger component is used to receive the verification solicited message of edit model module transmission, the verification solicited message In include template identification Information ID to be verified.It should be noted that template ID described in the embodiment of the present invention may include to whole The template ID that all components in a template to be verified are verified, or the template ID of single component, e.g., in Fig. 5 Component exhibiting this single component verified.
102, server is obtained according to the template ID to the transmission of default merchandising database corresponding with the template to be verified Merchandise display data.
Trigger component requests to believe after the verification solicited message for receiving the transmission of edit model module, to the verification Breath is parsed, and obtains the template ID of template to be verified, and shown template ID is transferred to file and updates updatefile component, Updatefile component with default merchandising database for interacting, to obtain the corresponding merchandise display number of newest template ID According to each merchandise display data correspond to a unique merchandise marks Information ID, there is record in updatefile component Mapping relations between itemlist, i.e. template ID and commodity ID.Server sends to default commodity library according to template ID and obtains Merchandise display data corresponding with template to be verified, it is intended that on the basis of being verified to merchandise display data, it is complete The verification of pairs of template.
In the itemlist recorded in updatefile component, record is newest data, it can be ensured that data are just True property, newest property, from the correctness of the merchandise display data for fundamentally ensuring to obtain of verification, if cannot ensure the commodity obtained The correctness of display data, newest property, will cause data check not in time, also, due to obtaining non-current data, lead to school There is dirty data during testing, influences verification progress.
If 103, the default merchandising database has default base-line data, server is by default base-line data and obtains The merchandise display data be compared.
The applicable scene of method shown in Fig. 1 is the presence of default base-line data, the default baseline in default merchandising database Data are the reference data whether verification template to be verified passes through test.
It, can be with it should be noted that default base-line data is the data that tester is configured before performing the testing When to execute this test, the base-line data of setting is also possible to before executing local test, pre-set baseline number According to the object of reference of the default base-line data as verification merchandise display data presets base-line data and set institute in template to be verified Have the relative position between the size, length and width, component of component, show content, temporary shape etc., it further include the big of single component Small, length and width, displaying content, temporary shape etc..Illustratively, continuing with Fig. 5 is participated in, although template to be verified is shown in Fig. 5, But in default base-line data be also the temporary shape, unlike size between default base-line data and template to be verified, There may be differences for length and width, displaying content etc..It is illustrated so that merchandise news describes component and express delivery component exhibiting as an example, it is false If facing " express delivery component exhibiting " under setting " merchandise news describes component " in default base-line data, and the right side faces that " sharing has reward group Part ", and it is 10*2 that merchandise news, which describes the length and width of component, is rectangular-shaped display;Face commodity in setting " express delivery component exhibiting " Information describes component, and the length of express delivery component exhibiting is 10*1, it is necessary to the content for including are as follows: express delivery, moon sales volume, seller Location is rectangular-shaped display.
After obtaining merchandise display data, the automatic executable file for executing verification stored in module is automated by UI Automated execution is driven to preset the comparison of base-line data and merchandise display data, the commodity pattern and data of the displaying of comparison Particular content, substantially compare the similarity between default base-line data and merchandise display data, comparing default baseline When similarity between data and merchandise display data, in strict accordance with the built-up sequence between component, each component is once compared Size, length and width, the relative position between component, show the contents such as content, temporary shape.
Both it should be noted that when executing the comparison of default base-line data and merchandise display data, can compare Exhibiting pictures can also compare the two display data in application program (Application, APP) respectively, it shall be noted that But when comparing the merchandise display data in APP, which needs to complete data load.In the embodiment of the present invention, institute Stating APP can be the APP installed in mobile device (such as smart phone), be also possible to installing in portable device (such as computer) APP.In subsequent embodiment, it can be illustrated so that merchandise display data are the display data in smart phone APP as an example, still It will be clear that this kind illustrates that mode is not intended to the concrete type for limiting merchandise display data.
As the optional way of the embodiment of the present invention, when executing the comparison of predetermined limit data and merchandise display data, Merchandise display data are also possible to the display data in generic web page.In the specific implementation process, in order to improve the speed of comparison, The embodiment of the present invention preferably compares the exhibiting pictures of default base-line data and merchandise display data.
If verification is entire template to be verified, the principle compared is the component built-up sequence according to template to be verified, It is compared one by one, until having compared all components;If what is verified is one or more component in template to be verified, Directly some component or certain multiple component are compared.
104, server determines whether verification succeeds according to comparison result.
The method of calibration of test data provided in an embodiment of the present invention, server receive verification solicited message, which asks Ask include in information template to be verified template identification Information ID, a kind of template to be verified corresponds to class I goods display data, root It is sent according to template ID to default merchandising database and obtains merchandise display data corresponding with template to be verified;If default commodity data Then default base-line data is compared with the merchandise display data of acquisition in default base-line data by inventory;According to comparison result, Determine whether verification succeeds;Compared with prior art, the embodiment of the present invention can complete the school of template to be verified in server side It tests, is participated in without artificial, substantially increase verification efficiency.
As the refinement and extension to method shown in Fig. 2, there are two kinds of situations for the comparison result of execution step 103, different Comparison result, represent two kinds of results of verification: verify successfully or verification failure.It is specific as follows:
The first: is if the difference between the default base-line data and the merchandise display data of acquisition is more than default poor The different upper limit, then server determines the template verification failure to be verified, and difference section is highlighted.
In embodiments of the present invention, the default difference upper limit is an empirical value, and the default difference upper limit is bigger, represents and permits Perhaps the range having differences between merchandise display data and default base-line data is bigger, and the default difference upper limit is smaller, and representing allows The range having differences between merchandise display data and default base-line data is smaller, for example, when the default difference upper limit is 0, table Show that data to be verified could pass through verifying only when merchandise display data are identical with default base-line data.Actually answering With in the process, the settable default difference upper limit is 0.05 or 0.02 etc., when the default difference upper limit is 0.05, shows quotient 0.05, i.e. merchandise display data and default base-line data cannot be more than by having differences between product display data and default base-line data Between similarity be not less than 0.95, when the default difference upper limit be 0.02 when, show merchandise display data and default base-line data Between have differences cannot be more than 0.02, i.e., the similarity between merchandise display data and default base-line data is not less than 0.98, Specifically, the embodiment of the present invention to the default difference upper limit without limitation.
When determining that the difference between default base-line data and merchandise display data is more than the default difference upper limit, by difference portion Divide and is highlighted, it is intended that can instruct to treat updating for verification template by highlighting, in order to Faster complete verifying work.As a kind of achievable mode of the embodiment of the present invention, difference section is being subjected to prominent show When showing, the mode that difference section is highlighted can be used, the mode for carrying out frame choosing to difference section can also be used, specifically, this Inventive embodiments are not construed as limiting highlighted mode.
In practical applications, UI automates module and has executed default base-line data with after merchandise display data, can will compare As a result transmission database (such as OSS server) is stored, so as to the comparison compare&report component under MCIP module Remove downloading comparison result.For the ease of the management to comparison result, UI automate module can by comparison result in a manner of picture, It is named according to the specific naming method of comparison result picture, for example, the women's dress that the second kills commodity class carries out first time verification Comparison result is named with miaosha- female -1, and the women's dress that the second kills commodity class carries out the comparison result of second of verification, is used Miaosha- female -2 such as is named at the modes, specifically, the embodiment of the present invention does not limit the naming method for comparing result figure piece It is fixed.
Compare&report component goes to download comparison result in database, and generates to execute according to comparison result and compare report It accuses, and report will be compared and be transmitted to notice notify component, execute comparison will pass through notify component to test terminal transmission Report can be sent when sending execution comparison report by modes such as mail, short messages.
Second: if the difference between the default base-line data and the merchandise display data of acquisition be less than it is described The default difference upper limit, then server determines that the template to be verified verifies successfully.
Whether template either to be verified verifies success, UI automation module can comparison result be uploaded to database, with Just compare&report component downloads comparison result, generates to execute to compare and report, and will execute comparison by notify component Report is sent on designated terminal.
After template to be verified verifies successfully, template can be issued, so that APP is (to be verified according to updated template Template) carry out merchandise display.The template can be to the fixed layout of component Configuration in some displaying interfaces, for example, component is shown greatly Small, which component shows immobilized substance etc., still, about the particular content that commodity are shown, commodity is also needed to sell the editor that returns home, example Such as, merchandise display pattern, content, whether exempt from postal etc..
Method shown in FIG. 1 is presented below suitable for presetting in the application scenarios that there is default base-line data commodity library One whether there is the application scenarios of default base-line data in uncertain default commodity library, execute method as shown in fig. 6, packet It includes:
201, server receives verification solicited message (with step 101).
202, server parses the verification solicited message, determines whether carry in the verification solicited message Setting instruction.
If carrying the setting instruction, 203 are thened follow the steps;If not carrying the setting instruction, then follow the steps 204。
It verifies in solicited message other than the template ID comprising template to be verified, also includes setting instruction, executes comparison Instruction (does not carry setting instruction in verification solicited message), wherein the setting instruction is used to indicate the mould to be verified The corresponding merchandise display data of plate are set as default base-line data, and the execution compares instruction and is used to indicate merchandise display directly Data are compared with the execution of default base-line data.
Server parses the corresponding message of verification solicited message, and setting can be carried in message content and instructs/holds Row compares instruction, and server can execute corresponding instruction according to parsing result.
It is said from user's operation level, after edit model module edits template to be verified, disappearing in edit model platform Breath is sent in platform, the template ID of input test, the verification solicited message for carrying template ID is sent to trigger component, such as Fig. 7, Fig. 7 show a kind of editor's schematic diagram for sending verification solicited message provided in an embodiment of the present invention, to be verified inputting It after the template ID of template, and chooses and whether baseline is set, if setting default for the corresponding merchandise display data of template to be verified Base-line data is then chosen in the choice box after " whether baseline being arranged ";If not by the corresponding merchandise display number of template to be verified According to default base-line data is set as, then any operation is not carried out to the choice box after " whether baseline being arranged ", as template ID and be After no setting baseline confirmation, testing button is clicked, can be realized to MCIP module and send verification solicited message, which asks It asks and carries setting instruction in information, the exemplary only citing of Fig. 7, the embodiment of the present invention inputs edit model platform backstage Display interface be not construed as limiting.
203, server is instructed in response to the setting, sets the corresponding merchandise display data of the template to be verified to Default base-line data.
Server is instructed according to setting, finds corresponding merchandise display data based on template ID, and be set to pre- If base-line data.It can be in the picture when merchandise display data are picture as a kind of implementation of the embodiment of the present invention It is embedded in the flag information of default base-line data;As another implementation of the embodiment of the present invention, when merchandise display data are When web data, the flag information of default base-line data can be embedded in webpage URL;Alternatively, forming one according to web data Picture is embedded in the flag information of default base-line data in the picture.The embodiment of the present invention is to the reality that default base-line data is arranged Existing mode is without limitation.
Optionally, can also be arranged in default merchandising database dedicated for storing the storage region of default base-line data, When receiving setting instruction, the corresponding merchandise display data of template to be verified are transferred to the memory block of default base-line data The setting of base-line data is completed in domain.
204, server obtains commodity sign Information ID, and according to the template ID and the commodity ID to the default quotient Product database sends the solicited message for obtaining default base-line data.
If not receiving the response message of the default merchandising database, 205 are thened follow the steps;If not receiving described pre- If the response message of merchandising database, thens follow the steps 203.
After receiving execution comparison instruction, server obtains corresponding commodity ID according to template ID, is obtained based on commodity ID Corresponding default base-line data is taken, detailed process is as follows:
Firstly, server obtains preset configuration file, record has the template ID and commodity in the preset configuration file Mapping relations between ID;It further include being described in detail about the representative meaning of template ID, representative meaning of commodity ID etc..It is exemplary , it is assumed that template ID " second kills -1-2 " is the women's dress fitted pants for the second killing commodity class, and template table " general merchandise -2-1 " is general merchandise class Kitchen frying pan, template ID " children's garment -1-3 " are young girl's toy of children's garment commodity class, and template ID " children's garment -2-1 " is children's garment commodity class Boy's jacket etc..As shown in table 1, table 1 is shown in the embodiment of the present invention, the template ID recorded in preset configuration file with Mapping relations between commodity ID, it should be noted that the exemplary only explanation of the naming method of table 1, the embodiment of the present invention Without limitation to the name of template ID and commodity ID in practical application.
Table 1
Secondly, server is based on the preset configuration file, commodity ID corresponding with the template ID is searched, server obtains After modulus plate ID, by the mapping relations in table 1 between the template ID recorded and commodity ID, the corresponding commodity of template ID are searched ID.Finally, server sends the solicited message for obtaining default base-line data, the solicited message to the default merchandising database In carry the template ID and commodity ID.
205, default base-line data is compared server with the merchandise display data of acquisition.
If the difference between the default base-line data and the merchandise display data of acquisition is more than the default difference upper limit, Then follow the steps 206;If the difference between the default base-line data and the merchandise display data of acquisition is less than described The default difference upper limit, thens follow the steps 211.
In embodiments of the present invention, either the corresponding merchandise display data of template still preset base-line data, there is one A data show interface, and in interface view, component is the minimum unit of layout rendering, and an interface view has multiple component structures At as shown in figure 8, Fig. 8 shows the schematic diagram that a kind of component provided in an embodiment of the present invention constitutes interface view, Fig. 8 is shown Interface in include 7 components, the content shown in each component is different, and the content shown such as component 1 is commodity picture, component The content of 6 displays is coupon information;The ways of presentation of each component is also likely to be present difference, such as: including 2 sons in component 3 Component, a sub-component are used for the description information of display of commodity, and a sub-component shares icon information for showing;In component 2 It further include a progress bar sub-component other than comprising commodity price, sales information.In actual application, one it is complete Displaying commodity, not only include 7 components, further include the component etc. in item detail page, specifically, the embodiment of the present invention The number of components for including in commodity display interface is not construed as limiting.
For ensure verify correctness, reliability, when executing Inspection, using comparison display interface in each group The mode of part, to improve verification accuracy.Specific comparison process includes: that server decomposes the default base-line data, Multiple first component exhibitings are obtained, and the merchandise display data are decomposed, multiple second component exhibitings are obtained, according to group First component exhibiting is successively compared with second component exhibiting respectively for the built-up sequence of part;Here, needing Bright, to template update, starting point be to meet the browsing of client, purchasing demand, or meet seller displaying commodity, The demand of commodity is sold, the template of different editions, difference may less, be related to the variation of component content or component is shown Variation of shape size etc..Because in order to enhance the accuracy of comparison, the embodiment of the present invention in the specific implementation, need from First (first) component of current interface view starts to be compared, and after the completion of comparison, sequence compares second, third group Part, until having compared all components.If may have comparison not in such a way that sequence compares and error occur, error Search the efficiency that can reduce comparison.
If it is determined that the difference between multiple first component exhibitings and multiple second component exhibitings is more than the default difference upper limit, then It determines and is had differences between the default base-line data and the merchandise display data of acquisition;It should be noted that at this Difference is all first component exhibitings compared with all component exhibitings, the summation having differences, and does not mean that single first Difference between component exhibiting and single second component exhibiting.
If it is determined that the difference between multiple first component exhibitings and multiple second component exhibitings is less than the default difference The upper limit, it is determined that difference is not present between the default base-line data and the merchandise display data of acquisition.
206, server determines the first sum and the second sum.
It is described first sum be second component exhibiting number, it is described second sum be multiple first component exhibitings with The number of components being had differences between multiple second component exhibitings.
It determines the number of the second component exhibiting (component exhibiting for constituting merchandise display data), and determines multiple first exhibitions The purpose for showing the number of components having differences between component and multiple second component exhibitings is, to the component tested in template into Row summarizes, and checks convenient for user, reaches the legibility of check results.
207, server generates comparison result summary according to first sum and second sum.
It is total comprising in this checking procedure, briefly explaining component count, the difference of verification in comparison result summary.
208, server is according to the template ID, commodity ID, default base-line data, merchandise display data, similarity and difference Heteromerism is according to generation comparison result detail;Wherein, the variance data is labeled by highlighted, and the similarity is the first displaying Similarity between component and the second component exhibiting.
Details when being compared comprising each first component exhibiting with each second component exhibiting in comparison result detail Information facilitates ordinary user to understand the difference of template publication front and back and influence point.
209, server generates survey report according to the comparison result summary and the comparison result detail.
As shown in figure 9, Fig. 9 shows a kind of schematic diagram of verification report provided in an embodiment of the present invention, Fig. 9 is to school Test the explanation in template comprising carrying out for 12 components, wherein in 12 components, there are 12 components to deposit with default base-line data In difference, such as " comparison result summary " part in figure.In " comparison result detail " part, can provide merchandise display data with The comparison result of default base-line data, in comparison result, using highlighted (dash area drawn in Fig. 9) in the difference of the two Appearance is marked, and is convenient for subsequent modification.
210, the verification is reported that carrying out output shows by server.
211, server determines that the template to be verified verifies successfully.
By the detailed description of step 201-211, it can show that the embodiment of the present invention is suitable for the test scene of any data In, test mode has certain versatility and correctness, i.e. the variation of business will not influence the accuracy of test data, can use In the test of commodity data, it can be used for the application scenarios such as the test of website data.Secondly, during the test, passing through execution group Comparison between part ensure that the robustness and reusability of test, i.e., the variation of the template under same application scenarios will not shadow Ring the accuracy of test data.Third summarizes test result in the form of verifying report, as a result readable, convenient common User understands the difference of template publication front and back;4th, when test before executing and issuing template, can mobilism to be verified Template carries out preview, easy to operate.
Optionally, before default base-line data is compared with the merchandise display data of acquisition, the method Further include: server obtains default verification environment, includes the default verification environment in the verification request letter;Obtain with it is described Default to verify the corresponding default base-line data of environment, different verification environment corresponds to different base-line datas.Wherein, described default Verifying environment includes but is not limited to the following contents, such as: pre- hair ring border, test environment, verification environment, publication pre-treatment ring Environment etc. is periodically returned after border, publication.
Further, as the realization to method shown in above-described embodiment, another embodiment of the present invention additionally provides one kind The calibration equipment of test data.The Installation practice is corresponding with preceding method embodiment, and to be easy to read, present apparatus embodiment is not The detail content in preceding method embodiment is repeated one by one again, it should be understood that the device in the present embodiment can be right It should realize the full content in preceding method embodiment.
The embodiment of the present invention provides a kind of calibration equipment of test data, as shown in Figure 10, comprising:
Receiving unit 41 includes the mould of template to be verified for receiving verification solicited message, in the verification solicited message Panel sign Information ID, a kind of template to be verified correspond to class I goods display data;
First transmission unit 42, the template ID for being received according to the receiving unit 41 is to default commodity data Library, which is sent, obtains merchandise display data corresponding with the template to be verified;
Comparing unit 43 is used for when the default merchandising database has default base-line data, by default base-line data It is compared with the merchandise display data of acquisition;
First determination unit 44 determines whether verification succeeds for the comparison result according to the comparing unit 43.
Further, as shown in figure 11, described device further include:
Display unit 45, for determining the commodity exhibition of the default base-line data and acquisition when the comparing unit 43 When difference of the registration between is more than the default difference upper limit, difference section is highlighted.
Further, as shown in figure 11, described device further include:
Second determination unit 46, for determining the quotient of the default base-line data and acquisition when the comparing unit 43 When difference between product display data is less than the default difference upper limit, determine that the template to be verified verifies successfully.
Further, as shown in figure 11, if there is no default base-line data, described devices in the default merchandising database Further include:
Resolution unit 47, for being parsed to the verification solicited message that the receiving unit 41 receives;
Third determination unit 48, for being carried out in resolving in the resolution unit 47 to the verification solicited message, It determines and whether carries setting instruction in the verification solicited message, the setting instruction is used to indicate the template to be verified Corresponding merchandise display data are set as default base-line data;
First setting unit 49, for being carried when the third determination unit 48 determines in the verification solicited message When stating setting instruction, in response to setting instruction, set default for the corresponding merchandise display data of the template to be verified Base-line data;
Processing unit 410, for not carried when the third determination unit 48 determines in the verification solicited message When stating setting instruction, commodity sign Information ID is obtained, and according to the template ID and the commodity ID to the default commodity number The solicited message for obtaining default base-line data is sent according to library;
Second setting unit 411, for when not receiving the response message of the default merchandising database, will it is described to The corresponding merchandise display data of verification template are set as default base-line data.
Further, as shown in figure 11, processing unit 410 includes:
Module 4101 is obtained, for obtaining preset configuration file, record has the template ID in the preset configuration file With the mapping relations between commodity ID;
Searching module 4102, the preset configuration file for being obtained based on the acquisition module 4101, lookup and institute State the corresponding commodity ID of template ID;
Sending module 4103, for sending the solicited message for obtaining default base-line data to the default merchandising database, The template ID is carried in the solicited message and the commodity ID that the searching module is found.
Further, as shown in figure 11, the comparing unit 43 includes:
Processing module 431 obtains multiple first component exhibitings, and right for decomposing to the default base-line data The merchandise display data are decomposed, and multiple second component exhibitings are obtained;
Comparison module 432, for the built-up sequence according to component respectively to first component exhibiting and second exhibition Show that component is successively compared;
First determining module 433, for determining multiple first component exhibitings and multiple second exhibitions when the comparison module 432 When showing that the difference between component is more than the default difference upper limit, the merchandise display number of the default base-line data and acquisition is determined It is had differences between;
Second determining module 434, for determining multiple first component exhibitings and multiple second exhibitions when the comparison module 432 When showing that the difference between component is less than the default difference upper limit, the commodity of the default base-line data and acquisition are determined Difference is not present between display data.
Further, as shown in figure 11, described device further include:
4th determination unit 412, for before the display unit 45 is highlighted difference section, determining One sum and the second sum, first sum are the number of second component exhibiting, and second sum is multiple the The number of components being had differences between one component exhibiting and multiple second component exhibitings;
First generation unit 413, first sum and described for being determined according to the third determination unit 412 Two sums generate comparison result summary;
Second generation unit 414, for according to the template ID, commodity ID, default base-line data, merchandise display data, Similarity and variance data generate comparison result detail;Wherein, the variance data is labeled by highlighted, the similarity For the similarity between the first component exhibiting and the second component exhibiting;
Third generation unit 415, the comparison result summary and institute for being generated according to first generation unit 414 The comparison result detail of the second generation unit generation is stated, survey report is generated;
The display unit 45 is also used to export the verification report that the third generation unit 415 generates Display.
Further, as shown in figure 11, described device further include:
Push unit 416, the verification report for generating the third generation unit 415 store, and will The verification report is sent to target push address.
Further, as shown in figure 11, the method also includes:
Unit 417 is named, the verification report for generating the third generation unit 415 saves as picture lattice Formula, and picture is named according to predetermined name format.
Further, as shown in figure 11, described device further include:
First acquisition unit 418, for default base-line data to be compared with the merchandise display data of acquisition Before, default verification environment is obtained, includes the default verification environment in the verification request letter;
Second acquisition unit 419, for obtaining the default verification environment pair obtained with the first acquisition unit 418 The default base-line data answered, different verification environment correspond to different base-line datas.
The method of calibration and device of test data provided in an embodiment of the present invention, server receive verification solicited message, should Verify include in solicited message template to be verified template identification Information ID, a kind of template to be verified correspond to class I goods displaying number According to being sent according to template ID to default merchandising database and obtain corresponding with template to be verified merchandise display data;If default quotient There is default base-line data in product database, then default base-line data is compared with the merchandise display data of acquisition;If default Difference between base-line data and the merchandise display data of acquisition is more than the default difference upper limit, then carries out difference section prominent aobvious Show;If the difference between default base-line data and the merchandise display data of acquisition is less than the default difference upper limit, it is determined that school Template is tested to verify successfully;Compared with prior art, the embodiment of the present invention can complete the verification of template to be verified in server side, Without manually participating in, verification efficiency is substantially increased.
Further, as the realization to method shown in above-described embodiment, another embodiment of the present invention additionally provides one kind Server.The Installation practice is corresponding with preceding method embodiment, and to be easy to read, present apparatus embodiment is no longer to preceding method Detail content in embodiment is repeated one by one, it should be understood that the device in the present embodiment, which can correspond to, realizes aforementioned side Full content in method embodiment.
The embodiment of the present invention also provides a kind of server, as shown in figure 12, comprising:
Transceiver 51 is configured as receiving verification solicited message, includes template to be verified in the verification solicited message Template identification Information ID, a kind of template to be verified correspond to class I goods display data;According to the template ID to default commodity number It is sent according to library and obtains merchandise display data corresponding with the template to be verified;
Processor 52 is configured as when the default merchandising database has default base-line data, by default baseline number It is compared according to the merchandise display data with acquisition;
According to comparison result, determine whether verification succeeds;
Memory 53 is configured as storing the executable instruction of the processor 52;
Bus 54 is configured as coupling the transceiver 51, the processor 52 and the memory 53.
Further, as shown in figure 12, the processor 52 is also configured to
When the difference between the default base-line data and the merchandise display data of acquisition is more than the default difference upper limit When, difference section is highlighted.
Further, as shown in figure 12, the processor 52 is also configured to
When the difference between the default base-line data and the merchandise display data of acquisition is less than the default difference When the different upper limit, determine that the template to be verified verifies successfully;
Further, as shown in figure 12, the processor 52 is also configured to
If being parsed there is no default base-line data to the verification solicited message in the default merchandising database, It determines and whether carries setting instruction in the verification solicited message, the setting instruction is used to indicate the template to be verified Corresponding merchandise display data are set as default base-line data;
If carrying setting instruction, in response to setting instruction, by the corresponding commodity of the template to be verified Display data is set as default base-line data;
If not carrying the setting instruction, commodity sign Information ID is obtained, and according to the template ID and the quotient Product ID sends the solicited message for obtaining default base-line data to the default merchandising database;
If not receiving the response message of the default merchandising database, by the corresponding commodity exhibition of the template to be verified Registration evidence is set as default base-line data.
Further, as shown in figure 12, the processor 52 is also configured to
Preset configuration file is obtained, record has the mapping between the template ID and commodity ID in the preset configuration file Relationship;
Based on the preset configuration file, commodity ID corresponding with the template ID is searched;
The solicited message for obtaining default base-line data is sent to the default merchandising database, is carried in the solicited message There is the template ID and commodity ID.
Further, as shown in figure 12, the processor 52 is also configured to
The default base-line data is decomposed, obtains multiple first component exhibitings, and to the merchandise display data It is decomposed, obtains multiple second component exhibitings;
First component exhibiting and second component exhibiting are successively compared respectively according to the built-up sequence of component It is right;
If it is determined that the difference between multiple first component exhibitings and multiple second component exhibitings is more than the default difference upper limit, then It determines and is had differences between the default base-line data and the merchandise display data of acquisition;
If it is determined that the difference between multiple first component exhibitings and multiple second component exhibitings is less than the default difference The upper limit, it is determined that difference is not present between the default base-line data and the merchandise display data of acquisition.
Further, as shown in figure 12, the processor 52 is also configured to
Before being highlighted difference section, determines the first sum and the second sum, first sum are The number of second component exhibiting, second sum are deposited between multiple first component exhibitings and multiple second component exhibitings In the number of components of difference;
Comparison result summary is generated according to first sum and second sum;
It is generated according to the template ID, commodity ID, default base-line data, merchandise display data, similarity and variance data Comparison result detail;Wherein, the variance data is labeled by highlighted, and the similarity is the first component exhibiting and second Similarity between component exhibiting;
According to the comparison result summary and the comparison result detail, survey report is generated;
It is described difference section highlight include:
Verification report is carried out output to show.
Further, as shown in figure 12, the processor 52 is also configured to
Verification report is stored;
Transceiver 51 is additionally configured to report the verification being sent to target push address.
Further, as shown in figure 12, the processor 52 is also configured to
Verification report is saved as into picture format, and picture is named according to predetermined name format.
Further, as shown in figure 12, the processor 52 is also configured to
Before default base-line data is compared with the merchandise display data of acquisition, default verification ring is obtained Border, the verification request to include the default verification environment in letter;
Default base-line data corresponding with the default verification environment is obtained, different verification environment corresponds to different baselines Data.
Server provided in an embodiment of the present invention, transceiver verify solicited message for receiving, in the verification solicited message Template identification Information ID comprising template to be verified, a kind of template to be verified correspond to class I goods display data, and processor is used for It is sent according to template ID to default merchandising database and obtains merchandise display data corresponding with template to be verified;If default commodity number According to inventory in default base-line data, then default base-line data is compared with the merchandise display data of acquisition;It is tied according to comparing Fruit, determines whether verification succeeds;Compared with prior art, the embodiment of the present invention can complete template to be verified in server side Verification participates in without artificial, substantially increases verification efficiency.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment " first ", " second " etc. be and not represent the superiority and inferiority of each embodiment for distinguishing each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize the method for calibration and dress of test data according to an embodiment of the present invention The some or all functions of some or all components in setting.The present invention is also implemented as described here for executing Method some or all device or device programs (for example, computer program and computer program product).This The program that the realization of sample is of the invention can store on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other Form provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (27)

1. a kind of method of calibration of test data characterized by comprising
Receive verification solicited message, include the template identification Information ID of template to be verified in the verification solicited message, it is a kind of to Verification template corresponds to class I goods display data;
It is sent according to the template ID to default merchandising database and obtains merchandise display data corresponding with the template to be verified;
If there is default base-line data in the default merchandising database, by the merchandise display of default base-line data and acquisition Data are compared;
According to comparison result, determine whether verification succeeds.
2. the method according to claim 1, wherein
If the difference between the default base-line data and the merchandise display data of acquisition is more than the default difference upper limit, will Difference section is highlighted.
3. the method according to claim 1, wherein
If the difference between the default base-line data and the merchandise display data of acquisition is less than in the default difference Limit, it is determined that the template to be verified verifies successfully.
4. method according to any one of claim 1-3, which is characterized in that if not deposited in the default merchandising database In default base-line data, the method also includes:
The verification solicited message is parsed, determines whether carry setting instruction in the verification solicited message, it is described Setting instruction, which is used to indicate, sets default base-line data for the corresponding merchandise display data of the template to be verified;
If carrying setting instruction, in response to setting instruction, by the corresponding merchandise display of the template to be verified Data are set as default base-line data;
If not carrying the setting instruction, commodity sign Information ID is obtained, and according to the template ID and the commodity ID The solicited message for obtaining default base-line data is sent to the default merchandising database;
If not receiving the response message of the default merchandising database, by the corresponding merchandise display number of the template to be verified According to being set as default base-line data.
5. according to the method described in claim 2, it is characterized in that, commodity sign Information ID is obtained, and according to the template ID Include to the solicited message that the default merchandising database sends the default base-line data of acquisition with the commodity ID:
Preset configuration file is obtained, record has the mapping between the template ID and commodity ID to close in the preset configuration file System;
Based on the preset configuration file, commodity ID corresponding with the template ID is searched;
The solicited message for obtaining default base-line data is sent to the default merchandising database, is carried in the solicited message State the template ID and commodity ID.
6. according to the method described in claim 5, it is characterized in that, by the merchandise display number of default base-line data and acquisition Include: according to being compared
The default base-line data is decomposed, obtains multiple first component exhibitings, and carry out to the merchandise display data It decomposes, obtains multiple second component exhibitings;
First component exhibiting is successively compared with second component exhibiting respectively according to the built-up sequence of component;
If it is determined that the difference between multiple first component exhibitings and multiple second component exhibitings is more than the default difference upper limit, it is determined that It is had differences between the default base-line data and the merchandise display data of acquisition;
If it is determined that the difference between multiple first component exhibitings and multiple second component exhibitings is less than the default difference upper limit, Then determine that there is no differences between the default base-line data and the merchandise display data of acquisition.
7. according to the method described in claim 6, it is characterized in that, before difference section is highlighted, the side Method further include:
Determine that the first sum and the second sum, first sum are the number of second component exhibiting, described second is total The number of components that number has differences between multiple first component exhibitings and multiple second component exhibitings;
Comparison result summary is generated according to first sum and second sum;
It generates and compares according to the template ID, commodity ID, default base-line data, merchandise display data, similarity and variance data As a result detail;Wherein, the variance data is labeled by highlighted, and the similarity is that the first component exhibiting and second show Similarity between component;
According to the comparison result summary and the comparison result detail, survey report is generated;
It is described difference section highlight include:
Verification report is carried out output to show.
8. the method according to the description of claim 7 is characterized in that the method also includes:
Verification report is stored, and verification report is sent to target push address.
9. the method according to the description of claim 7 is characterized in that the method also includes:
Verification report is saved as into picture format, and picture is named according to predetermined name format.
10. according to the method described in claim 9, it is characterized in that, by the commodity exhibition of default base-line data and acquisition Before registration evidence is compared, the method also includes:
Default verification environment is obtained, includes the default verification environment in the verification request letter;
Default base-line data corresponding with the default verification environment is obtained, different verification environment corresponds to different baseline numbers According to.
11. a kind of calibration equipment of test data characterized by comprising
Receiving unit includes the template identification of template to be verified for receiving verification solicited message, in the verification solicited message Information ID, a kind of template to be verified correspond to class I goods display data;
First transmission unit, the template ID for being received according to the receiving unit are obtained to the transmission of default merchandising database Take merchandise display data corresponding with the template to be verified;
Comparing unit, for by default base-line data and obtaining when the default merchandising database has default base-line data The merchandise display data be compared;
First determination unit determines whether verification succeeds for the comparison result according to the comparing unit.
12. device according to claim 11, which is characterized in that described device further include:
Display unit, for determining the merchandise display number of the default base-line data and acquisition when first determination unit When difference between is more than the default difference upper limit, difference section is highlighted.
13. device according to claim 11, which is characterized in that described device further include:
Second determination unit, for determining the commodity exhibition of the default base-line data and acquisition when first determination unit When difference of the registration between is less than the default difference upper limit, determine that the template to be verified verifies successfully.
14. device described in any one of 1-13 according to claim 1, which is characterized in that if in the default merchandising database There is no default base-line data, described devices further include:
Resolution unit, for being parsed to the verification solicited message that the receiving unit receives;
Second determination unit, for being carried out in resolving in the resolution unit to the verification solicited message, described in determination Whether setting instruction is carried in verification solicited message, and the setting, which instructs, to be used to indicate the corresponding quotient of the template to be verified Product display data is set as default base-line data;
First setting unit, for determining that carrying the setting in the verification solicited message refers to when second determination unit It when enabling, is instructed in response to the setting, sets default base-line data for the corresponding merchandise display data of the template to be verified;
Processing unit, for not carrying the setting instruction in the verification solicited message when second determination unit determines When, commodity sign Information ID is obtained, and obtain to the default merchandising database transmission according to the template ID and commodity ID Take the solicited message of default base-line data;
Second setting unit, for when not receiving the response message of the default merchandising database, by the mould to be verified The corresponding merchandise display data of plate are set as default base-line data.
15. device according to claim 14, which is characterized in that first processing units include:
Module is obtained, for obtaining preset configuration file, record has the template ID and commodity ID in the preset configuration file Between mapping relations;
Searching module, the preset configuration file for being obtained based on the acquisition module, is searched corresponding with the template ID Commodity ID;
Sending module, for sending the solicited message for obtaining default base-line data, the request to the default merchandising database The template ID is carried in information and the commodity ID that the searching module is found.
16. device according to claim 15, which is characterized in that the comparing unit includes:
Processing module obtains multiple first component exhibitings, and to the commodity for decomposing to the default base-line data Display data is decomposed, and multiple second component exhibitings are obtained;
Comparison module, for the built-up sequence according to component respectively to first component exhibiting and second component exhibiting according to It is secondary to be compared;
First determining module, for being determined between multiple first component exhibitings and multiple second component exhibitings when the comparison module Difference when being more than the default difference upper limit, determine and exist between the default base-line data and the merchandise display data of acquisition Difference;
Second determining module, for being determined between multiple first component exhibitings and multiple second component exhibitings when the comparison module Difference when being less than the default difference upper limit, determine the default base-line data and acquisition the merchandise display data it Between be not present difference.
17. device according to claim 16, which is characterized in that described device further include:
Third determination unit, for before the display unit is highlighted difference section, determine first sum with And second sum, it is described first sum be second component exhibiting number, it is described second sum be multiple first displaying groups The number of components being had differences between part and multiple second component exhibitings;
First generation unit, first sum for being determined according to the third determination unit are generated with second sum Comparison result summary;
Second generation unit, for according to the template ID, commodity ID, default base-line data, merchandise display data, similarity and Variance data generates comparison result detail;Wherein, the variance data is labeled by highlighted, and the similarity is the first exhibition Show the similarity between component and the second component exhibiting;
Third generation unit, the comparison result summary and described second for being generated according to first generation unit generate The comparison result detail that unit generates generates survey report;
The display unit is also used to the verification report that the third generation unit generates carrying out output to show.
18. a kind of server characterized by comprising
Transceiver is configured as receiving verification solicited message, includes the template mark of template to be verified in the verification solicited message Know Information ID, a kind of template to be verified corresponds to class I goods display data;It is sent out according to the template ID to default merchandising database Send acquisition merchandise display data corresponding with the template to be verified;
Processor is configured as when the default merchandising database has default base-line data, by default base-line data with obtain The merchandise display data taken are compared;
According to comparison result, determine whether verification succeeds;
Memory is configured as storing the executable instruction of the processor;
Bus is configured as coupling the transceiver, the processor and the memory.
19. server according to claim 18, which is characterized in that the processor is also configured to
It, will when the difference between the default base-line data and the merchandise display data of acquisition is more than the default difference upper limit Difference section is highlighted.
20. server according to claim 18, which is characterized in that the processor is also configured to
When the difference between the default base-line data and the merchandise display data of acquisition is less than in the default difference In limited time, determine that the template to be verified verifies successfully.
21. server described in any one of 8-21 according to claim 1, which is characterized in that the processor is also configured to
If being parsed there is no default base-line data to the verification solicited message in the default merchandising database, determine Whether setting instruction is carried in the verification solicited message, and the setting instruction is used to indicate the template to be verified is corresponding Merchandise display data be set as default base-line data;
If carrying setting instruction, in response to setting instruction, by the corresponding merchandise display of the template to be verified Data are set as default base-line data;
If not carrying the setting instruction, commodity sign Information ID is obtained, and according to the template ID and the commodity ID The solicited message for obtaining default base-line data is sent to the default merchandising database;
If not receiving the response message of the default merchandising database, by the corresponding merchandise display number of the template to be verified According to being set as default base-line data.
22. server according to claim 21, which is characterized in that the processor is also configured to
Preset configuration file is obtained, record has the mapping between the template ID and commodity ID to close in the preset configuration file System;
Based on the preset configuration file, commodity ID corresponding with the template ID is searched;
The solicited message for obtaining default base-line data is sent to the default merchandising database, is carried in the solicited message State the template ID and commodity ID.
23. server according to claim 22, which is characterized in that the processor is also configured to
The default base-line data is decomposed, obtains multiple first component exhibitings, and carry out to the merchandise display data It decomposes, obtains multiple second component exhibitings;
First component exhibiting is successively compared with second component exhibiting respectively according to the built-up sequence of component;
If it is determined that the difference between multiple first component exhibitings and multiple second component exhibitings is more than the default difference upper limit, it is determined that It is had differences between the default base-line data and the merchandise display data of acquisition;
If it is determined that the difference between multiple first component exhibitings and multiple second component exhibitings is less than the default difference upper limit, Then determine that there is no differences between the default base-line data and the merchandise display data of acquisition.
24. server according to claim 23, which is characterized in that the processor is also configured to
Before being highlighted difference section, the first sum and the second sum are determined, first sum is described The number of second component exhibiting, it is poor that second sum exists between multiple first component exhibitings and multiple second component exhibitings Different number of components;
Comparison result summary is generated according to first sum and second sum;
It generates and compares according to the template ID, commodity ID, default base-line data, merchandise display data, similarity and variance data As a result detail;Wherein, the variance data is labeled by highlighted, and the similarity is that the first component exhibiting and second show Similarity between component;
According to the comparison result summary and the comparison result detail, survey report is generated;
It is described difference section highlight include:
Verification report is carried out output to show.
25. server according to claim 24, which is characterized in that the processor is also configured to
Verification report is stored;
Transceiver is additionally configured to report the verification being sent to target push address.
26. server according to claim 24, which is characterized in that the processor is also configured to
Verification report is saved as into picture format, and picture is named according to predetermined name format.
27. server according to claim 26, which is characterized in that the processor is also configured to
Before default base-line data is compared with the merchandise display data of acquisition, default verification environment, institute are obtained It states in verification request letter comprising the default verification environment;
Default base-line data corresponding with the default verification environment is obtained, different verification environment corresponds to different baseline numbers According to.
CN201710622510.6A 2017-07-27 2017-07-27 Test data verification method and device Active CN109308251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710622510.6A CN109308251B (en) 2017-07-27 2017-07-27 Test data verification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710622510.6A CN109308251B (en) 2017-07-27 2017-07-27 Test data verification method and device

Publications (2)

Publication Number Publication Date
CN109308251A true CN109308251A (en) 2019-02-05
CN109308251B CN109308251B (en) 2022-03-25

Family

ID=65202335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710622510.6A Active CN109308251B (en) 2017-07-27 2017-07-27 Test data verification method and device

Country Status (1)

Country Link
CN (1) CN109308251B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188159A (en) * 2019-05-27 2019-08-30 深圳前海微众银行股份有限公司 Collage-credit data cut-in method, device, equipment and computer readable storage medium
CN110764998A (en) * 2019-09-06 2020-02-07 平安健康保险股份有限公司 Data comparison method, device and equipment based on Django framework and storage medium
CN111813686A (en) * 2020-07-20 2020-10-23 腾讯科技(深圳)有限公司 Game testing method and device, testing terminal and storage medium
CN113742021A (en) * 2021-09-06 2021-12-03 北京字节跳动网络技术有限公司 Data verification method and device, electronic equipment and storage medium
CN113987016A (en) * 2021-10-25 2022-01-28 浙江太美医疗科技股份有限公司 Clinical delivery data comparison method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012104488A1 (en) * 2011-02-02 2012-08-09 Teknologian Tutkimuskeskus Vtt Arrangement and method for model-based testing
CN103593429A (en) * 2013-11-07 2014-02-19 北京奇虎科技有限公司 Commodity template failure detection method and device
US9218267B1 (en) * 2013-08-14 2015-12-22 Amazon Technologies, Inc. Page rendering feedback
US20160124827A1 (en) * 2014-10-30 2016-05-05 The Mathworks, Inc. System and method for performing model verification
GB201613873D0 (en) * 2015-08-14 2016-09-28 Wal Mart Stores Inc Systems, devices and methods for monitoring modular compliance in a shopping space
CN106708723A (en) * 2015-11-13 2017-05-24 阿里巴巴集团控股有限公司 Testing and verifying methods and apparatuses
CN106874173A (en) * 2015-12-10 2017-06-20 阿里巴巴集团控股有限公司 The method of testing and device of Page Template

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012104488A1 (en) * 2011-02-02 2012-08-09 Teknologian Tutkimuskeskus Vtt Arrangement and method for model-based testing
US9218267B1 (en) * 2013-08-14 2015-12-22 Amazon Technologies, Inc. Page rendering feedback
CN103593429A (en) * 2013-11-07 2014-02-19 北京奇虎科技有限公司 Commodity template failure detection method and device
US20160124827A1 (en) * 2014-10-30 2016-05-05 The Mathworks, Inc. System and method for performing model verification
GB201613873D0 (en) * 2015-08-14 2016-09-28 Wal Mart Stores Inc Systems, devices and methods for monitoring modular compliance in a shopping space
CN106708723A (en) * 2015-11-13 2017-05-24 阿里巴巴集团控股有限公司 Testing and verifying methods and apparatuses
CN106874173A (en) * 2015-12-10 2017-06-20 阿里巴巴集团控股有限公司 The method of testing and device of Page Template

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李萍 等: "基于快速构建模板的购物信息抽取方法", 《计算机应用》 *
祝锡永: "基于应用模板仓库的电子商务***开发平台的设计与实现", 《计算机应用》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188159A (en) * 2019-05-27 2019-08-30 深圳前海微众银行股份有限公司 Collage-credit data cut-in method, device, equipment and computer readable storage medium
CN110188159B (en) * 2019-05-27 2023-05-12 深圳前海微众银行股份有限公司 Credit data access method, device, equipment and computer readable storage medium
CN110764998A (en) * 2019-09-06 2020-02-07 平安健康保险股份有限公司 Data comparison method, device and equipment based on Django framework and storage medium
CN110764998B (en) * 2019-09-06 2024-04-02 平安健康保险股份有限公司 Data comparison method, device, equipment and storage medium based on Django framework
CN111813686A (en) * 2020-07-20 2020-10-23 腾讯科技(深圳)有限公司 Game testing method and device, testing terminal and storage medium
CN113742021A (en) * 2021-09-06 2021-12-03 北京字节跳动网络技术有限公司 Data verification method and device, electronic equipment and storage medium
CN113742021B (en) * 2021-09-06 2023-01-17 北京字节跳动网络技术有限公司 Data verification method and device, electronic equipment and storage medium
CN113987016A (en) * 2021-10-25 2022-01-28 浙江太美医疗科技股份有限公司 Clinical delivery data comparison method and device, computer equipment and storage medium
CN113987016B (en) * 2021-10-25 2023-08-15 上海太美数字科技有限公司 Clinical delivery data comparison method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109308251B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN109308251A (en) The method of calibration and device of test data
US10255081B2 (en) Method and system for intelligent cloud planning and decommissioning
CN105303423A (en) Patent information interaction method, patent information interaction device and terminal
CN107896244A (en) A kind of distribution method of version file, client and server
CN109840192B (en) Method and device for automatic testing
CN110708214B (en) Service data display method, device, equipment and computer readable storage medium
CN105117205B (en) A kind of page authoring method and device
CN109213681A (en) Test macro, method, equipment and readable storage medium storing program for executing
CN110990126A (en) Method and device for realizing shortcut front-end service page based on js
CN109062799A (en) Regression testing method, the apparatus and system of advertising scenarios
CN110515631A (en) Using the generation method of installation data packet, server and computer storage medium
CN113535567B (en) Software testing method, device, equipment and medium
CN110135938A (en) The processing method and processing device of the acknowledgement of orders page
CN104468549B (en) Client operation request responding method, device and server
CN110879779B (en) Joint debugging test method and system
CN113760736A (en) Test method, device and system
CN110020184A (en) Information recommendation method, device, electronic equipment and server
CN111222067B (en) Information generation method and device
CN108389104B (en) Simulation verification method and device for network activities
CN110298581A (en) Determine the method and device of risk indicator value
CN105335470B (en) User login information shows method and apparatus
CN109491705A (en) A kind of delivery method and device
CN109446084A (en) User method and device are invited in TESTFLIGHT test outside a kind of end IOS
CN112036973A (en) Information pushing method and device, electronic equipment and computer readable medium
Kroiß From backend to frontend: Case study on adopting Mmcro frontends from a single page ERP application monolith

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
GR01 Patent grant
GR01 Patent grant