CN109284115A - A kind of method and device generating tracker script - Google Patents

A kind of method and device generating tracker script Download PDF

Info

Publication number
CN109284115A
CN109284115A CN201710596851.0A CN201710596851A CN109284115A CN 109284115 A CN109284115 A CN 109284115A CN 201710596851 A CN201710596851 A CN 201710596851A CN 109284115 A CN109284115 A CN 109284115A
Authority
CN
China
Prior art keywords
script
tracker
value
configuration parameter
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710596851.0A
Other languages
Chinese (zh)
Inventor
王安迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710596851.0A priority Critical patent/CN109284115A/en
Publication of CN109284115A publication Critical patent/CN109284115A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

A kind of method and device generating tracker script provided in an embodiment of the present invention, preset a calling script, read configuration file, it include the value of configuration parameter in the configuration file, preset calling script is written into the value of the configuration parameter, which can be according to the value of configuration parameter, the script sentence of the function of the basic script of the calling executed needed for determining, to automatically obtain tracker script.It in the scheme of above-mentioned generation tracker script, is not necessarily to by technical staff's development deployment script, but required execution script sentence is automatically selected according to the value of configuration parameter by preset calling script, can reduce development cost, save the development time.

Description

A kind of method and device generating tracker script
Technical field
The present invention relates to Internet technical fields, more particularly to a kind of method and device for generating tracker script.
Background technique
Web analytics (web analytics) tool collects the access of user using tracker (tracker) in page end The system information data of behavioral data and equipment.Currently, existing tracker script includes basic script and deployment script, base Plinth script includes multiple functions called for deployment script, and each function is capable of providing a kind of function, such as: turn-on data is adopted Collect function, sets sample rate, detection flows etc..Deployment script is the script realized to function is called in basic script.
When generating tracker script every time, technical staff needs to develop the deployment of the tracker script according to actual needs Script, for realizing the calling to function in basic script.But technical staff needs to expend big when developing the deployment script The development cost and time cost of amount cause the development cost of tracker script high, and difficulty is big.
Summary of the invention
Present invention solves the technical problem that being to provide a kind of method and device for generating tracker script, so as to root Tracker script is automatically generated according to configuration file, without developing the deployment script in tracker script by technical staff, reduction is opened Cost is sent out, the development time is saved.
For this purpose, the technical solution that the present invention solves technical problem is:
A method of generating tracker script, which comprises
Configuration file is read, the configuration file includes the value of configuration parameter;
Preset calling script is written into the value of the configuration parameter, generates tracker script, the preset calling foot This is for calling the function of basic script according to the value of the configuration parameter.
Optionally, the generation tracker script includes:
According to the value of the configuration parameter, from the preset calling script, execution script sentence needed for exporting;
The script sentence for obtaining all outputs generates the tracker script.
Optionally, the reading configuration file includes:
The configuration file is read from MongoDB database.
Optionally, the method also includes:
Read the configuration file updated;
The tracker script is updated using the value of the configuration parameter in the configuration file of the update.
Optionally, the method also includes:
Read the script sentence of the tracker script;
The script sentence for executing the tracker script, call the function of basic script corresponding to the configuration parameter with Convenient for acquiring the data of page end.
In addition, present invention also provides a kind of device for generating tracker script, described device includes:
First reading unit obtains the value of configuration parameter in the configuration file for reading configuration file;
Tracker script generation unit, for the value of the configuration parameter to be written in preset calling script, generation is chased after Track device script, the preset function for calling script to be used to call basic script according to the value of the configuration parameter.
Optionally, the tracker script generation unit further include:
Output unit from the preset calling script, is executed for the value according to the configuration parameter needed for exporting Script sentence;
Acquiring unit, the script sentence for obtaining all outputs generate the tracker script.
Optionally, the first reading unit reading configuration file includes:
First reading unit reads the configuration file from MongoDB database.
Optionally, described device further include:
First reading unit reads the configuration file updated;
Tracker script generation unit updates the tracking according to the value of the configuration parameter in the configuration file of the update Device script.
Optionally, described device further include:
Second reading unit, for reading the script sentence of the tracker script;
Execution unit calls base corresponding to the configuration parameter for executing the script sentence of the tracker script The function of plinth script is in order to acquiring the data of page end.
In addition, present invention also provides a kind of devices for generating tracker script, which is characterized in that described device includes:
The device for generating tracker script includes processor and memory, first reading unit and the generation Unit etc. as program unit storage in memory, by processor execute above procedure unit stored in memory Lai Realize corresponding function.
In addition, program is stored thereon with, when described program is executed by processor present invention also provides a kind of storage medium Realize the method for generating tracker script.
According to the above-mentioned technical solution, the method have the advantages that:
A kind of method and device generating tracker script provided in an embodiment of the present invention, presets a calling script, reads Configuration file is taken, includes the value of configuration parameter in the configuration file, preset calling script is written into the value of the configuration parameter, it should Preset calling script, can be according to the value of configuration parameter, the script language of the function of the basic script of the calling executed needed for determining Sentence, to automatically obtain tracker script.In the scheme of above-mentioned generation tracker script, without by technical staff's development deployment foot This, but automatically selected required execution script sentence according to the value of configuration parameter by preset calling script, can reduce Development cost saves the development time.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of method schematic flow diagram for generating tracker script in the embodiment of the present application;
Fig. 2 is a kind of method schematic flow diagram for generating tracker script in the embodiment of the present application;
Fig. 3 is the schematic flow diagram of the application concrete application scene embodiment;
Fig. 4 is a kind of apparatus structure schematic diagram for generating tracker script in the embodiment of the present application.
Specific embodiment
Tracker script is automatically generated according to configuration file in order to provide, without being developed in tracker script by technical staff Deployment script implementation, the embodiment of the invention provides it is a kind of generate tracker script method, below in conjunction with explanation Book attached drawing is illustrated the embodiment of the present invention, it should be understood that preferred embodiment described herein is merely to illustrate reconciliation The present invention is released, is not intended to limit the present invention.And in the absence of conflict, in the embodiment and embodiment in the present invention Feature can be combined with each other.
In the prior art, technical staff needs to develop the deployment script of tracker script according to the needs of actual conditions, with Realize the calling to function in basic script.But during generating tracker script every time, deployment script is opened Hair, needs higher development cost and time cost.If also, deployment script mistake, the deployment script of the mistake are called Basic script function mistake, cause data acquire mistake;Or deployment script needs pair when being unsatisfactory for data acquisition demand The deployment script of tracker script is modified, and technical staff modifies post code required for needing to find from deployment script, still The size of code for being usually deployed script can be very huge, and technical staff is difficult from a large amount of code, fast and accurately finds needs The code of modification, it is larger so as to cause the difficulty for searching the code for needing to modify in tracker script.
In order to reduce the development cost of exploitation tracker script, save the development time, and reduce modification tracker foot This difficulty in technical solution provided by the present application, reads configuration file, to obtain the configuration parameter in configuration file Then preset calling script is written in the value of obtained configuration parameter by value, that is, produce tracker script.It executes generated When tracker script, according to the value of the configuration parameter, required execution script in the preset calling script to be executed is determined Sentence, the function of basic script can be called by executing the script sentence, realize the acquisition to webpage end data.If the tracking generated When device script data collected have mistake, technical staff is not necessarily to the code checked in preset calling script, only searches and matches The value for setting parameter realizes the modification to tracker script by modifying the value of configuration parameter.It can be seen that the application mentions The technical solution of confession is not necessarily to development deployment script when generating tracker script every time, can not only reduce exploitation tracker script Development cost, save the development time, the value of modification configuration parameter can also be passed through, realize modification to tracker script, drop The difficulty of low modification tracker script.
With reference to the accompanying drawing, technical solution provided by the present application is described in detail.
Fig. 1 is a kind of embodiment of the method flow chart for generating tracker script provided by the present application, comprising:
Step 101: reading configuration file, obtain the value of configuration parameter in configuration file.
When needing to generate the data of a tracker script acquisition page end, user according to actual needs, is preset Configuration file needed for the tracker script.Configuration file refers to the variable save file with standardization configuration data format, When what the inside was stored is corresponding program starting, the information configured to the program is needed, there is guidance to the execution of the program Effect.
In order to better understand the effect of configuration file, for example: there are multiple webpages on page end, utilizing tracking Device script can acquire visitor in the access behavioral data of the page end.But if only need to acquire visitor in the webpage When the access behavioral data of the part webpage at end, configuration file is utilized, so that it may the home page filter of acquisition data will not be needed, from And it can be realized the access behavioral data of visitor on the webpage for only acquiring unfiltered page end.
It include the value of each configuration parameter needed for generating the tracker script in configuration file.The value of configuration parameter, letter It is exactly the concrete embodiment form of the configuration information saved in configuration file for list.Or to acquire visitor in the visit of page end When asking behavioral data, for the part webpage at filtering web page end, if the webpage that page end includes have www.shop1.com, Www.shop2.com, www.shop3.com want to filter out webpage www.shop2.com now.At this point, in tracker script Configuration file in, find configuration parameter: filtering web page, be arranged the filtering web page value be www.shop2.com.Pass through setting The value of configuration parameter, so that it may realize the access that visitor is only acquired from webpage www.shop1.com and www.shop3.com Behavioral data.
Pre-set configuration file can be stored in the database, such as be stored in MongoDB database, MySQL number According to library etc..
It should be noted that MongoDB database is the database based on distributed document storage, deposited towards set Storage is easy the data of storage object type, high with easily read-write, easily deployment, expansible, support massive store and performance The advantages that.In addition, MongoDB database is JSON grammer, and the design of general configuration file be also using JSON grammer, Therefore, more intuitive using the MongoDB database purchase configuration file, conveniently.
Step 102: preset calling script is written into the value of the configuration parameter in configuration file, generates tracker script.
Script, which refers to, uses a kind of specific descriptive language, the executable file write according to certain format.Simply For, script is exactly a series of script sentence set of language-specifics, each script sentence characterizes one and executes order.It is transporting It travels far and wide this when, carries out the order in the script sentence set, reach expected program operational effect.For example, needing When monitoring the flow of page end, the script of operational monitoring flow executes the script sentence set of monitoring flow, can be achieved with supervising Survey the data traffic of page end.
It is preset to call script to refer to pre-set, the script of the function for calling basic script.Preset tune With the script sentence in script comprising calling function in basic script, usual preset calling script can be called in basic script All functions.When executing the script sentence in preset calling script, the respective function in basic script will be called, is realized Corresponding function.
Wherein, include the function for realizing turn-on data acquisition function in basic script, realize the function for opening script function, It realizes the function for opening thermodynamic chart function, realizes the function of filtration fraction page function, realize the function of setting User ID function, It realizes the function of setting sample rate function, realizes the function for monitoring local traffic engineering capability, realize that setting receives address URL function Function etc..
There are following two embodiments for the method for generation tracker script:
Under the first embodiment, according to the value of configuration parameter, from preset calling script, executed needed for determining Script sentence simultaneously exports, and the script sentence of all outputs is combined into new script sentence set, as tracker script.
Under second of embodiment, according to the value of configuration parameter, from preset calling script, executed needed for determining Script sentence, and shield and do not need execution script sentence, by the preset calling script Jing Guo above-mentioned processing, as tracker Script.
After generating tracker script, the script sentence in tracker script is read and executed, calls the letter in basic script Number, so that it may in the data that page end acquisition user needs.
By the above process as it can be seen that in technical solution provided by the present application, configuration parameter is obtained by reading configuration file The value of the configuration parameter is written in preset calling script value, generates tracker script.Technical staff is being tracked device foot When this exploitation, it is only necessary to determine the value of configuration parameter in configuration file, so that it may generate corresponding tracker script completion and open Hair reduces the development cost and time cost of exploitation tracker script;Moreover, modifying in the configuration to tracker script When, it is only necessary to it modifies to the value of configuration parameter in configuration file, generates corresponding tracker script, reduce modification tracking The difficulty of device script.
Present invention also provides another embodiments, and the tracker script updated is generated according to the configuration file of update, please be joined See Fig. 2, that steps are as follows is described for concrete implementation:
Step 201: reading the configuration file of update, obtain the value of configuration parameter in the configuration file of the update.
User utilizes tracker script, from the access behavioral data of page end acquisition visitor.The need of user's acquisition data It asks when changing, can according to actual needs, the configuration file of the more newly-generated tracker script modifies former configuration file The value of middle configuration parameter, thus, obtain the configuration file of update.Meet user's actual need so as to collect from page end Data.
For example, user collects visitor to the access number of the static images of product in page end using tracker script According to.User has launched product dynamic picture on page end, at this point, user needs to acquire on page end, visitor is to the product Dynamic picture access data.At this moment, user is updated the configuration file for generating the tracker script, searches the configuration The value of the data source is updated to dynamic from the storage address of static images by the configuration parameter in file --- data source The storage address of picture.To obtain updated configuration file.
In addition, if user in the collected data of analysis page end, it is found that collected partial data is error number According to.Correct data in order to obtain, user need to check the value of configuration parameter and configuration parameter, if configuration parameter and matched There is mistake in the value for setting parameter, it is also desirable to more new configuration file, to collect the correct data of page end.
What needs to be explained here is that when update first wife sets file generated new configuration file, it can be in former configuration file Increase configuration parameter, configuration parameter can also be reduced in former configuration file, configuration parameter in former configuration file can also be modified Value, be not limited in implementation described in examples detailed above.
Further, the configuration file of update can pre-save in the database, for example, be MongoDB database, MySQL database etc..
Step 202: preset calling script is written into the value of the configuration parameter of update.
Step 203: according to the value of configuration parameter, exporting required execution script sentence in preset calling script.
Step 204: obtaining all script sentences of output, generate the tracker script of update.
When acquiring the data of page end, do not need script sentence all in preset calling script being carried out one Time, but according to the value of the configuration parameter, determine the script sentence needed to be implemented in preset calling script, and do not need to hold Capable script sentence exports the script sentence needed to be implemented in the preset calling script, executes according to script sentence successive Sequence combines, and obtains the tracker script of update.
For example, it is " YES " that configuration parameter, which opens the value of monitoring flow, in original configuration file, user acquires in page end When data, monitoring traffic engineering capability, data traffic of the real-time monitoring from page end are opened.Therefore, it is necessary to export preset calling foot In this, there is monitoring traffic engineering capability pair in original tracker script in the script sentence of the corresponding function call of monitoring traffic engineering capability The script sentence for the function call answered.But if user does not need to monitor the data traffic from page end, therefore matching in update It sets in file, user is by configuration parameter --- the value for opening monitoring flow is set as " NO ".According in the configuration file of update The value of configuration parameter does not need the script sentence for executing function call corresponding with monitoring traffic engineering capability, so not needing should Script sentence output, therefore, there is no the script languages of the corresponding function call of monitoring traffic engineering capability in the tracker script of update Sentence.
Step 205: reading the script sentence of the tracker script of update and execution, call matching in the configuration file of update The function of basic script corresponding to parameter is set, to acquire the data of page end.
When user's actual need changes, more new configuration file executes more to generate the tracker script of update Script sentence in new tracker script calls the function of corresponding basic script, so that it may collect and meet in page end The data of user demand.
When collected error in data, more new configuration file executes update to generate the tracker script of update Script sentence in tracker script calls the function of corresponding basic script, so that it may collect in page end and meet user The correct data of demand.
In the present embodiment, the value of configuration parameter is obtained by reading the configuration file updated, the value of the configuration parameter is write Enter in preset calling script, generates tracker script.When the actual demand of user changes, pass through more new configuration file The value of middle configuration parameter generates the tracker script of update, to meet the data of user demand in page end acquisition;Or work as When user has found that mistake occurs for collected configuration data, by more new configuration file, the tracker script of update is generated, thus Correct data are obtained in page end.The above process is as it can be seen that when modifying to tracker script, it is only necessary to update configuration text The value of configuration parameter in part, so that it may generate the tracker script of update.And in the prior art, need to modify tracker script When, need to find the code for needing to modify from a large amount of codes of deployment script, search speed is slow, and difficulty is high.And it is of the invention The technical solution of offer does not need the code modified required for searching from a large amount of code, reduces exploitation tracker script Development cost and time cost, meanwhile, also reduce modification tracker script difficulty.
In the following, in conjunction with concrete application scene, providing Scene case referring to Fig. 3 and being carried out in detail to the technical solution of the application Description: user setting configuration file, utilize the tracker script of generation, acquisition visitor page end access behavior number According to.Include:
Step 301: user carries out the setting of the value of corresponding configuration parameter on configuration interface.
In order to improve the usage experience of user, it may provide the user with a configuration interface, presented on the configuration interface The option of configuration parameter needed for generating tracker script, user can according to the actual situation, to configuration on the configuration interface The value of parameter is configured.
Such as: there are configuration parameters whether to open thermodynamic chart on configuration interface.Can configuration ginseng be arranged as desired in user The value that number opens access thermodynamic chart is " YES ".
Accessing thermodynamic chart is to give website net for being intuitively presented webpage flow data distribution by different colours block Page optimization provides strong circumstantial evidence with adjustment, and partner site is facilitated to provide user experience.Thermodynamic chart can be shown can not Click on area occur thing, it is visitor can often being clicked but be not link local situation show, at this moment, user One resource link can be set in the high place of number of clicks or frequency according to the click condition of visitor.For example, if with According to the heating power graph discovery of accession page, visitor clicks time of some Static product picture of the dispensing of the user on the page at family The more or frequency of number is larger, it may be possible to which visitor has the wish for checking the big figure of the product picture, or understands the product more More information.At this moment a navigation link can be set by the product picture on the page, so that the product there are more chances Interviewee checks and even buys.
For another example: on configuration interface there are configuration parameter be filtration fraction webpage.Can the mistake be arranged as desired in user The value for filtering part webpage is specific web page address.
Filtration fraction webpage is the webpage sometimes more than one due to user, and the user for possessing multiple webpages comes Say, user is in the access behavioral data for the visitor for wanting to check on the webpage of part, it is necessary to other unwanted pages into Row filtering, it is only necessary to carry out data acquisition on the webpage of oneself concern.
Step 302: saving the configuration that user completes on configuration interface, and be deposited into MongoDB database.
Step 303: reading previously stored configuration file from MongoDB database, obtain the configuration in configuration file The value of parameter.
Step 304: preset calling script is written into the value of configuration parameter.
Step 305: according to the value of configuration parameter, execution script sentence needed for exporting preset calling script.
Step 306: obtaining all script sentences of output, generate tracker script.
Step 307: reading the script sentence of tracker script and execution, call basic script corresponding to the configuration parameter Function, to acquire the related data that user's webpage complains to the higher authorities about an injustice and request fair settlement the person's of asking behavior.
Wherein, step 303-307 is similar with the specific embodiment of embodiment one in the present embodiment, specific implementation ginseng The description of embodiment one is examined, which is not described herein again.
Further, the application scenarios example can with the following steps are included:
It is reconfigured on configuration interface, more new configuration file, and updates tracker script using the configuration file updated.
It is understood that needing to be configured on configuration interface again, more when user faces following two situation New configuration file, to update tracker script.
For the first case: when user has found the data that acquire from page end, cannot embody well certain problems or Person's phenomenon, it is necessary to reset the value of configuration parameter and configuration parameter, more new configuration file on configuration interface, and utilize The configuration file of update generates the tracker script updated, in order to collect the data for meeting user demand.
For second situation: when user analyzes from the collected data of page end, there is mistake in discovery data When, user also needs the value that configuration parameter and configuration parameter are reset on configuration interface, more new configuration file, and benefit The tracker script updated is generated with the configuration file of update, in order to collect the data for meeting user demand.
In the present embodiment, by carrying out the setting of corresponding configuration parameter on configuration interface, and save it in In MongoDB database, the value that the configuration file in MongoDB database obtains configuration parameter is read, by the configuration parameter Value is written in preset calling script, generates tracker script.The above process is as it can be seen that when user needs to carry out tracker script When modification, it is only necessary to the value of configuration parameter and configuration parameter be set in configuration interface, can be completed to configuration file more Newly, and then the tracker script updated is generated, while reducing the development cost and time cost of exploitation tracker script, Also reduce the difficulty of modification tracker script.
Fig. 4 is a kind of apparatus structure schematic diagram for generating tracker script provided by the present application, comprising:
First reading unit 401 obtains the value of configuration parameter in configuration file for reading configuration file;
Generation unit 402 generates tracker script for the value of configuration parameter to be written in preset calling script;
The preset function for calling script to be used to call basic script according to the value of configuration parameter.
In one example, generation unit further include:
Subelement is exported, for the value according to configuration parameter, exports required execution script language in preset calling script Sentence;
Subelement is obtained, the script sentence for obtaining all outputs generates tracker script.
In one example, the first reading unit is also used to read configuration file from MongoDB database.
In one example, the device further include:
Second reading unit, for reading the configuration file updated;
Updating unit, the value for the configuration parameter in the configuration file according to update update tracker script.
In one example, the device further include:
Third reading unit, for reading the script sentence in tracker script;
Execution unit, for executing the script sentence of tracker script, basic script corresponding to call configuration option Function is in order to acquiring the data of page end.
Device described in Fig. 4 is and device corresponding to method shown in FIG. 1 specific implementation and side shown in FIG. 1 Formula is similar, and with reference to the description in method shown in FIG. 1, which is not described herein again.
In addition, present invention also provides a kind of device for generating tracker script, the dress for generating tracker script It sets including processor and memory, above-mentioned first reading unit and generation unit etc. are stored in memory as program unit In, above procedure unit stored in memory is executed by processor to realize corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, tracker script automatically generated according to configuration file by adjusting kernel parameter, without being chased after by technical staff's exploitation Deployment script in track device script reduces development cost, saves the development time.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor The existing method for generating tracker script.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation The method of tracker script is generated described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor perform the steps of when executing program
Configuration file is read, the configuration file includes the value of configuration parameter;
Preset calling script is written into the value of the configuration parameter, generates tracker script, the preset calling foot This is for calling the function of basic script according to the value of the configuration parameter.
Optionally, the generation tracker script includes:
According to the value of the configuration parameter, from the preset calling script, execution script sentence needed for exporting;
The script sentence for obtaining all outputs generates the tracker script.
Optionally, the reading configuration file includes:
The configuration file is read from MongoDB database.
Optionally, the method also includes:
Read the configuration file updated;
The tracker script is updated using the value of the configuration parameter in the configuration file of the update.
Optionally, the method also includes:
Read the script sentence of the tracker script;
The script sentence for executing the tracker script, call the function of basic script corresponding to the configuration parameter with Convenient for acquiring the data of page end.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step:
Configuration file is read, the configuration file includes the value of configuration parameter;
Preset calling script is written into the value of the configuration parameter, generates tracker script, the preset calling foot This is for calling the function of basic script according to the value of the configuration parameter.
Optionally, the generation tracker script includes:
According to the value of the configuration parameter, from the preset calling script, execution script sentence needed for exporting;
The script sentence for obtaining all outputs generates the tracker script.
Optionally, the reading configuration file includes:
The configuration file is read from MongoDB database.
Optionally, the method also includes:
Read the configuration file updated;
The tracker script is updated using the value of the configuration parameter in the configuration file of the update.
Optionally, the method also includes:
Read the script sentence of the tracker script;
The script sentence for executing the tracker script, call the function of basic script corresponding to the configuration parameter with Convenient for acquiring the data of page end.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. a kind of method for generating tracker script, which is characterized in that the described method includes:
Configuration file is read, the configuration file includes the value of configuration parameter;
Preset calling script is written into the value of the configuration parameter, generates tracker script, the preset calling script is used In the function for calling basic script according to the value of the configuration parameter.
2. the method according to claim 1, wherein the generation tracker script includes:
According to the value of the configuration parameter, required execution script sentence in the preset calling script is exported;
The script sentence for obtaining all outputs generates the tracker script.
3. the method according to claim 1, wherein the reading configuration file includes:
The configuration file is read from MongoDB database.
4. the method according to claim 1, wherein the method also includes:
Read the configuration file updated;
The tracker script is updated using the value of the configuration parameter in the configuration file of the update.
5. method according to any of claims 1-4, which is characterized in that the method also includes:
Read the script sentence of the tracker script;
The script sentence for executing the tracker script, call the function of basic script corresponding to the configuration parameter in order to Acquire the data of page end.
6. a kind of device for generating tracker script, which is characterized in that described device includes:
First reading unit obtains the value of configuration parameter in the configuration file for reading configuration file;
Generation unit, for the value of the configuration parameter to be written in preset calling script, generation tracker script is described pre- If call script to be used to call the function of basic script according to the value of the configuration parameter.
7. device according to claim 6, which is characterized in that the generation unit includes:
Subelement is exported, for the value according to the configuration parameter, exports the preset foot for calling required execution in script This sentence;
Subelement is obtained, the script sentence for obtaining all outputs generates the tracker script.
8. according to device described in any one of claim 6 and 7, which is characterized in that described device further include:
Third reading unit, for reading the script sentence of the tracker script;
Execution unit calls basic foot corresponding to the configuration parameter for executing the script sentence of the tracker script This function is in order to acquiring the data of page end.
9. a kind of device for generating tracker script, which is characterized in that described device includes:
Processor and memory, first reading unit and the generation unit store in memory as program unit, Described program unit stored in memory is executed by processor to realize corresponding function.
10. a kind of storage medium, is stored thereon with program, the generation tracker foot is realized when described program is executed by processor This method.
CN201710596851.0A 2017-07-20 2017-07-20 A kind of method and device generating tracker script Pending CN109284115A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710596851.0A CN109284115A (en) 2017-07-20 2017-07-20 A kind of method and device generating tracker script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710596851.0A CN109284115A (en) 2017-07-20 2017-07-20 A kind of method and device generating tracker script

