CN104461884A - Method and device for generating input data of test tools - Google Patents

Method and device for generating input data of test tools Download PDF

Info

Publication number
CN104461884A
CN104461884A CN201410740741.3A CN201410740741A CN104461884A CN 104461884 A CN104461884 A CN 104461884A CN 201410740741 A CN201410740741 A CN 201410740741A CN 104461884 A CN104461884 A CN 104461884A
Authority
CN
China
Prior art keywords
data
character
length
preset
numerical portion
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
CN201410740741.3A
Other languages
Chinese (zh)
Other versions
CN104461884B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410740741.3A priority Critical patent/CN104461884B/en
Publication of CN104461884A publication Critical patent/CN104461884A/en
Application granted granted Critical
Publication of CN104461884B publication Critical patent/CN104461884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Numerical Control (AREA)

Abstract

The invention discloses a method and device for generating input data of test tools. The method comprises the following steps: obtaining original data submitted by a user; recognizing a numeric part and a character part of the original data; converting the numeric part into preset system number; cutting the preset system number into a plurality of groups of data with preset lengths by using a preset algorithm, and adding an appointed character before each group of data to obtain the final conversion result of the numeric part; converting the character part into an ASCII code corresponding to a preset system; cutting the ASCII code corresponding to the preset system into a plurality of groups of data with preset lengths by using a preset algorithm, and adding an appointed character before each group of data to obtain the final conversion result of the character part; combining the final conversion result of the numeric part and the final conversion result of the character part to obtain the input data of the test tools. The technical scheme provided by the invention is time-saving and labor-saving, and has the effect of greatly improving the precision and the efficiency of the generation of the input data.

Description

