WO2019090825A1 - Automatic comparison method, apparatus and device for fund system testing values and storage medium - Google Patents

Automatic comparison method, apparatus and device for fund system testing values and storage medium Download PDF

Info

Publication number
WO2019090825A1
WO2019090825A1 PCT/CN2017/112271 CN2017112271W WO2019090825A1 WO 2019090825 A1 WO2019090825 A1 WO 2019090825A1 CN 2017112271 W CN2017112271 W CN 2017112271W WO 2019090825 A1 WO2019090825 A1 WO 2019090825A1
Authority
WO
WIPO (PCT)
Prior art keywords
field
comparison
message
response
expected value
Prior art date
Application number
PCT/CN2017/112271
Other languages
French (fr)
Chinese (zh)
Inventor
伍朗
伍振亮
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019090825A1 publication Critical patent/WO2019090825A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis

Definitions

  • the present application relates to the field of automated testing technology of a fund system, and in particular, to an automatic comparison method, device, device and storage medium for a fund system test value.
  • the automated test results of the fund system include test results of a number of different test cases.
  • the existing fund system test report opening method needs to rely on other tools to open, and only records the test results of the request message, and cannot directly reflect the user's needs.
  • the test results require the user to find the test results in the test report one by one, which increases the cumbersome steps and reduces the user experience.
  • the purpose of the application is to provide an automatic comparison method, device, device and storage medium for the test value of the fund system, which can intuitively display the comparison test result different from the preset expected value set by the user.
  • the application is implemented in this way.
  • the first aspect of the present application provides an automatic comparison method of the fund system test value, and the automatic comparison method of the fund system test value includes:
  • the second aspect of the present application provides an automatic comparison device for a fund system test value, where the automatic comparison device of the fund system test value includes:
  • a data obtaining module configured to return response information according to the HTTP request, and obtain original data of a preset expected value
  • a data processing module configured to process, by using the response information returned by the HTTP request, a response field and a response field message
  • a field comparison module configured to filter the response field according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message, and compare the comparison field message with a field message of a preset expected value
  • the field display module identifies a comparison field message that is different from the field message of the preset expected value.
  • a third aspect of the present application provides a terminal device including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable instructions Implement the following steps:
  • a fourth aspect of the present application provides a computer readable storage medium storing computer readable instructions that, when executed by a processor, implement the following steps:
  • the present application provides an automatic comparison method, device, device and storage medium for a fund system test value, and formats a response message of an HTTP request by formatting, sorting the formatted field, and filtering out the comparison field in the sort field.
  • the configuration of the comparison field is configured through the configuration file, the field corresponding to the preset expected value is paired, and the comparison result is marked in a highlighted manner or with a specific identifier, thereby realizing an intuitive display comparison test result, and the user's test is performed.
  • the operation is more convenient.
  • FIG. 1 is a flow chart of a method for comparing automated test values based on a fund system according to an embodiment of the present application
  • step S30 is a specific flowchart provided by an implementation manner of step S30 in a method for comparing automated test values of a fund system according to an embodiment of the present application;
  • FIG. 3 is a schematic structural diagram of a comparison device based on a fund system automatic test value according to another embodiment of the present application.
  • FIG. 4 is a schematic diagram of a specific structure provided by an implementation manner of a comparison module in a comparison device for a fund system automatic test value according to another embodiment of the present application;
  • FIG. 5 is a schematic structural diagram of a terminal device according to another embodiment of the present application.
  • the embodiment of the present application provides an automatic comparison method for the fund system test value.
  • the automatic comparison method of the fund system test value includes steps S10, S20, S30, and S40, and the specific content of each step is as follows:
  • Step S10 Returning the response information according to the HTTP request, and simultaneously acquiring the original data of the preset expected value, the original data including the field and the field message.
  • step S10 after the test is completed, the HTTP request message is obtained, and the CURL can be executed on the command to receive the actual response message.
  • the response message includes the original data with the test result, and the original data includes the field code to be compared and Test Results.
  • the original data of the preset expectation value is a field and a field message which are set by the user in the fund system according to the requirement, and the code written by the user can obtain the original data of the preset expected value in the DATA domain, and the expected value can be modified.
  • the message of the external terminal device can be used as the preset expectation value, and the preset expected value has various forms, and is classified and stored in the fund system database folder according to the attribute, name, and comparison field of the preset expected value, and the comparison field includes The amount, date, and account of the purchase or redemption.
  • Step S20 Perform format processing on the response information returned by the HTTP request to obtain a response field and a response field message.
  • the response information returned by the HTTP request is JSON format data
  • the JSON format data is displayed in a continuous string form, and each row of data may include multiple fields and messages corresponding to each field. It is inconvenient for front-end developers to read and filter. For easy reading, the JSON format data is processed by the corresponding tools, so that each row of data is A field and a message corresponding to the field.
  • Step S30 Filtering the fields in the response message according to the fields in the original data of the preset expected value to obtain the comparison field and the comparison field message.
  • the re-sorted field in the response message includes a plurality of fields, and each field is a single row, which includes multiple rows of fields.
  • each field is a single row, which includes multiple rows of fields.
  • multiple rows of fields need to be filtered for comparison.
  • the field is filtered according to the field set in the preset expectation value, and the comparison field between the response field and the expected value field is filtered by the field in the original data of the preset expected value, wherein the response field is filtered out from the response message. Filter out or filter out the remaining fields of other fields as comparison fields.
  • the response message includes A, B, and C three-line fields, and the field to be filtered is A.
  • the user sets A to filter out as a comparison field or B and C to filter out, and the remaining A as a comparison field. .
  • Step S40 Comparing the comparison field message with the field message of the preset expectation value, and identifying a comparison field message different from the field message of the preset expected value.
  • step S40 after the field in the response message is filtered to obtain a comparison field, the comparison field is compared with the field of the original data in the preset expected value.
  • the comparison field message and the preset may be performed by DIFF or SDIFF.
  • the field message of the expected value is compared, all fields and field messages are displayed, and the field and field messages include comparison fields and field messages, fields of preset expected values, and field messages, and the fields and field messages are sorted and displayed in the order of comparison.
  • the present application does not specifically limit the comparison content.
  • the comparison may be performed once or not limited to one time by DIFF or SDIFF, and the comparison field may be compared with other files in the fund system, and the comparison result is on the test report page. Displayed at the position of the preset display.
  • the field processed by the response message returned by the DIFF or SDIFF HTTP request and the comparison result of the field message compared with the preset expected value field and the field message are again used to clear the comparison result and the fund system daily by DIFF or SDIFF.
  • the exported file is compared, and the test content field and the field message are visually displayed through the test report page, and the preset is set as needed.
  • the field and field message with the expected value is placed on the left side of the test report, the current response field returned by the HTTP request, and the field message are placed on the right side of the test report, so that the field and field message of the preset expectation value and the current response field and field returned by the HTTP request are made.
  • the message is placed one by one, which improves the user experience and achieves a comprehensive and intuitive reflection of the test results.
  • the Fund System Automation Test Report is a single-page HTML file that contains all the required Javascript code and CSS code. It can be easily opened without relying on other tools.
  • HTML is used for structure setting; Javascript code is used for Behavior settings, JS code is a program executed in the browser, can dynamically change the page, can also control the state of the CSS; CSS code is used to control the performance of the web page, such as the width, height, color, font size and line spacing of the elements, etc. .
  • the field message of the preset expectation value is distinguished from the comparison field message by the CSS code in a highlighted manner or by a specific identifier. When the comparison value is displayed by the display tool, it is displayed as an HTML file, and the report includes the general report.
  • the report may also include: the comparison result of the HTTP-based request message and the fund system database table and the daily liquidation of the fund system.
  • the comparison result of the exported file is compared; the comparison result of comparing the HTTP request message sent by the client browser with the preset expected value and the file exported by the fund system during the monthly clearing by the comparison tool; the result displayed in the report.
  • the content is generally the difference between the HTTP request message and the expected value preset by the fund system.
  • the contrast difference in the report is highlighted in a highlighted manner or with a specific identifier.
  • the present application provides a method for comparing the test values of the fund system, and the response message of the HTTP request is processed through formatting, sorting the fields after the formatting process, filtering out the comparison fields in the sort field, and filtering out through the configuration file pair.
  • the comparison field is configured, it is paired with the preset expected value field, and the comparison result is highlighted in a highlighted manner or with a specific identifier, thereby realizing an intuitive display comparison test result.
  • performing format processing on the response information returned by the HTTP request, obtaining a response field and a response field message includes:
  • Step S201 The response message returned by the HTTP request is formatted by the formatting tool such that each response field and response field message are arranged in rows.
  • the formatting tool may refer to a JQ tool function, and the returned JSON message is formatted by the JQ tool function to make the displayed content more visual and filterable.
  • the working mode of the JQ tool function is as follows: 1.
  • the custom format outputs one or more items; 2. Obtain an array of an item according to the field and the field message; 3. Highlight and display by attribute; 4. Output format Realize beautiful display effects;
  • JQ tool functions allow JSON to be operated directly from the command line, including sharding, filtering, converting, and so on.
  • step S201 as another implementation manner, first, the maximum length of the field to be sorted is set; then, the field length is separately calculated for the field to be sorted; finally, the 0 is added according to the length, and the field is converted into a string of the same length. .
  • the maximum length of the field to be sorted is set to 15, the original string is "trade", and then converted to "000000trade".
  • the single field sorting method is used to sort the temporary fields.
  • the obtained combined string is essentially a single field, and each response field and response field message can be arranged in rows.
  • the response field is filtered according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message, including:
  • Step S301 Acquire a field arrangement order rule of a preset expected value, and sort the response field according to a field arrangement order rule of a preset expected value.
  • the fields are sorted in alphabetical order or sorted according to the importance degree and difference of the fields, and the displayed results are different according to the difference result.
  • the fields include sp-user, trade, order-date, and retcode.
  • User settings when sorting by field letter, word Segments are sorted by retcode, sp-user, trade, and order-date.
  • important fields are displayed according to different colors.
  • the colors can be displayed according to the red, yellow, green, blue, and purple colors. After sorting the importance levels, the colors can be displayed in turn.
  • the preset red color is the highest degree, and the purple color is important. The lowest, further, when the fields in the message are sorted, there are three fields, A, B, and C.
  • C is the most important, and can be marked with a red mark.
  • Display; B can be displayed with an orange mark; A is the least important and is displayed with a yellow mark; in addition, the displayed mark differs according to the difference of the fields.
  • the difference of the fields is displayed according to the color, and the color can be red dust.
  • the yellow, green, blue, and purple colors show different importance levels. After sorting the importance levels, they can be displayed in color according to the color.
  • the preset red color is the highest degree of importance, and the purple color is the least important.
  • A, B, C if the difference between the preset expectations in A and the fund system is the largest, B times , A and the fund system have a minimum difference between the preset expectations, then A can be displayed with a red mark; B can be displayed with an orange mark; C can be displayed with a yellow mark, and the display mark in this embodiment includes but is not limited to color mark.
  • Step S302 Filtering the completed response response field according to the preset expected value field to obtain a comparison field and a comparison field message.
  • step S302 the fields of the response are sorted according to the preset expected value field, and then the filtering is performed, and the sorted order of the selected comparison fields is the same as the order of the preset expected values, thereby implementing the fields between the fields. Compared.
  • Step S303 Configure a field of the preset expected value and the comparison field by using a configuration file, so that a field of the preset expected value is in one-to-one correspondence with the comparison field.
  • step S303 for example, in the specific embodiment of the present application, the fields of the preset expected value are sorted according to retcode, sp-user, trade, and order-date, and when the comparison field is configured, the compared comparison fields are also in accordance with retcode, The sp-user, trade, and order-date are sorted, and the preset expected value field corresponds to the comparison field one by one.
  • the preset retcode field retcode corresponds to the retcode in the comparison field.
  • a method for comparing the automatic test values of the fund system is provided, and the response message returned by the HTTP request is formatted by the JQ tool to obtain a clear and intuitive response message; the sequence and expected value messages actually received by the response message field are obtained.
  • the order of the fields is different.
  • the response message is sorted according to the ordering rule of the preset expectation value field.
  • the order of the response message field is the same as the order of the expected value field, and the failure result is not generated because the order is different.
  • the response message field is filtered.
  • the field is compared with the expected value field; the comparison field is configured through the configuration file, so that the response message field and the field message are compared with the expected value field and the field message through DIFF or SDIFF, and the message that returns the response through the HTTP request can be achieved. Contrast with the preset expected value field and the field message.
  • the automatic comparison device 40 for the fund system test value includes:
  • the data obtaining module 401 is configured to return response information according to the HTTP request, and obtain original data of a preset expected value
  • the data processing module 402 is configured to process, by using the response information returned by the HTTP request, a response field and a response field message.
  • the field comparison module 403 is configured to filter the response field according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message, and compare the comparison field message with a field message of a preset expected value;
  • the field display module 404 identifies a contrast field message that is different from the field message of the preset expected value.
  • the data processing module 402 is further configured to perform format processing on the response message returned by the HTTP request by using a formatting tool, so that each response field and response field message are arranged in rows.
  • the field comparison module 403 includes:
  • the arrangement rule obtaining unit 410 is configured to obtain a field arrangement in the original data of the preset expected value. Order rule
  • the field sorting unit 411 is configured to sort the response fields according to a field arrangement order rule of a preset expected value
  • the field filtering unit 412 is configured to filter the completed response response field according to the preset expected value field to obtain the comparison field and the comparison field message;
  • the field configuration module 413 is configured to configure, by using a configuration file, a field of the preset expected value and the comparison field, so that a field of the preset expected value is in one-to-one correspondence with the comparison field.
  • Another embodiment of the present application provides a computer readable storage medium having computer readable instructions stored thereon, the computer readable instructions being executed by a processor to implement the fund system test values in the above embodiments.
  • the automatic comparison method in order to avoid repetition, will not be described here.
  • the computer readable instructions are executed by the processor, the functions of the modules/units in the automatic comparison device of the fund system test values in the above embodiments are implemented. To avoid repetition, details are not described herein again.
  • FIG. 5 is a schematic diagram of a terminal device in this embodiment.
  • the terminal device 5 includes a processor 50, a memory 51, and computer readable instructions 52 stored in the memory 51 and operable on the processor 50.
  • the processor 50 executes the computer readable instructions 52 to implement various steps of a comparison method based on the fund system automated test values in the above embodiments, such as steps S10, S20, S30, and S40 shown in FIG.
  • steps S10, S20, S30, and S40 shown in FIG.
  • the processor 50 executes the computer readable instructions 52, the functions of the various modules/units of the comparison device based on the fund system automated test values in the above embodiments are implemented.
  • computer readable instructions 52 may be partitioned into one or more modules/units, one or more modules/units being stored in memory 51 and executed by processor 50 to complete the application.
  • the one or more modules/units may be a series of computer readable instruction segments capable of performing a particular function for describing the execution of computer readable instructions 52 in the terminal device 5.
  • a computer The readable instructions 52 can be partitioned into functions of the data acquisition module 401, the data processing module 402, the field comparison module 403, and the field display module 404 as shown in FIG.
  • the terminal device 5 can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, the processor 50, the memory 51. It will be understood by those skilled in the art that FIG. 5 is only an example of the terminal device 5, does not constitute a limitation of the terminal device 5, may include more or less components than the illustrated, or combine some components, or different components.
  • the terminal device may further include an input/output device, a network access device, a bus, and the like.
  • the processor 50 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5.
  • the memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk provided on the terminal device 5, a smart memory card (SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on.
  • the memory 51 may also include both an internal storage unit of the terminal device 5 and an external storage device.
  • the memory 51 is used to store computer readable instructions and other programs and data required by the terminal device.
  • the memory 51 can also be used to temporarily store data that has been output or is about to be output.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. in.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated modules/units if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the present application implements all or part of the processes in the foregoing embodiments, and may also be implemented by computer readable instructions, which may be stored in a computer readable storage medium.
  • the computer readable instructions when executed by a processor, may implement the steps of the various method embodiments described above.
  • the computer readable instructions comprise computer readable instruction code, which may be in the form of source code, an object code form, an executable file or some intermediate form or the like.
  • the computer readable medium can include any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media.
  • a recording medium a USB flash drive
  • a removable hard drive a magnetic disk, an optical disk
  • a computer memory a read only memory (ROM, Read-Only) Memory
  • RAM random access memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present application relates to the technical field of automatic testing of fund systems. An automatic comparison method, apparatus and device for fund system testing values and a storage medium are disclosed. The automatic comparison method for fund system testing values comprises: returning response information according to an HTTP request and obtaining original data of preset expected values, the original data including fields and field messages; performing format processing on the response information returned according to the HTTP request to obtain response fields and response field messages; and according to the fields in the original data of preset expected values, screening the response fields to obtain comparison fields and comparison field messages. A comparison testing result different from the preset expected values set by a user can be visually displayed, and testing operations of the user are more convenient.

Description

基金系统测试值的自动对比方法、装置、设备及存储介质Automatic comparison method, device, device and storage medium for fund system test value
本专利申请以2017年11月7日提交的申请号为201711082880.1,名称为“基金系统测试值的自动对比方法、装置、设备及存储介质”的中国发明专利申请为基础,并要求其优先权。This patent application is based on the Chinese invention patent application filed on November 7, 2017, with the application number of 201711082880.1, entitled "Automatic comparison method, device, equipment and storage medium for the test value of the fund system", and requires its priority.
技术领域Technical field
本申请涉及基金系统的自动化测试技术领域,尤其涉及一种基金系统测试值的自动对比方法、装置、设备及存储介质。The present application relates to the field of automated testing technology of a fund system, and in particular, to an automatic comparison method, device, device and storage medium for a fund system test value.
背景技术Background technique
基金系统的自动化测试结果中包括多个不同测试用例的测试结果,现有的基金系统的测试报告打开方式需要依赖其他工具进行打开,并且只记录了请求消息的测试结果,不能直观地反应用户需求的测试结果,需要用户逐个查找测试报告中的测试结果,增加了繁琐步骤,降低了用户的体验。The automated test results of the fund system include test results of a number of different test cases. The existing fund system test report opening method needs to rely on other tools to open, and only records the test results of the request message, and cannot directly reflect the user's needs. The test results require the user to find the test results in the test report one by one, which increases the cumbersome steps and reduces the user experience.
发明内容Summary of the invention
本申请的目的在于提供一种基金系统测试值的自动对比方法、装置、设备及存储介质,可以直观的显示与用户设定的预设期望值不同的对比测试结果。The purpose of the application is to provide an automatic comparison method, device, device and storage medium for the test value of the fund system, which can intuitively display the comparison test result different from the preset expected value set by the user.
本申请是这样实现的,本申请第一方面提供一种基金系统测试值的自动对比方法,所述基金系统测试值的自动对比方法包括:The application is implemented in this way. The first aspect of the present application provides an automatic comparison method of the fund system test value, and the automatic comparison method of the fund system test value includes:
根据HTTP请求返回响应信息,同时获取预设期望值的原始数据,所述原始数据包括字段及字段消息;Returning response information according to the HTTP request, and acquiring original data of a preset expected value, where the original data includes a field and a field message;
对所述HTTP请求返回的响应信息进行格式处理获取响应字段及响应字段消息; Formatting the response information returned by the HTTP request to obtain a response field and a response field message;
根据所述预设期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息;And filtering the response field according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message;
将所述对比字段消息与所述预设期望值的字段消息进行对比,并将与所述预设期望值的字段消息不同的对比字段消息进行标识。Comparing the comparison field message with the field message of the preset expected value, and identifying a comparison field message different from the field message of the preset expected value.
本申请第二方面提供一种基金系统测试值的自动对比装置,所述基金系统测试值的自动对比装置包括:The second aspect of the present application provides an automatic comparison device for a fund system test value, where the automatic comparison device of the fund system test value includes:
数据获取模块,用于根据HTTP请求返回响应信息,同时获取预设期望值的原始数据;a data obtaining module, configured to return response information according to the HTTP request, and obtain original data of a preset expected value;
数据处理模块,用于对所述HTTP请求返回的响应信息进行处理获取响应字段及响应字段消息;a data processing module, configured to process, by using the response information returned by the HTTP request, a response field and a response field message;
字段对比模块,用于根据预设期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息,将所述对比字段消息与预设期望值的字段消息进行对比;a field comparison module, configured to filter the response field according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message, and compare the comparison field message with a field message of a preset expected value;
字段显示模块,将与所述预设期望值的字段消息不同的对比字段消息进行标识。The field display module identifies a comparison field message that is different from the field message of the preset expected value.
本申请第三方面提供一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A third aspect of the present application provides a terminal device including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable instructions Implement the following steps:
根据HTTP请求返回响应信息,同时获取预设期望值的原始数据,所述原始数据包括字段及字段消息;Returning response information according to the HTTP request, and acquiring original data of a preset expected value, where the original data includes a field and a field message;
对所述HTTP请求返回的响应信息进行格式处理获取响应字段及响应字段消息;Formatting the response information returned by the HTTP request to obtain a response field and a response field message;
根据所述预设期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息;And filtering the response field according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message;
将所述对比字段消息与所述预设期望值的字段消息进行对比,并将与所述预设期望值的字段消息不同的对比字段消息进行标识。 Comparing the comparison field message with the field message of the preset expected value, and identifying a comparison field message different from the field message of the preset expected value.
本申请第四方面提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如下步骤:A fourth aspect of the present application provides a computer readable storage medium storing computer readable instructions that, when executed by a processor, implement the following steps:
根据HTTP请求返回响应信息,同时获取预设期望值的原始数据,所述原始数据包括字段及字段消息;Returning response information according to the HTTP request, and acquiring original data of a preset expected value, where the original data includes a field and a field message;
对所述HTTP请求返回的响应信息进行格式处理获取响应字段及响应字段消息;Formatting the response information returned by the HTTP request to obtain a response field and a response field message;
根据所述预设期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息;And filtering the response field according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message;
将所述对比字段消息与所述预设期望值的字段消息进行对比,并将与所述预设期望值的字段消息不同的对比字段消息进行标识。Comparing the comparison field message with the field message of the preset expected value, and identifying a comparison field message different from the field message of the preset expected value.
本申请提供一种基金系统测试值的自动对比方法、装置、设备及存储介质,将HTTP请求的响应消息通过格式化处理,对格式化处理后的字段进行排序,筛选出排序字段中的对比字段,通过配置文件对筛选出对比字段进行配置后与预设期望值的字段进行对,对比的结果以高亮的方式或者以特定的标识标示出来,实现了直观的显示对比测试结果,使用户的测试操作更加的简便。The present application provides an automatic comparison method, device, device and storage medium for a fund system test value, and formats a response message of an HTTP request by formatting, sorting the formatted field, and filtering out the comparison field in the sort field. After the configuration of the comparison field is configured through the configuration file, the field corresponding to the preset expected value is paired, and the comparison result is marked in a highlighted manner or with a specific identifier, thereby realizing an intuitive display comparison test result, and the user's test is performed. The operation is more convenient.
附图说明DRAWINGS
图1是本申请一种实施例提供的一种基于基金系统自动化测试值的对比方法的流程图;1 is a flow chart of a method for comparing automated test values based on a fund system according to an embodiment of the present application;
图2是本申请一种实施例提供的一种基于基金系统自动化测试值的对比方法中的步骤S30的一种实施方式提供的具体流程图;2 is a specific flowchart provided by an implementation manner of step S30 in a method for comparing automated test values of a fund system according to an embodiment of the present application;
图3是本申请另一种实施例提供的一种基于基金系统自动化测试值的对比装置的结构示意图;3 is a schematic structural diagram of a comparison device based on a fund system automatic test value according to another embodiment of the present application;
图4是本申请另一种实施例提供的一种基于基金系统自动化测试值的对比装置中的对比模块的一种实施方式提供的具体结构示意图;4 is a schematic diagram of a specific structure provided by an implementation manner of a comparison module in a comparison device for a fund system automatic test value according to another embodiment of the present application;
图5是本申请另一种实施例提供的终端设备的结构示意图。 FIG. 5 is a schematic structural diagram of a terminal device according to another embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
为了说明本申请的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solutions of the present application, the following description will be made by way of specific embodiments.
本申请实施例提供一种基金系统测试值的自动对比方法,如图1所示,该基金系统测试值的自动对比方法包括步骤S10、步骤S20、步骤S30以及步骤S40,每个步骤的具体内容如下:The embodiment of the present application provides an automatic comparison method for the fund system test value. As shown in FIG. 1 , the automatic comparison method of the fund system test value includes steps S10, S20, S30, and S40, and the specific content of each step is as follows:
步骤S10.根据HTTP请求返回响应信息,同时获取预设期望值的原始数据,所述原始数据包括字段及字段消息。Step S10. Returning the response information according to the HTTP request, and simultaneously acquiring the original data of the preset expected value, the original data including the field and the field message.
在步骤S10中,测试完成后获取HTTP请求消息,可以采用CURL在命令上执行进而收到实际的响应消息,响应消息中包含具有测试结果的原始数据,原始数据中包含了需要对比的字段代码及测试结果。预设期望值的原始数据为用户根据需求在基金系统中设置的进行对比的字段及字段消息,具体为用户编写的代码,可以在DATA域中获取预设期望值的原始数据,期望值可以进行修改,也可以通过导入外部终端设备的消息作为预设期望值,预设期望值的形式有多种,根据预设期望值的属性、名称以及对比字段等信息等进行分类存储在基金系统数据库文件夹中,对比字段包括申购或者赎回的金额、日期以及账户等。In step S10, after the test is completed, the HTTP request message is obtained, and the CURL can be executed on the command to receive the actual response message. The response message includes the original data with the test result, and the original data includes the field code to be compared and Test Results. The original data of the preset expectation value is a field and a field message which are set by the user in the fund system according to the requirement, and the code written by the user can obtain the original data of the preset expected value in the DATA domain, and the expected value can be modified. The message of the external terminal device can be used as the preset expectation value, and the preset expected value has various forms, and is classified and stored in the fund system database folder according to the attribute, name, and comparison field of the preset expected value, and the comparison field includes The amount, date, and account of the purchase or redemption.
步骤S20.对所述HTTP请求返回的响应信息进行格式处理获取响应字段及响应字段消息。Step S20: Perform format processing on the response information returned by the HTTP request to obtain a response field and a response field message.
在步骤S20中,对HTTP请求返回的响应信息为JSON格式数据,而JSON格式数据是以一种连续的字符串形式来进行显示,每一行数据中可能包括多个字段及每个字段对应的消息,对前端开发人员来说不便于阅读和筛选,为了便于阅读,通过相应的工具对JSON格式数据进行格式处理,使每一行数据均为 一个字段及该字段对应的消息。In step S20, the response information returned by the HTTP request is JSON format data, and the JSON format data is displayed in a continuous string form, and each row of data may include multiple fields and messages corresponding to each field. It is inconvenient for front-end developers to read and filter. For easy reading, the JSON format data is processed by the corresponding tools, so that each row of data is A field and a message corresponding to the field.
步骤S30.根据预设期望值的原始数据中的字段对所述响应消息中的字段进行筛选获取对比字段及对比字段消息。Step S30. Filtering the fields in the response message according to the fields in the original data of the preset expected value to obtain the comparison field and the comparison field message.
在步骤S30中,响应消息中经过重排序处理后的字段包含了很多字段,每一字段单独为一行,则会包括多行字段,为了对字段进行对比需要对多行字段进行筛选得到进行对比的字段,筛选的方式为根据预设期望值中设定的字段进行筛选,通过预设期望值的原始数据中的字段筛选出响应字段与期望值字段的对比字段,其中,筛选出响应字段通过从响应消息中筛选出或者筛选掉其他字段剩余的字段作为对比字段。In step S30, the re-sorted field in the response message includes a plurality of fields, and each field is a single row, which includes multiple rows of fields. In order to compare the fields, multiple rows of fields need to be filtered for comparison. The field is filtered according to the field set in the preset expectation value, and the comparison field between the response field and the expected value field is filtered by the field in the original data of the preset expected value, wherein the response field is filtered out from the response message. Filter out or filter out the remaining fields of other fields as comparison fields.
例如,具体实施时,响应消息中包括A、B、C三行字段,需要筛选的字段为A,用户设置将A筛选出作为对比字段或者将B、C筛选出,剩下的A作为对比字段。For example, in the specific implementation, the response message includes A, B, and C three-line fields, and the field to be filtered is A. The user sets A to filter out as a comparison field or B and C to filter out, and the remaining A as a comparison field. .
步骤S40.将对比字段消息与预设期望值的字段消息进行对比,并将与预设期望值的字段消息不同的对比字段消息进行标识。Step S40: Comparing the comparison field message with the field message of the preset expectation value, and identifying a comparison field message different from the field message of the preset expected value.
在步骤S40中,对响应消息中的字段进行筛选得到对比字段后,就可以将对比字段与预设期望值中原始数据的字段进行对比,具体的,可以通过DIFF或者SDIFF将对比字段消息与预设期望值的字段消息进行对比,显示所有字段以及字段消息,字段以及字段消息包括对比字段以及字段消息、预设期望值的字段以及字段消息,并按照对比先后顺序对字段以及字段消息进行排序显示。本申请对对比内容不作具体限定,本申请中可通过DIFF或者SDIFF进行包含一次但不限于一次的对比,还可以将对比字段同基金系统中的其他文件进行对比,并将对比结果在测试报告页面显示在预设显示的位置。In step S40, after the field in the response message is filtered to obtain a comparison field, the comparison field is compared with the field of the original data in the preset expected value. Specifically, the comparison field message and the preset may be performed by DIFF or SDIFF. The field message of the expected value is compared, all fields and field messages are displayed, and the field and field messages include comparison fields and field messages, fields of preset expected values, and field messages, and the fields and field messages are sorted and displayed in the order of comparison. The present application does not specifically limit the comparison content. In this application, the comparison may be performed once or not limited to one time by DIFF or SDIFF, and the comparison field may be compared with other files in the fund system, and the comparison result is on the test report page. Displayed at the position of the preset display.
例如,通过DIFF或者SDIFF HTTP请求返回的响应消息处理后的字段以及字段消息与预设的期望值字段以及字段消息进行对比后的对比结果,再次通过DIFF或者SDIFF将对比结果和基金系统每日清算时候导出的文件进行对比,通过测试报告页面直观的显示出测试内容字段以及字段消息,根据需要设置预 设期望值的字段与字段消息放置在测试报告的左边,HTTP请求返回的当前响应字段以及字段消息放置在测试报告的右边,使预设期望值的字段与字段消息与HTTP请求返回的当前响应字段以及字段消息一一对应放置,提高了用户体验,实现了全面直观地反映出测试结果。For example, the field processed by the response message returned by the DIFF or SDIFF HTTP request and the comparison result of the field message compared with the preset expected value field and the field message are again used to clear the comparison result and the fund system daily by DIFF or SDIFF. The exported file is compared, and the test content field and the field message are visually displayed through the test report page, and the preset is set as needed. The field and field message with the expected value is placed on the left side of the test report, the current response field returned by the HTTP request, and the field message are placed on the right side of the test report, so that the field and field message of the preset expectation value and the current response field and field returned by the HTTP request are made. The message is placed one by one, which improves the user experience and achieves a comprehensive and intuitive reflection of the test results.
同时,基金系统自动化测试报告是一个单页面的HTML文件,包含了所有需要的Javascript代码和CSS代码,可以在不依赖其他工具的情况下很方便地打开,HTML用于结构设置;Javascript代码用于行为设置,JS代码是在浏览器执行的一段程序,可以对页面进行动态改变,也可以控制CSS的状态;CSS代码用于控制网页表现,如元素的宽度、高度、颜色、字体大小以及行距等。预设期望值的字段消息与对比字段消息有区别的通过CSS代码以高亮的方式或者以特定的标识标示出来,通过显示工具显示比较值时以HTML文件方式显示,报告中包含一般报告所具有的要素,如执行了多少,成功了多少,执行时间等信息,此处不做详细赘述,报告中还可包含:基于HTTP的请求消息与基金系统数据库表的对比结果与和基金系统每日清算时候导出的文件进行对比的对比结果;通过对比工具将客户端浏览器发送的HTTP请求消息与预设的期望值的对比结果和基金系统每月清算时候导出的文件进行对比的对比结果;报告中显示的内容一般是HTTP请求消息与基金系统预设的期望值的差别,报告中的对比差别以高亮的方式或者以特定的标识标示出来。At the same time, the Fund System Automation Test Report is a single-page HTML file that contains all the required Javascript code and CSS code. It can be easily opened without relying on other tools. HTML is used for structure setting; Javascript code is used for Behavior settings, JS code is a program executed in the browser, can dynamically change the page, can also control the state of the CSS; CSS code is used to control the performance of the web page, such as the width, height, color, font size and line spacing of the elements, etc. . The field message of the preset expectation value is distinguished from the comparison field message by the CSS code in a highlighted manner or by a specific identifier. When the comparison value is displayed by the display tool, it is displayed as an HTML file, and the report includes the general report. The elements, such as how many are executed, how much success, execution time and other information, are not described in detail here. The report may also include: the comparison result of the HTTP-based request message and the fund system database table and the daily liquidation of the fund system. The comparison result of the exported file is compared; the comparison result of comparing the HTTP request message sent by the client browser with the preset expected value and the file exported by the fund system during the monthly clearing by the comparison tool; the result displayed in the report The content is generally the difference between the HTTP request message and the expected value preset by the fund system. The contrast difference in the report is highlighted in a highlighted manner or with a specific identifier.
本申请提供一种基金系统自动化测试值的对比方法,将HTTP请求的响应消息通过格式化处理,对格式化处理后的字段进行排序,筛选出排序字段中的对比字段,通过配置文件对筛选出对比字段进行配置后与预设期望值的字段进行对,对比的结果以高亮的方式或者以特定的标识标示出来,实现了直观的显示对比测试结果。The present application provides a method for comparing the test values of the fund system, and the response message of the HTTP request is processed through formatting, sorting the fields after the formatting process, filtering out the comparison fields in the sort field, and filtering out through the configuration file pair. After the comparison field is configured, it is paired with the preset expected value field, and the comparison result is highlighted in a highlighted manner or with a specific identifier, thereby realizing an intuitive display comparison test result.
对于上述实施例中的步骤S20,作为一种实施方式,对所述HTTP请求返回的响应信息进行格式处理获取响应字段及响应字段消息包括: For the step S20 in the foregoing embodiment, as an implementation manner, performing format processing on the response information returned by the HTTP request, obtaining a response field and a response field message includes:
步骤S201.对所述HTTP请求返回的响应消息通过格式化工具进行格式处理使每个响应字段及响应字段消息按行进行排列。Step S201. The response message returned by the HTTP request is formatted by the formatting tool such that each response field and response field message are arranged in rows.
在步骤S201中,作为一种实施方式,格式化工具可以是指JQ工具函数,通过JQ工具函数对返回的JSON消息进行格式化处理,使展示的内容更加可视化和可筛选。In step S201, as an implementation manner, the formatting tool may refer to a JQ tool function, and the returned JSON message is formatted by the JQ tool function to make the displayed content more visual and filterable.
具体的,JQ工具函数的工作方式:1、自定义格式输出某一项或者多项;2、按照字段及字段消息获取某一项数组;3、高亮并按属性排序显示;4、输出格式化,实现漂亮的显示效果;JQ工具函数允许直接在命令行下对JSON进行操作,包括分片、过滤、转换等等操作。Specifically, the working mode of the JQ tool function is as follows: 1. The custom format outputs one or more items; 2. Obtain an array of an item according to the field and the field message; 3. Highlight and display by attribute; 4. Output format Realize beautiful display effects; JQ tool functions allow JSON to be operated directly from the command line, including sharding, filtering, converting, and so on.
在步骤S201中,作为另一种实施方式,首先,设置待排序字段的最大长度;然后,对待排序字段分别计算字段长度;最后,根据长度进行补0操作,将字段转换为相同长度的字符串。例如设置待排序字段的最大长度为15,原字符串为“trade”,则转换后为“000000trade”。将转换后的多字段组合成一个新的字符串,并赋值给临时字段。例如,将“trade”与“123.12345”组合为“000000trade00123.12345。由于预先定义了“trade”与“123.12345”的最大长度,所以可以根据长度设置来划分出组合字符串中每个属性字段的值。采用单字段排序方法对临时字段进行排序。得到的组合字符串实质上为一个单字段,可以使每个响应字段及响应字段消息按行进行排列。In step S201, as another implementation manner, first, the maximum length of the field to be sorted is set; then, the field length is separately calculated for the field to be sorted; finally, the 0 is added according to the length, and the field is converted into a string of the same length. . For example, the maximum length of the field to be sorted is set to 15, the original string is "trade", and then converted to "000000trade". Combines the converted multi-fields into a new string and assigns them to temporary fields. For example, combine "trade" with "123.12345" to "000000trade00123.12345. Since the maximum length of "trade" and "123.12345" is predefined, the value of each attribute field in the combined string can be divided according to the length setting. The single field sorting method is used to sort the temporary fields. The obtained combined string is essentially a single field, and each response field and response field message can be arranged in rows.
对于上述实施例中的步骤S30,作为一种实施方式,如图2所示,根据预设期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息,包括:For the step S30 in the foregoing embodiment, as an embodiment, as shown in FIG. 2, the response field is filtered according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message, including:
步骤S301.获取预设期望值的字段排列顺序规则,根据预设期望值的字段排列顺序规则对所述响应字段进行排序。Step S301. Acquire a field arrangement order rule of a preset expected value, and sort the response field according to a field arrangement order rule of a preset expected value.
在步骤S301中,字段排序为按照字母顺序进行排序或者根据字段的重要程度以及差别进行排序,对比有差异的结果显示标志也不同,例如,字段包括sp-user、trade、order-date以及retcode,用户设置按字段的字母进行排序时,字 段按照retcode、sp-user、trade、order-date进行排序。例如,重要字段按照颜色不同进行显示,颜色可按红尘黄绿青蓝紫显示不同重要程度,对重要程度进行排序后可依次按照颜色进行显示,预设红色为重要程度为最高,则紫色为重要程度为最低,进一步地,对消息中的各个字段进行排序时有三个字段为A、B、C,若按照字段的重要程度排序为C、B、A,则C为重要程度为最高,可用红色标记进行显示;B可用橙色标记进行显示;A为重要程度最低,用黄色标记进行显示;另外,按字段的差别不同显示的标志也不同,例如,字段的差别不同按照颜色不同进行显示,颜色可按红尘黄绿青蓝紫显示不同重要程度,对重要程度进行排序后可依次按照颜色进行显示,预设红色为重要程度为最高,则紫色为重要程度为最低,消息中的各个字段进行排序时有三个字段为A、B、C,若A与基金系统中预设期望值差别为最大,B次之,A与基金系统中预设期望值差别为最小,则A可用红色标记进行显示;B可用橙色标记进行显示;C可用黄色标记进行显示,不同本实施例中显示标记包含但不局限于用颜色进行标记。In step S301, the fields are sorted in alphabetical order or sorted according to the importance degree and difference of the fields, and the displayed results are different according to the difference result. For example, the fields include sp-user, trade, order-date, and retcode. User settings when sorting by field letter, word Segments are sorted by retcode, sp-user, trade, and order-date. For example, important fields are displayed according to different colors. The colors can be displayed according to the red, yellow, green, blue, and purple colors. After sorting the importance levels, the colors can be displayed in turn. The preset red color is the highest degree, and the purple color is important. The lowest, further, when the fields in the message are sorted, there are three fields, A, B, and C. If the order is C, B, and A according to the importance of the field, C is the most important, and can be marked with a red mark. Display; B can be displayed with an orange mark; A is the least important and is displayed with a yellow mark; in addition, the displayed mark differs according to the difference of the fields. For example, the difference of the fields is displayed according to the color, and the color can be red dust. The yellow, green, blue, and purple colors show different importance levels. After sorting the importance levels, they can be displayed in color according to the color. The preset red color is the highest degree of importance, and the purple color is the least important. When the fields in the message are sorted, there are three fields. A, B, C, if the difference between the preset expectations in A and the fund system is the largest, B times , A and the fund system have a minimum difference between the preset expectations, then A can be displayed with a red mark; B can be displayed with an orange mark; C can be displayed with a yellow mark, and the display mark in this embodiment includes but is not limited to color mark.
步骤S302.根据预设期望值的字段对完成排序的响应字段进行筛选获取对比字段及对比字段消息。Step S302: Filtering the completed response response field according to the preset expected value field to obtain a comparison field and a comparison field message.
在步骤S302中,将响应的字段按照预设期望值的字段进行排序后就可以进行筛选,筛选出的对比字段的排列顺序与预设期望值的字段的排列顺序是相同的,进而实现字段之间的对比。In step S302, the fields of the response are sorted according to the preset expected value field, and then the filtering is performed, and the sorted order of the selected comparison fields is the same as the order of the preset expected values, thereby implementing the fields between the fields. Compared.
步骤S303.通过配置文件将所述预设期望值的字段与所述对比字段进行配置,使所述预设期望值的字段与所述对比字段一一对应。Step S303. Configure a field of the preset expected value and the comparison field by using a configuration file, so that a field of the preset expected value is in one-to-one correspondence with the comparison field.
在步骤S303中,例如,在本申请具体实施例中,预设期望值的字段按照retcode、sp-user、trade、order-date进行排序,对比字段进行配置时,筛选出的对比字段也按照retcode、sp-user、trade、order-date进行排序,预设期望值的字段与所述对比字段一一对应,如预设期望值的字段retcode对应对比字段中的retcode。 In step S303, for example, in the specific embodiment of the present application, the fields of the preset expected value are sorted according to retcode, sp-user, trade, and order-date, and when the comparison field is configured, the compared comparison fields are also in accordance with retcode, The sp-user, trade, and order-date are sorted, and the preset expected value field corresponds to the comparison field one by one. For example, the preset retcode field retcode corresponds to the retcode in the comparison field.
本申请实施例中提供一种基金系统自动化测试值的对比方法,通过JQ工具对HTTP请求返回的响应消息进行格式化处理,得到清楚直观的响应消息;响应消息字段实际收到的顺序与期望值消息字段排序不同,对响应消息根据预设期望值字段的排序规则进行排序,实现响应消息字段的顺序与期望值字段顺序相同,不会因为顺序不同而产生失败结果;完成排序后,对响应消息字段进行筛选,筛选出与期望值字段进行对比的字段;通过配置文件对对比字段进行配置,便于通过DIFF或者SDIFF对响应消息字段以及字段消息与期望值字段以及字段消息进行对比,能够达到通过HTTP请求返回响应的消息与预设期望值字段以及字段消息准确无误的对比。In the embodiment of the present application, a method for comparing the automatic test values of the fund system is provided, and the response message returned by the HTTP request is formatted by the JQ tool to obtain a clear and intuitive response message; the sequence and expected value messages actually received by the response message field are obtained. The order of the fields is different. The response message is sorted according to the ordering rule of the preset expectation value field. The order of the response message field is the same as the order of the expected value field, and the failure result is not generated because the order is different. After the sorting is completed, the response message field is filtered. The field is compared with the expected value field; the comparison field is configured through the configuration file, so that the response message field and the field message are compared with the expected value field and the field message through DIFF or SDIFF, and the message that returns the response through the HTTP request can be achieved. Contrast with the preset expected value field and the field message.
本申请另一种实施例提供一种基金系统测试值的自动对比装置40,如图3所示,基金系统测试值的自动对比装置包括:Another embodiment of the present application provides an automatic comparison device 40 for a fund system test value. As shown in FIG. 3, the automatic comparison device for the fund system test value includes:
数据获取模块401,用于根据HTTP请求返回响应信息,同时获取预设期望值的原始数据;The data obtaining module 401 is configured to return response information according to the HTTP request, and obtain original data of a preset expected value;
数据处理模块402,用于对所述HTTP请求返回的响应信息进行处理获取响应字段及响应字段消息;The data processing module 402 is configured to process, by using the response information returned by the HTTP request, a response field and a response field message.
字段对比模块403,用于根据预设期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息,将所述对比字段消息与预设期望值的字段消息进行对比;The field comparison module 403 is configured to filter the response field according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message, and compare the comparison field message with a field message of a preset expected value;
字段显示模块404,将与所述预设期望值的字段消息不同的对比字段消息进行标识。The field display module 404 identifies a contrast field message that is different from the field message of the preset expected value.
进一步的,所述数据处理模块402还用于对所述HTTP请求返回的响应消息通过格式化工具进行格式处理使每个响应字段及响应字段消息按行进行排列。Further, the data processing module 402 is further configured to perform format processing on the response message returned by the HTTP request by using a formatting tool, so that each response field and response field message are arranged in rows.
进一步的,如图4所示,所述字段对比模块403包括:Further, as shown in FIG. 4, the field comparison module 403 includes:
排列规则获取单元410,用于获取预设期望值的原始数据中的字段排列顺 序规则;The arrangement rule obtaining unit 410 is configured to obtain a field arrangement in the original data of the preset expected value. Order rule
字段排序单元411,用于根据预设期望值的字段排列顺序规则对所述响应字段进行排序;The field sorting unit 411 is configured to sort the response fields according to a field arrangement order rule of a preset expected value;
字段筛选单元412,用于根据预设期望值的字段对完成排序的响应字段进行筛选获取对比字段及对比字段消息;The field filtering unit 412 is configured to filter the completed response response field according to the preset expected value field to obtain the comparison field and the comparison field message;
字段配置模块413,用于通过配置文件将所述预设期望值的字段与所述对比字段进行配置,使所述预设期望值的字段与所述对比字段一一对应。The field configuration module 413 is configured to configure, by using a configuration file, a field of the preset expected value and the comparison field, so that a field of the preset expected value is in one-to-one correspondence with the comparison field.
上述终端设备中模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。For the specific working process of the module in the foregoing terminal device, reference may be made to the corresponding process in the foregoing method embodiment, and details are not described herein again.
本申请另一种实施例提供一计算机可读存储介质,该计算机可读存储介质上存储有计算机可读指令,该计算机可读指令被处理器执行时实现上述实施例中的基金系统测试值的自动对比方法,为避免重复,这里不再赘述。或者,该计算机可读指令被处理器执行时实现上述实施例中基金系统测试值的自动对比装置中各模块/单元的功能,为避免重复,这里不再赘述。Another embodiment of the present application provides a computer readable storage medium having computer readable instructions stored thereon, the computer readable instructions being executed by a processor to implement the fund system test values in the above embodiments. The automatic comparison method, in order to avoid repetition, will not be described here. Alternatively, when the computer readable instructions are executed by the processor, the functions of the modules/units in the automatic comparison device of the fund system test values in the above embodiments are implemented. To avoid repetition, details are not described herein again.
图5是本实施例中终端设备的示意图。如图5所示,终端设备5包括处理器50、存储器51以及存储在存储器51中并可在处理器50上运行的计算机可读指令52。处理器50执行计算机可读指令52时实现上述实施例中一种基于基金系统自动化测试值的对比方法的各个步骤,例如图1所示的步骤S10、S20、S30和S40。或者,处理器50执行计算机可读指令52时实现上述实施例中一种基于基金系统自动化测试值的对比装置各个模块/单元的功能。FIG. 5 is a schematic diagram of a terminal device in this embodiment. As shown in FIG. 5, the terminal device 5 includes a processor 50, a memory 51, and computer readable instructions 52 stored in the memory 51 and operable on the processor 50. The processor 50 executes the computer readable instructions 52 to implement various steps of a comparison method based on the fund system automated test values in the above embodiments, such as steps S10, S20, S30, and S40 shown in FIG. Alternatively, when the processor 50 executes the computer readable instructions 52, the functions of the various modules/units of the comparison device based on the fund system automated test values in the above embodiments are implemented.
示例性的,计算机可读指令52可以被分割成一个或多个模块/单元,一个或者多个模块/单元被存储在存储器51中,并由处理器50执行,以完成本申请。一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述计算机可读指令52在终端设备5中的执行过程。例如,计算机 可读指令52可以被分割成如图3所示的数据获取模块401、数据处理模块402、字段对比模块403以及字段显示模块404的功能。Illustratively, computer readable instructions 52 may be partitioned into one or more modules/units, one or more modules/units being stored in memory 51 and executed by processor 50 to complete the application. The one or more modules/units may be a series of computer readable instruction segments capable of performing a particular function for describing the execution of computer readable instructions 52 in the terminal device 5. For example, a computer The readable instructions 52 can be partitioned into functions of the data acquisition module 401, the data processing module 402, the field comparison module 403, and the field display module 404 as shown in FIG.
该终端设备5可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。终端设备可包括,但不仅限于,处理器50、存储器51。本领域技术人员可以理解,图5仅仅是终端设备5的示例,并不构成对终端设备5的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 5 can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, the processor 50, the memory 51. It will be understood by those skilled in the art that FIG. 5 is only an example of the terminal device 5, does not constitute a limitation of the terminal device 5, may include more or less components than the illustrated, or combine some components, or different components. For example, the terminal device may further include an input/output device, a network access device, a bus, and the like.
所称处理器50可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 50 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
存储器51可以是终端设备5的内部存储单元,例如终端设备5的硬盘或内存。存储器51也可以是终端设备5的外部存储设备,例如终端设备5上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器51还可以既包括终端设备5的内部存储单元也包括外部存储设备。存储器51用于存储计算机可读指令以及终端设备所需的其他程序和数据。存储器51还可以用于暂时地存储已经输出或者将要输出的数据。The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk provided on the terminal device 5, a smart memory card (SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on. Further, the memory 51 may also include both an internal storage unit of the terminal device 5 and an external storage device. The memory 51 is used to store computer readable instructions and other programs and data required by the terminal device. The memory 51 can also be used to temporarily store data that has been output or is about to be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。It will be apparent to those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned to different functional units as needed. The module is completed by dividing the internal structure of the device into different functional units or modules to perform all or part of the functions described above.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元 中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. in. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一计算机可读存储介质中,该计算机可读指令在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机可读指令包括计算机可读指令代码,所述计算机可读指令代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the processes in the foregoing embodiments, and may also be implemented by computer readable instructions, which may be stored in a computer readable storage medium. The computer readable instructions, when executed by a processor, may implement the steps of the various method embodiments described above. Wherein, the computer readable instructions comprise computer readable instruction code, which may be in the form of source code, an object code form, an executable file or some intermediate form or the like. The computer readable medium can include any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media It does not include electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。 The above-mentioned embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified or equivalently replaced with some of the technical features; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种基金系统测试值的自动对比方法,其特征在于,所述基金系统测试值的自动对比方法包括:An automatic comparison method for a fund system test value, characterized in that the automatic comparison method of the fund system test value comprises:
    根据HTTP请求返回响应信息,同时获取预设期望值的原始数据,所述原始数据包括字段及字段消息;Returning response information according to the HTTP request, and acquiring original data of a preset expected value, where the original data includes a field and a field message;
    对所述HTTP请求返回的响应信息进行格式处理获取响应字段及响应字段消息;Formatting the response information returned by the HTTP request to obtain a response field and a response field message;
    根据所述预设期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息;And filtering the response field according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message;
    将所述对比字段消息与所述预设期望值的字段消息进行对比,并将与所述预设期望值的字段消息不同的对比字段消息进行标识。Comparing the comparison field message with the field message of the preset expected value, and identifying a comparison field message different from the field message of the preset expected value.
  2. 根据权利要求1所述的基金系统测试值的自动对比方法,其特征在于,所述对所述HTTP请求返回的响应信息进行格式处理获取响应字段及响应字段消息包括:The automatic comparison method of the fund system test value according to claim 1, wherein the step of processing the response information returned by the HTTP request to obtain a response field and a response field message comprises:
    对所述HTTP请求返回的响应消息通过格式化工具进行格式处理使每个响应字段及响应字段消息按行进行排列。The response message returned by the HTTP request is formatted by the formatting tool such that each response field and response field message are arranged in rows.
  3. 根据权利要求1所述的基金系统测试值的自动对比方法,其特征在于,根据预设期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息,包括:The automatic comparison method of the fund system test value according to claim 1, wherein the response field is filtered according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message, including:
    获取预设期望值的原始数据中的字段排列顺序规则;Obtaining a field arrangement order rule in the original data of the preset expectation value;
    根据预设期望值的字段排列顺序规则对所述响应字段进行排序;Sorting the response fields according to a field arrangement order rule of a preset expectation value;
    根据预设期望值的字段对完成排序的响应字段进行筛选获取对比字段及对比字段消息。The response field that completes the sorting is filtered according to the field of the preset expectation value to obtain the comparison field and the comparison field message.
  4. 根据权利要求3所述的基金系统测试值的自动对比方法,其特征在于,根据预设期望值的字段对完成排序的响应字段进行筛选获取对比字段及对比字段消息,之后还包括: The automatic comparison method of the fund system test value according to claim 3, wherein the response field of the completed sorting is filtered according to the field of the preset expected value to obtain the comparison field and the comparison field message, and then includes:
    通过配置文件将所述预设期望值的字段与所述对比字段进行配置,使所述预设期望值的字段与所述对比字段一一对应。And configuring, by the configuration file, the field of the preset expected value and the comparison field, so that the field of the preset expected value is in one-to-one correspondence with the comparison field.
  5. 根据权利要求4所述的基金系统测试值的自动对比方法,其特征在于,所述字段排列顺序规则为按照字母顺序进行排序或者根据字段的重要程度进行排序。The automatic comparison method of the fund system test value according to claim 4, wherein the field arrangement order rule is sorted in alphabetical order or sorted according to the importance degree of the field.
  6. 根据权利要求1所述的基金系统测试值的自动对比方法,其特征在于,获取预设期望值的原始数据,包括:The automatic comparison method of the fund system test value according to claim 1, wherein the obtaining the original data of the preset expected value comprises:
    在DATA域中获取预设期望值的原始数据,或者,通过导入外部终端设备的消息作为预设期望值。The original data of the preset expectation value is obtained in the DATA field, or the message of the external terminal device is imported as a preset expectation value.
  7. 一种基金系统测试值的自动对比装置,其特征在于,所述基金系统测试值的自动对比装置包括:An automatic comparison device for a fund system test value, characterized in that the automatic comparison device of the fund system test value comprises:
    数据获取模块,用于根据HTTP请求返回响应信息,同时获取预设期望值的原始数据;a data obtaining module, configured to return response information according to the HTTP request, and obtain original data of a preset expected value;
    数据处理模块,用于对所述HTTP请求返回的响应信息进行处理获取响应字段及响应字段消息;a data processing module, configured to process, by using the response information returned by the HTTP request, a response field and a response field message;
    字段对比模块,用于根据预设期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息,将所述对比字段消息与预设期望值的字段消息进行对比;a field comparison module, configured to filter the response field according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message, and compare the comparison field message with a field message of a preset expected value;
    字段显示模块,将与所述预设期望值的字段消息不同的对比字段消息进行标识。The field display module identifies a comparison field message that is different from the field message of the preset expected value.
  8. 根据权利要求7所述的基金系统测试值的自动对比装置,其特征在于,所述字段对比模块包括:The automatic comparison device for the fund system test value according to claim 7, wherein the field comparison module comprises:
    排列规则获取单元,用于获取预设期望值的原始数据中的字段排列顺序规则;Arranging a rule obtaining unit, configured to obtain a field arrangement order rule in the original data of the preset expected value;
    字段排序单元,用于根据预设期望值的字段排列顺序规则对所述响应字段进行排序; a field sorting unit, configured to sort the response field according to a field arrangement order rule of a preset expected value;
    字段筛选单元,用于根据预设期望值的字段对完成排序的响应字段进行筛选获取对比字段及对比字段消息;a field filtering unit, configured to filter the completed response field according to the preset expected value field to obtain a comparison field and a comparison field message;
    字段配置模块,用于通过配置文件将所述预设期望值的字段与所述对比字段进行配置,使所述预设期望值的字段与所述对比字段一一对应。a field configuration module, configured to configure, by using a configuration file, a field of the preset expected value and the comparison field, so that a field of the preset expected value is in one-to-one correspondence with the comparison field.
  9. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:A terminal device comprising a memory, a processor, and computer readable instructions stored in the memory and operable on the processor, wherein the processor executes the computer readable instructions as follows step:
    根据HTTP请求返回响应信息,同时获取预设期望值的原始数据,所述原始数据包括字段及字段消息;Returning response information according to the HTTP request, and acquiring original data of a preset expected value, where the original data includes a field and a field message;
    对所述HTTP请求返回的响应信息进行格式处理获取响应字段及响应字段消息;Formatting the response information returned by the HTTP request to obtain a response field and a response field message;
    根据所述预设期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息;And filtering the response field according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message;
    将所述对比字段消息与所述预设期望值的字段消息进行对比,并将与所述预设期望值的字段消息不同的对比字段消息进行标识。Comparing the comparison field message with the field message of the preset expected value, and identifying a comparison field message different from the field message of the preset expected value.
  10. 根据权利要求9所述的终端设备,其特征在于,所述对所述HTTP请求返回的响应信息进行格式处理获取响应字段及响应字段消息包括:The terminal device according to claim 9, wherein the step of processing the response information returned by the HTTP request to obtain a response field and a response field message comprises:
    对所述HTTP请求返回的响应消息通过格式化工具进行格式处理使每个响应字段及响应字段消息按行进行排列。The response message returned by the HTTP request is formatted by the formatting tool such that each response field and response field message are arranged in rows.
  11. 根据权利要求9所述的终端设备,其特征在于,根据预设期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息,包括:The terminal device according to claim 9, wherein the response field is filtered according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message, including:
    获取预设期望值的原始数据中的字段排列顺序规则;Obtaining a field arrangement order rule in the original data of the preset expectation value;
    根据预设期望值的字段排列顺序规则对所述响应字段进行排序;Sorting the response fields according to a field arrangement order rule of a preset expectation value;
    根据预设期望值的字段对完成排序的响应字段进行筛选获取对比字段及对比字段消息。The response field that completes the sorting is filtered according to the field of the preset expectation value to obtain the comparison field and the comparison field message.
  12. 根据权利要求11所述的终端设备,其特征在于,根据预设期望值的字 段对完成排序的响应字段进行筛选获取对比字段及对比字段消息之后,所述处理器执行所述计算机可读指令时还实现如下步骤还包括:The terminal device according to claim 11, wherein the word according to a preset expectation value After the segment is configured to perform the comparison of the response field and the comparison field message, the processor further implements the following steps when the processor executes the computer readable instruction:
    通过配置文件将所述预设期望值的字段与所述对比字段进行配置,使所述预设期望值的字段与所述对比字段一一对应。And configuring, by the configuration file, the field of the preset expected value and the comparison field, so that the field of the preset expected value is in one-to-one correspondence with the comparison field.
  13. 根据权利要求12所述的终端设备,其特征在于,所述字段排列顺序规则为按照字母顺序进行排序或者根据字段的重要程度进行排序。The terminal device according to claim 12, wherein the field arrangement order rule is sorted in alphabetical order or sorted according to the importance degree of the field.
  14. 根据权利要求9所述的终端设备,其特征在于,获取预设期望值的原始数据,包括:The terminal device according to claim 9, wherein the acquiring the original data of the preset expected value comprises:
    在DATA域中获取预设期望值的原始数据,或者,通过导入外部终端设备的消息作为预设期望值。The original data of the preset expectation value is obtained in the DATA field, or the message of the external terminal device is imported as a preset expectation value.
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:A computer readable storage medium storing computer readable instructions, wherein the computer readable instructions, when executed by a processor, implement the following steps:
    根据HTTP请求返回响应信息,同时获取预设期望值的原始数据,所述原始数据包括字段及字段消息;Returning response information according to the HTTP request, and acquiring original data of a preset expected value, where the original data includes a field and a field message;
    对所述HTTP请求返回的响应信息进行格式处理获取响应字段及响应字段消息;Formatting the response information returned by the HTTP request to obtain a response field and a response field message;
    根据所述预设期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息;And filtering the response field according to a field in the original data of the preset expected value to obtain a comparison field and a comparison field message;
    将所述对比字段消息与所述预设期望值的字段消息进行对比,并将与所述预设期望值的字段消息不同的对比字段消息进行标识。Comparing the comparison field message with the field message of the preset expected value, and identifying a comparison field message different from the field message of the preset expected value.
  16. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述对所述HTTP请求返回的响应信息进行格式处理获取响应字段及响应字段消息包括:The computer readable storage medium according to claim 15, wherein the step of processing the response information returned by the HTTP request to obtain a response field and a response field message comprises:
    对所述HTTP请求返回的响应消息通过格式化工具进行格式处理使每个响应字段及响应字段消息按行进行排列。The response message returned by the HTTP request is formatted by the formatting tool such that each response field and response field message are arranged in rows.
  17. 根据权利要求15所述的计算机可读存储介质,其特征在于,根据预设 期望值的原始数据中的字段对所述响应字段进行筛选获取对比字段及对比字段消息,包括:A computer readable storage medium according to claim 15 wherein A field in the raw data of the expected value filters the response field to obtain a comparison field and a comparison field message, including:
    获取预设期望值的原始数据中的字段排列顺序规则;Obtaining a field arrangement order rule in the original data of the preset expectation value;
    根据预设期望值的字段排列顺序规则对所述响应字段进行排序;Sorting the response fields according to a field arrangement order rule of a preset expectation value;
    根据预设期望值的字段对完成排序的响应字段进行筛选获取对比字段及对比字段消息。The response field that completes the sorting is filtered according to the field of the preset expectation value to obtain the comparison field and the comparison field message.
  18. 根据权利要求17所述的计算机可读存储介质,其特征在于,根据预设期望值的字段对完成排序的响应字段进行筛选获取对比字段及对比字段消息之后,所述处理器执行所述计算机可读指令时还实现如下步骤:The computer readable storage medium according to claim 17, wherein the processor performs the computer readable after filtering the completed sorted response field according to the preset expected value field to obtain the comparison field and the comparison field message The instructions also implement the following steps:
    通过配置文件将所述预设期望值的字段与所述对比字段进行配置,使所述预设期望值的字段与所述对比字段一一对应。And configuring, by the configuration file, the field of the preset expected value and the comparison field, so that the field of the preset expected value is in one-to-one correspondence with the comparison field.
  19. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述字段排列顺序规则为按照字母顺序进行排序或者根据字段的重要程度进行排序。The computer readable storage medium according to claim 18, wherein the field arrangement order rules are sorted alphabetically or according to the importance of the fields.
  20. 根据权利要求15所述的计算机可读存储介质,其特征在于,获取预设期望值的原始数据,包括:The computer readable storage medium according to claim 15, wherein the acquiring the original data of the preset expected value comprises:
    在DATA域中获取预设期望值的原始数据,或者,通过导入外部终端设备的消息作为预设期望值。 The original data of the preset expectation value is obtained in the DATA field, or the message of the external terminal device is imported as a preset expectation value.
PCT/CN2017/112271 2017-11-07 2017-11-22 Automatic comparison method, apparatus and device for fund system testing values and storage medium WO2019090825A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711082880.1 2017-11-07
CN201711082880.1A CN108038125B (en) 2017-11-07 2017-11-07 Method, device, equipment and storage medium for automatically comparing fund system test values

Publications (1)

Publication Number Publication Date
WO2019090825A1 true WO2019090825A1 (en) 2019-05-16

Family

ID=62093877

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/112271 WO2019090825A1 (en) 2017-11-07 2017-11-22 Automatic comparison method, apparatus and device for fund system testing values and storage medium

Country Status (2)

Country Link
CN (1) CN108038125B (en)
WO (1) WO2019090825A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299002A (en) * 2018-08-24 2019-02-01 平安科技(深圳)有限公司 Generation method, computer readable storage medium and the terminal device of test report
CN110688302B (en) * 2019-08-27 2023-03-31 天津开心生活科技有限公司 Automatic field library testing method and device
CN116483689B (en) * 2023-03-13 2024-01-05 深圳华锐分布式技术股份有限公司 Method, device, equipment and medium for testing option brokerage quick trading system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080282112A1 (en) * 2000-03-16 2008-11-13 Akamai Technologies, Inc. Method and apparatus for testing request-response service using live connection traffic
CN103312551A (en) * 2012-03-12 2013-09-18 腾讯科技(深圳)有限公司 Test method and test device of common gateway interface
CN106155891A (en) * 2015-04-02 2016-11-23 阿里巴巴集团控股有限公司 Interface test method, interface description data library generating method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7644083B1 (en) * 2004-09-30 2010-01-05 Teradata Us, Inc. Efficiently performing inequality joins
US8515918B2 (en) * 2005-10-21 2013-08-20 Kevin R. Borders Method, system and computer program product for comparing or measuring information content in at least one data stream
CN101764720B (en) * 2009-11-24 2012-01-25 福建星网锐捷网络有限公司 Method and system for testing filtration performance
CN102222038B (en) * 2010-04-16 2014-05-07 中国工商银行股份有限公司 Transaction software test method and system based on banking business
CN104965865A (en) * 2015-06-08 2015-10-07 北京广利核系统工程有限公司 Quick inspection method of nuclear power plant DCS electronic alarm card
CN106776264B (en) * 2015-11-24 2020-07-03 北京国双科技有限公司 Application program code testing method and device
CN105468524A (en) * 2015-11-25 2016-04-06 上海斐讯数据通信技术有限公司 Automatic test method and system of WEB interface
CN105893249A (en) * 2015-12-31 2016-08-24 乐视网信息技术(北京)股份有限公司 Software testing method and device
CN106095673B (en) * 2016-06-07 2018-12-14 深圳市泰久信息系统股份有限公司 Automated testing method and system based on WEB interface
CN106445815B (en) * 2016-09-06 2019-04-23 优酷网络技术(北京)有限公司 A kind of automated testing method and device
CN106503268B (en) * 2016-12-07 2019-08-23 广东神马搜索科技有限公司 Data comparison methods, devices and systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080282112A1 (en) * 2000-03-16 2008-11-13 Akamai Technologies, Inc. Method and apparatus for testing request-response service using live connection traffic
CN103312551A (en) * 2012-03-12 2013-09-18 腾讯科技(深圳)有限公司 Test method and test device of common gateway interface
CN106155891A (en) * 2015-04-02 2016-11-23 阿里巴巴集团控股有限公司 Interface test method, interface description data library generating method and device

Also Published As

Publication number Publication date
CN108038125B (en) 2021-06-01
CN108038125A (en) 2018-05-15

Similar Documents

Publication Publication Date Title
WO2019095424A1 (en) Data acquisition method and device, storage medium and terminal
US9881063B2 (en) Systems and methods for using graphical representations to manage query results
US20140337785A1 (en) Analytic process design
US10354003B2 (en) Data filtering based on a cell entry
WO2019090825A1 (en) Automatic comparison method, apparatus and device for fund system testing values and storage medium
CN109299879A (en) A kind of statistical method, device and the equipment of power grid audit issues
CN107451112B (en) Form tool data checking method, device, terminal equipment and storage medium
CN112256684B (en) Report generation method, terminal equipment and storage medium
WO2016147220A1 (en) Text visualization system, text visualization method, and recording medium
CN113407254A (en) Form generation method and device, electronic equipment and storage medium
US11501033B2 (en) Model-based systems engineering model conversion with text requirements
CN110704635B (en) Method and device for converting triplet data in knowledge graph
CN111813485A (en) Page layout processing method, device and equipment and computer readable storage medium
CN111859863A (en) Document structure conversion method and device, storage medium and electronic equipment
WO2017134800A1 (en) Tabular data analysis method, tabular data analysis program, and information processing device
CN114757157B (en) Method, apparatus, device and medium for generating an aircraft kit
CN115935917A (en) Data processing method, device and equipment for visual chart and storage medium
WO2016147219A1 (en) Text visualization system, text visualization method, and recording medium
CN116225902A (en) Method, device and equipment for generating test cases
CN114745452A (en) Equipment management method and device and electronic equipment
CN114398226A (en) Network asset report generation method and device
CN114115831A (en) Data processing method, device, equipment and storage medium
CN114391151A (en) Enhanced natural language generation platform
US20120198373A1 (en) Focus-Driven User Interface
JP2019053763A (en) Text visualization system, text visualization method and program

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02/10/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17931450

Country of ref document: EP

Kind code of ref document: A1