Publications (1)

Publication Number Publication Date
CN109284115A true CN109284115A (en) 2019-01-29

Family

ID=65184690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710596851.0A Pending CN109284115A (en) 2017-07-20 2017-07-20 A kind of method and device generating tracker script

Country Status (1)

Country Link
CN (1) CN109284115A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764746A (en) * 2019-10-21 2020-02-07 招商局金融科技有限公司 Script generation method and device and computer readable storage medium
CN110908976A (en) * 2019-10-29 2020-03-24 中国建设银行股份有限公司 Accumulation fund data acquisition method and system
CN112181405A (en) * 2020-09-29 2021-01-05 中国建设银行股份有限公司 Process generation method, device, equipment and readable storage medium
CN112506780A (en) * 2020-12-10 2021-03-16 零氪科技(北京)有限公司 Method, system, electronic device and storage medium for problem tracking
CN113051166A (en) * 2021-03-30 2021-06-29 上海商汤科技开发有限公司 System tracking method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635497A (en) * 2003-12-30 2005-07-06 英业达股份有限公司 Hardware-level based test script automatic generating system and method
CN106095497A (en) * 2016-06-07 2016-11-09 中国建设银行股份有限公司 The parametrization collocation method of a kind of executable file and the system of execution thereof
CN106339225A (en) * 2016-08-25 2017-01-18 浪潮电子信息产业股份有限公司 Method for automatically configuring multiple under linux
CN106649353A (en) * 2015-10-30 2017-05-10 北京国双科技有限公司 Webpage data collection method and apparatus
CN106815141A (en) * 2015-12-02 2017-06-09 北京奇虎科技有限公司 A kind of method for testing software and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635497A (en) * 2003-12-30 2005-07-06 英业达股份有限公司 Hardware-level based test script automatic generating system and method
CN106649353A (en) * 2015-10-30 2017-05-10 北京国双科技有限公司 Webpage data collection method and apparatus
CN106815141A (en) * 2015-12-02 2017-06-09 北京奇虎科技有限公司 A kind of method for testing software and device
CN106095497A (en) * 2016-06-07 2016-11-09 中国建设银行股份有限公司 The parametrization collocation method of a kind of executable file and the system of execution thereof
CN106339225A (en) * 2016-08-25 2017-01-18 浪潮电子信息产业股份有限公司 Method for automatically configuring multiple under linux

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764746A (en) * 2019-10-21 2020-02-07 招商局金融科技有限公司 Script generation method and device and computer readable storage medium
CN110764746B (en) * 2019-10-21 2023-03-31 招商局金融科技有限公司 Script generation method and device and computer readable storage medium
CN110908976A (en) * 2019-10-29 2020-03-24 中国建设银行股份有限公司 Accumulation fund data acquisition method and system
CN112181405A (en) * 2020-09-29 2021-01-05 中国建设银行股份有限公司 Process generation method, device, equipment and readable storage medium
CN112506780A (en) * 2020-12-10 2021-03-16 零氪科技(北京)有限公司 Method, system, electronic device and storage medium for problem tracking
CN113051166A (en) * 2021-03-30 2021-06-29 上海商汤科技开发有限公司 System tracking method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107957957B (en) Test case obtaining method and device
CN109284115A (en) A kind of method and device generating tracker script
CN107562467B (en) Page rendering method, device and equipment
US10678678B1 (en) Ordered test execution based on test coverage
CN107644286B (en) Workflow processing method and device
US20190196672A1 (en) Visual effects system for "big data" analysis workflow editors, distribution platforms, execution engines, and management systems comprising same
CN109960653A (en) Regression testing method, device, equipment and storage medium
CN110019835B (en) Resource arranging method and device and electronic equipment
CN112241506B (en) User behavior backtracking method, device, equipment and system
US20160313874A1 (en) Visual effects system for "big data" analysis workflow editors, distribution platforms, execution engines, and management systems comprising same
CN104423961B (en) A kind of method and system for generating test script
CN110020353B (en) Method and device for constructing webpage form
CN104572431B (en) A kind of method of testing and device
CN107330028A (en) Expansion application methods and system of a kind of Apache NiFi in terms of source data input database
US20180316587A1 (en) Automated analysis and recommendations for highly performant single page web applications
CN110119401A (en) Processing method, device, server and the storage medium of user's portrait
CN110020236B (en) Webpage parsing method, device, storage medium, processor and equipment
CN110941428A (en) Website creation method and device
CN114185874A (en) Big data based modeling method and device, development framework and equipment
CN110874322B (en) Test method and test server for application program
CN112564996A (en) Pressure test flow scheduling method, pressure test flow control device and computer readable medium
CN112346761B (en) Front-end resource online method, device, system and storage medium
CN115048083A (en) Visualization method and device for assembly, storage medium and electronic equipment
CN110704742B (en) Feature extraction method and device
CN111125565A (en) Method and equipment for inputting information in application

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100080 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190129