A kind of method and apparatus generating the input data of testing tool
Technical field
The present invention relates to data processing and field of storage, be specifically related to a kind of method and apparatus generating the input data of testing tool.
Background technology
When using testing tool to test, a large amount of data to be tested are often needed to be input in testing tool, because the form of most of testing tool to input data all has particular requirement, raw data to be tested do not meet testing tool to input data requirement time, testing tool cannot perform test operation.In this case, need user according to the requirement of testing tool, manually raw data to be tested is transformed one by one, then the data after transforming manually are filled in in the input interface of testing tool.
The process of the input data of above-mentioned generation testing tool depends on the manual operation of user, cannot Mass production, not only waste time and energy, also inevitably produce the problems such as misoperation, the Accuracy and high efficiency of the testing tool generated cannot be ensured, cannot testing requirement be met.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of the overcoming method and apparatus that the problems referred to above or the kind that solves the problem at least in part generate the input data of testing tool.
According to one aspect of the present invention, provide a kind of method generating the input data of testing tool, the method comprises:
Obtain the raw data that user submits to;
Identify numerical portion and the character portion of described raw data;
Described numerical portion is converted into default system number; Use preset algorithm that the described numerical portion changing into default system number is cut into the multi-group data that every segment length is described preset length, add described designated character often organizing before data, obtain the final conversion results of numerical portion;
Described character portion is converted into the corresponding ASCII character presetting system; Use preset algorithm to change into the corresponding character portion presetting the ASCII character of system and cut into described the multi-group data that every segment length is described preset length, add described designated character often organizing before data, obtain the final conversion results of character portion;
The final conversion results of described numerical portion and the final conversion results of described character portion are combined according to the order of described raw data, obtains the input data of described testing tool.
Alternatively, described use preset algorithm comprises: use regular expression, or uses segmentation function.
Alternatively, the described numerical portion changing into default system number to cut into before every segment length is the multi-group data of described preset length in described use preset algorithm by the method, comprises further:
Obtain the preset data type that user submits to; Whether the length changing into the numerical portion of default system number described in judgement is less than the length of described preset data type; Then, described change into the numerical portion of default system number before mend 0, make its length reach the length of described preset data type;
The described numerical portion changing into default system number is cut into every segment length by described use preset algorithm, and to be the multi-group data of described preset length be: cut the numerical portion after benefit 0.
Alternatively, the method comprises further:
The input data of the described testing tool obtained are outputted in the input interface of described testing tool.
Alternatively, described testing tool is LOAD RUNNER;
Described default system is 16 systems;
The ASCII character that described correspondence presets system is 16 system ASCII character;
Described preset length is a byte;
Described designated character is " x ".
According to another aspect of the present invention, provide a kind of device generating the input data of testing tool, this device comprises:
Input block, is suitable for the raw data obtaining user's submission;
Recognition unit, is suitable for the numerical portion and the character portion that identify described raw data;
Numerical portion conversion unit, is suitable for described numerical portion to be converted into default system number; Use preset algorithm that the described numerical portion changing into default system number is cut into the multi-group data that every segment length is described preset length, add described designated character often organizing before data, obtain the final conversion results of numerical portion;
Character portion conversion unit, is suitable for described character portion being converted into the corresponding ASCII character presetting system; Use preset algorithm to change into the corresponding character portion presetting the ASCII character of system and cut into described the multi-group data that every segment length is described preset length, add described designated character often organizing before data, obtain the final conversion results of character portion;
Assembled unit, is suitable for the final conversion results of described numerical portion and the final conversion results of described character portion to combine according to the order of described raw data, obtains the input data of described testing tool.
Alternatively, described numerical portion conversion unit and character portion conversion unit are suitable for using regular expression or segmentation function to carry out the segmentation of data.
Alternatively, described input block, is further adapted for the preset data type obtaining user and submit to;
Described numerical portion conversion unit, whether the length being further adapted for the numerical portion changing into default system number described in judgement is less than the length of described preset data type; Then, described change into the numerical portion of default system number before mend 0, make its length reach the length of described preset data type; And be suitable for the numerical portion after to benefit 0 and cut.
Alternatively, this device comprises further:
Output unit, is suitable for the input data of the described testing tool obtained to output in the input interface of described testing tool.
Alternatively, described testing tool is LOAD RUNNER;
Described default system is 16 systems;
The ASCII character that described correspondence presets system is 16 system ASCII character;
Described preset length is a byte;
Described designated character is " x ".
From the above, technical scheme provided by the invention, by the conversion to the numerical portion of raw data and character portion, cutting and combination, completes process raw data batch being converted into the input data meeting testing tool requirement.For user, only raw data to be tested need be submitted to, without the need to manually carrying out data transformations one by one, not only time saving and energy saving, also avoid the error that manual operation easily produces, substantially increase precision and the efficiency of the input data generating testing tool.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows a kind of according to an embodiment of the invention process flow diagram generating the method for the input data of testing tool;
Fig. 2 shows a kind of according to an embodiment of the invention schematic diagram generating the device of the input data of testing tool;
Fig. 3 shows a kind of in accordance with another embodiment of the present invention schematic diagram generating the device of the input data of testing tool.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
The form of testing tool to input data all has particular requirement, testing tool is required that input data are for presetting system number, and the form requiring input data is the situation of adding designated character before the input data of every preset length, Fig. 1 shows a kind of according to an embodiment of the invention process flow diagram generating the method for the input data of testing tool, and the raw data for user being submitted to is converted into the input data meeting testing tool above-mentioned requirements.As shown in Figure 1, the method comprises:
Step S110, obtains the raw data that user submits to.
Step S120, identifies numerical portion and the character portion of raw data.
Step S130, is converted into default system number by numerical portion; Use preset algorithm that the numerical portion changing into default system number is cut into the multi-group data that every segment length is preset length, add designated character often organizing before data, obtain the final conversion results of numerical portion.
Step S140, is converted into the corresponding ASCII character presetting system by character portion; Using preset algorithm to cut into changing into the corresponding character portion presetting the ASCII character of system the multi-group data that every segment length is preset length, adding designated character often organizing before data, obtaining the final conversion results of character portion.
Step S150, combines the final conversion results of numerical portion and the final conversion results of character portion according to the order of raw data, obtains the input data of testing tool.
Visible, the method shown in Fig. 1, by the conversion to the numerical portion of raw data and character portion, cutting and combination, completes process raw data batch being converted into the input data meeting testing tool requirement.For user, only raw data to be tested need be submitted to, without the need to manually carrying out data transformations one by one, not only time saving and energy saving, also avoid the error that manual operation easily produces, substantially increase precision and the efficiency of the input data generating testing tool.
Such as, testing tool LOAD RUNNER is the load testing instrument of a kind of prognoses system behavior and performance, this testing tool LOAD RUNNER requires that the form of input data is " x00 ", namely require that input data are 16 system numbers, and require that the form of input data is before the input data of each byte length, add designated character " x ".This example will generate the input data meeting the requirement of this testing tool LOAD RUNNER by following process:
When the raw data getting user's submission is " userId=10000 ", identify that the numerical portion of raw data " userId=10000 " is: 10 system numbers " 10000 ", identify that the character portion of raw data is: " userId="; Transform numerical portion and character portion respectively, the result of each transformation stage is as shown in table 1:
Table 1
According to the requirement of testing tool LOAD RUNNER, 10 system numbers " 10000 " are converted into 16 system numbers " 2710 "; Use preset algorithm that this 16 system number " 2710 " is cut into the multi-group data that every segment length is a byte: { 27,10}, to add designated character " x " before data often organizing, obtain the final conversion results of numerical portion: x27, x10}.
According to the requirement of testing tool LOAD RUNNER, " userId=" is converted into the ASCII character " 7573657249643D " of corresponding 16 systems; Use preset algorithm that the ASCII character " 7573657249643D " of 16 systems is cut into the multi-group data that every segment length is a byte: { 75,73,65,72,49,64,3D}, to add designated character " x " before data often organizing, obtain the final conversion results of character portion: x 75, x 73, x 65, x 72, x 49, x 64, x 3D}.
By the final conversion results of numerical portion and the final conversion results of the character portion sequential combination according to raw data " userId=10000 ", obtain the input data of testing tool LOAD RUNNER: x 75, x 73, x 65, x 72, x 49, x 64, x 3D, x27, x10}.Wherein, the preset algorithm used when carrying out data cutting can be: regular expression, or, segmentation function.
In one embodiment of the invention, the method shown in Fig. 1 comprises further: the input data of the testing tool obtained outputted in the input interface of testing tool.In upper example, the input data of testing tool LOAD RUNNER by obtaining: x 75, x 73, x 65, x 72, x 49, x 64, x3D, x27, x10} output in the input interface of testing tool LOAD RUNNER, to support that testing tool is tested.
In one embodiment of the invention, user can submit preset data type to, require that the numerical portion of input data meets preset data type, in order to realize such demand, method shown in Fig. 1 uses preset algorithm by before the numerical portion changing into default system number is cut into the multi-group data that every segment length is preset length in step S130, comprises further: obtain the preset data type that user submits to; Whether the length judging to change into the numerical portion of default system number is less than the length of preset data type; Be then, before the numerical portion changing into default system number, mend 0, make its length reach the length of preset data type.On this basis, use preset algorithm by the numerical portion changing into default system number is cut into the multi-group data that every segment length is preset length is: cut the numerical portion after benefit 0.
Still to generate the process of the input data of testing tool LOAD RUNNER, above describe the requirement of testing tool LOAD RUNNER to input data, do not repeated them here.In this example, the raw data getting user's submission is " userId=10000 ", and the preset data type getting user's submission is int type, namely requires that the length of numerical portion is four bytes.
Identify that the numerical portion of raw data " userId=10000 " is: 10 system numbers " 10000 ", identify that the character portion of raw data is: " userId="; Transform numerical portion and character portion respectively, the result of each transformation stage is as shown in table 2:
Table 2
10 system numbers " 10000 " are converted into 16 system numbers " 2710 "; Length due to " 2710 " is two bytes, is supplemented as length is the int type data of four bytes: 16 system numbers " 00002710 "; Use preset algorithm that this 16 system number " 00002710 " is cut into the multi-group data that every segment length is a byte: { 00,00,27,10}, to add designated character " x " before data often organizing, obtain the final conversion results of numerical portion: x00, x00, x27, x10}.
The conversion process of character portion is identical with upper example, does not repeat them here, as shown in table 2, the final conversion results of character portion: x 75, x 73, x 65, x 72, x 49, x 64, x 3D}.
By the final conversion results of numerical portion and the final conversion results of the character portion sequential combination according to raw data " userId=10000 ", obtain the input data that numerical portion meets the testing tool LOAD RUNNER of preset data type: x 75, x 73, x 65, x 72, x 49, x 64, x 3D, x00, x00, x27, x10}.
Testing tool is required that input data are for presetting system number, and the form requiring input data is the situation of adding designated character before the input data of every preset length, Fig. 2 shows a kind of according to an embodiment of the invention schematic diagram generating the device of the input data of testing tool, and the raw data for user being submitted to is converted into the input data meeting testing tool above-mentioned requirements.As shown in Figure 2, the device 200 of the input data of this generation testing tool comprises:
Input block 210, is suitable for the raw data obtaining user's submission.
Recognition unit 220, is suitable for the numerical portion and the character portion that identify raw data.
Numerical portion conversion unit 230, is suitable for numerical portion being converted into default system number; Use preset algorithm that the numerical portion changing into default system number is cut into the multi-group data that every segment length is preset length, add designated character often organizing before data, obtain the final conversion results of numerical portion.
Character portion conversion unit 240, is suitable for character portion being converted into the corresponding ASCII character presetting system; Using preset algorithm to cut into changing into the corresponding character portion presetting the ASCII character of system the multi-group data that every segment length is preset length, adding designated character often organizing before data, obtaining the final conversion results of character portion.
Assembled unit 250, is suitable for the final conversion results of numerical portion and the final conversion results of character portion to combine according to the order of raw data, obtains the input data of testing tool.
Visible, the device shown in Fig. 2 is cooperatively interacted by each unit, to the conversion of the numerical portion of raw data and character portion, cutting and combination, completes process raw data batch being converted into the input data meeting testing tool requirement.For user, only raw data to be tested need be submitted to, without the need to manually carrying out data transformations one by one, not only time saving and energy saving, also avoid the error that manual operation easily produces, substantially increase precision and the efficiency of the input data generating testing tool.
Such as, testing tool LOAD RUNNER requires that the form of input data be " x00 ", and the device shown in Fig. 2 will perform and operate below, raw data will be converted into the input data of the requirement meeting this testing tool LOADRUNNER:
When the raw data that input block 210 gets user's submission is " userId=10000 ", recognition unit 220 discriminating digit part is: 10 system numbers " 10000 ", and character portion is: " userId="; Numerical portion conversion unit 230 and character portion conversion unit 240 transform numerical portion and character portion respectively, and the result of each transformation stage is as shown in table 1, does not repeat them here.Numerical portion conversion unit 230 obtains the final conversion results of numerical portion: x27, x10}; Character portion conversion unit 240 obtains the final conversion results of character portion: x 75, x 73, x 65, x 72, x 49, x 64, x3D}.Assembled unit 250 is by the final conversion results of numerical portion and the final conversion results of the character portion sequential combination according to raw data, obtain the input data of testing tool: x 75, x 73, x 65, x72, x 49, x 64, x 3D, x27, x10}.Wherein, the preset algorithm that numerical portion conversion unit 230 and character portion conversion unit 240 use when carrying out data cutting can be: regular expression, or, segmentation function.
In one embodiment of the invention, user can submit preset data type to, requires that the numerical portion of input data meets preset data type, in order to realize such demand, the input block 210 of Fig. 2 shown device, is further adapted for the preset data type obtaining user and submit to; Numerical portion conversion unit 230, is further adapted for and judges whether the length changing into the numerical portion of default system number is less than the length of preset data type; Be then, before the numerical portion changing into default system number, mend 0, make its length reach the length of preset data type; And be suitable for the numerical portion after to benefit 0 and cut.
The example that generation numerical portion above shown in table 2 meets the input data of the testing tool LOADRUNNER of preset data type is suitable for the present embodiment is described equally, the raw data that user submits to is " userId=10000 ", and the preset data type that user submits to is int type, and numerical portion conversion unit 230 and character portion conversion unit 240 transform numerical portion and character portion respectively.
Numerical portion conversion unit 230 carries out transforming, cut and add designated character after, obtain the final conversion results of numerical portion: x00, x00, x27, x10}.Character portion conversion unit 240 obtains the final conversion results of character portion: x 75, x 73, x 65, x 72, x 49, x 64, x 3D}.The two is pressed raw data sequential combination by assembled unit 250, obtain the input data that numerical portion meets the testing tool LOAD RUNNER of preset data type: x 75, x 73, x 65, x 72, x 49, x 64, x 3D, x00, x00, x27, x10}.
Fig. 3 shows a kind of in accordance with another embodiment of the present invention schematic diagram generating the device of the input data of testing tool.As shown in Figure 3, the device 300 of the input data of this generation testing tool comprises: input block 310, recognition unit 320, numerical portion conversion unit 330, character portion conversion unit 340, assembled unit 350 and output unit 360.
Wherein, input block 310, recognition unit 320, numerical portion conversion unit 330, character portion conversion unit 340, assembled unit 350 are corresponding identical with the input block 210 of Fig. 2 shown device, recognition unit 220, numerical portion conversion unit 230, character portion conversion unit 240, assembled unit 250 respectively, do not repeat them here.
Output unit 360, is suitable for the input data of the testing tool obtained to output in the input interface of testing tool.
In sum, technical scheme provided by the invention is by the conversion to the numerical portion of raw data and character portion, cutting and combination, complete process raw data batch being converted into the input data meeting testing tool requirement, and can arrange according to user, generate the input data meeting the testing tool of preset data type.For user, only raw data to be tested need be submitted to, without the need to manually carrying out data transformations one by one, dirigibility is high, not only time saving and energy saving, also avoid the error that manual operation easily produces, substantially increase precision and the efficiency of the input data generating testing tool.
It should be noted that:
Intrinsic not relevant to any certain computer, virtual bench or miscellaneous equipment with display at this algorithm provided.Various fexible unit also can with use based on together with this teaching.According to description above, the structure constructed required by this kind of device is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in a kind of device generating the input data of testing tool of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.

Claims (10)

1. generate a method for the input data of testing tool, it is characterized in that, the method comprises:
Obtain the raw data that user submits to;
Identify numerical portion and the character portion of described raw data;
Described numerical portion is converted into default system number; Use preset algorithm that the described numerical portion changing into default system number is cut into the multi-group data that every segment length is described preset length, add described designated character often organizing before data, obtain the final conversion results of numerical portion;
Described character portion is converted into the corresponding ASCII character presetting system; Use preset algorithm to change into the corresponding character portion presetting the ASCII character of system and cut into described the multi-group data that every segment length is described preset length, add described designated character often organizing before data, obtain the final conversion results of character portion;
The final conversion results of described numerical portion and the final conversion results of described character portion are combined according to the order of described raw data, obtains the input data of described testing tool.
2. the method for claim 1, wherein described use preset algorithm comprises: use regular expression, or uses segmentation function.
3. the method for claim 1, wherein the described numerical portion changing into default system number to cut into before every segment length is the multi-group data of described preset length in described use preset algorithm by the method, comprises further:
Obtain the preset data type that user submits to; Whether the length changing into the numerical portion of default system number described in judgement is less than the length of described preset data type; Then, described change into the numerical portion of default system number before mend 0, make its length reach the length of described preset data type;
The described numerical portion changing into default system number is cut into every segment length by described use preset algorithm, and to be the multi-group data of described preset length be: cut the numerical portion after benefit 0.
4. the method according to any one of claim 1-3, wherein, the method comprises further:
The input data of the described testing tool obtained are outputted in the input interface of described testing tool.
5. the method according to any one of claim 1-3, wherein,
Described testing tool is LOAD RUNNER;
Described default system is 16 systems;
The ASCII character that described correspondence presets system is 16 system ASCII character;
Described preset length is a byte;
Described designated character is " x ".
6. generate a device for the input data of testing tool, it is characterized in that, this device comprises:
Input block, is suitable for the raw data obtaining user's submission;
Recognition unit, is suitable for the numerical portion and the character portion that identify described raw data;
Numerical portion conversion unit, is suitable for described numerical portion to be converted into default system number; Use preset algorithm that the described numerical portion changing into default system number is cut into the multi-group data that every segment length is described preset length, add described designated character often organizing before data, obtain the final conversion results of numerical portion;
Character portion conversion unit, is suitable for described character portion being converted into the corresponding ASCII character presetting system; Use preset algorithm to change into the corresponding character portion presetting the ASCII character of system and cut into described the multi-group data that every segment length is described preset length, add described designated character often organizing before data, obtain the final conversion results of character portion;
Assembled unit, is suitable for the final conversion results of described numerical portion and the final conversion results of described character portion to combine according to the order of described raw data, obtains the input data of described testing tool.
7. device as claimed in claim 6, wherein,
Described numerical portion conversion unit and character portion conversion unit are suitable for using regular expression or segmentation function to carry out the segmentation of data.
8. device as claimed in claim 6, wherein,
Described input block, is further adapted for the preset data type obtaining user and submit to;
Described numerical portion conversion unit, whether the length being further adapted for the numerical portion changing into default system number described in judgement is less than the length of described preset data type; Then, described change into the numerical portion of default system number before mend 0, make its length reach the length of described preset data type; And be suitable for the numerical portion after to benefit 0 and cut.
9. the device according to any one of claim 6-8, wherein, this device comprises further:
Output unit, is suitable for the input data of the described testing tool obtained to output in the input interface of described testing tool.
10. the device according to any one of claim 6-8, wherein,
Described testing tool is LOAD RUNNER;
Described default system is 16 systems;
The ASCII character that described correspondence presets system is 16 system ASCII character;
Described preset length is a byte;
Described designated character is " x ".
CN201410740741.3A 2014-12-05 2014-12-05 A kind of method and apparatus for the input data for generating testing tool Active CN104461884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410740741.3A CN104461884B (en) 2014-12-05 2014-12-05 A kind of method and apparatus for the input data for generating testing tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410740741.3A CN104461884B (en) 2014-12-05 2014-12-05 A kind of method and apparatus for the input data for generating testing tool

Publications (2)

Publication Number Publication Date
CN104461884A true CN104461884A (en) 2015-03-25
CN104461884B CN104461884B (en) 2018-03-13

Family

ID=52907973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410740741.3A Active CN104461884B (en) 2014-12-05 2014-12-05 A kind of method and apparatus for the input data for generating testing tool

Country Status (1)

Country Link
CN (1) CN104461884B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522216A (en) * 2018-10-15 2019-03-26 杭州安恒信息技术股份有限公司 Team's interface exploitation cooperative system and method based on API testing tool export data

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988441A (en) * 2005-12-21 2007-06-27 中国银联股份有限公司 Data safety transmission method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988441A (en) * 2005-12-21 2007-06-27 中国银联股份有限公司 Data safety transmission method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FURTHER: "《http://www.cnblogs.com/qingxia/archive/2012/09/24/2699582.html》", 24 September 2012 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522216A (en) * 2018-10-15 2019-03-26 杭州安恒信息技术股份有限公司 Team's interface exploitation cooperative system and method based on API testing tool export data

Also Published As

Publication number Publication date
CN104461884B (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN111522528B (en) Multiplier, multiplication method, operation chip, electronic device, and storage medium
KR102535450B1 (en) Data storage method and apparatus, and computer device and storage medium thereof
CN112200300B (en) Convolutional neural network operation method and device
WO2020057593A1 (en) Convolution processing method, apparatus, and storage medium of convolutional neural network
CN105512007A (en) Method for controlling peripheral component interface express (PCIE) hard disk status lamp and system
CN110825323B (en) Storage and reading method of floating point number data and computer readable storage medium
CN110706147B (en) Image processing environment determination method, device, electronic equipment and storage medium
CN112506880A (en) Data processing method and related equipment
CN110502520A (en) A kind of method of data loading, system, equipment and computer readable storage medium
CN106528512A (en) EXCEL preliminary budget table automatic compiling method
CN105573843A (en) Data processing method and system
Das et al. A single stage single constraints linear fractional programming problem: An approach
CN111061743A (en) Data processing method and device and electronic equipment
CN104461884A (en) Method and device for generating input data of test tools
CN116301735B (en) Method, device and storage medium for organizing software elements into software data links
CN115035384B (en) Data processing method, device and chip
CN116089527A (en) Data verification method, storage medium and device
CN115827555A (en) Data processing method, computer device, storage medium and multiplier structure
CN110213377B (en) Method for generating webpack configuration on line
CN114385540A (en) Data unit conversion method and device
CN113487266A (en) Method, system, equipment and storage medium for automatically generating material codes and bill of materials of dynamic parameters
Rumengan et al. PyArmadillo: a streamlined linear algebra library for Python
CN110347968B (en) FPGA-based FFT optimization algorithm and device
Carey et al. Randomization algorithm for the micromechanical modeling of fiber-reinforced Polymer Matrix Composites
CN111090462A (en) API (application program interface) matching method and device based on API document

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220714

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right