CN107894955A - A kind of method based on multithreading test third party's interface stability - Google Patents

A kind of method based on multithreading test third party's interface stability Download PDF

Info

Publication number
CN107894955A
CN107894955A CN201711264117.0A CN201711264117A CN107894955A CN 107894955 A CN107894955 A CN 107894955A CN 201711264117 A CN201711264117 A CN 201711264117A CN 107894955 A CN107894955 A CN 107894955A
Authority
CN
China
Prior art keywords
interface
thread
party
parameter
method based
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
CN201711264117.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.)
Inspur Financial Information Technology Co Ltd
Original Assignee
Inspur Financial Information 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 Inspur Financial Information Technology Co Ltd filed Critical Inspur Financial Information Technology Co Ltd
Priority to CN201711264117.0A priority Critical patent/CN107894955A/en
Publication of CN107894955A publication Critical patent/CN107894955A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

A kind of method based on multithreading test third party's interface stability, comprises the following steps:S1, increase thread in thread list;S2, each thread is set to need the interface list performed;Call number and order needed for S3, configuration interface, and configure the parameter and parameter rule of interface;S4, thread list is enabled, judge whether the interface interchange number of each thread reaches the number configured in step S3, if reaching, enable next thread, otherwise, called third party's interface, call number is reached the number configured in step S3;S5, all thread implementation status of monitoring, count implementing result.This method is skillfully constructed, is simple and efficient, can effectively reduce the error rate of third party's interface interchange, and quickly confirms that mistake is corrected.

Description

A kind of method based on multithreading test third party's interface stability
Technical field
The invention belongs to interface testing technical field, and in particular to one kind is based on multithreading test third party's interface stability Method.
Background technology
Malfunction in project testing stage, the third party's interface for occurring calling once in a while, such as surveyed using artificial according to the applicant understood The method of examination, it is necessary to be operated, and be difficult the situation of simulation multi-user operation for a long time.When some of third party's interface is wrong Probability of occurrence is extremely low by mistake but can cause serious consequence when occurring, or even when can be had an impact to third party itself program, it is artificial to survey Method for testing is difficult to confirm that mistake has been corrected in a short time.
The content of the invention
In view of the defects of above-mentioned prior art is present, the purpose of the present invention is exactly to propose that a kind of multithreading that is based on tests the 3rd The method of square interface stability, each sub-line journey carry out interface interchange, Ke Yiyou according to the interfacing order and parameter cyclic configured The correctness of effect monitoring interface.
The purpose of the present invention, it will be achieved by the following technical programs:One kind is based on multithreading test third party's interface The method of stability, comprises the following steps:
S1, increase thread in thread list;
S2, each thread is set to need the interface list performed;
Call number and order needed for S3, configuration interface, and configure the parameter and parameter rule of interface;
S4, thread list is enabled, judge whether the interface interchange number of each thread reaches the number configured in step S3, if reaching Arrive, then enable next thread, otherwise, call third party's interface, call number is reached the number configured in step S3;
S5, all thread implementation status of monitoring, count implementing result.
Preferably, increase thread in step S1 and use copy mode.
Preferably, parameter includes preset parameter, variable element and its rule change in step S3.
Preferably, call in step S4 and recorded calling situation in transaction log during third party's interface.
Preferably, interface list need to define each interface interchange mode before step S3, parameter is passed to mode and result is sentenced Disconnected method.
The present invention protrusion effect be:This method is skillfully constructed, is simple and efficient, can effectively reduce third party's interface interchange Error rate, and quickly confirm mistake corrected.
Brief description of the drawings
Fig. 1 is the inventive method flow chart.
Fig. 2 is present invention method runnable interface schematic diagram.
Embodiment
Referring to Fig. 1, the present invention provides a kind of method based on multithreading test third party's interface stability, including it is as follows Step:
S1, increase thread in thread list;
S2, each thread is set to need the interface list performed;
Call number and order needed for S3, configuration interface, and configure the parameter and parameter rule of interface;
S4, thread list is enabled, judge whether the interface interchange number of each thread reaches the number configured in step S3, if reaching Arrive, then enable next thread, otherwise, call third party's interface, call number is reached the number configured in step S3;
S5, all thread implementation status of monitoring, count implementing result.
The operation rules in above-mentioned steps step S1 ~ step S5, mode etc. will be described in detail below;
Increase thread in step S1 and use copy mode.
Parameter includes preset parameter, variable element and its rule change in step S3.
Call in step S4 and recorded calling situation in transaction log during third party's interface.
Interface list need to define each interface interchange mode before step S3, parameter is passed to mode and result determination methods.
Before carrying out actual test, according to testing requirement, increase thread in thread list first;Then each thread is set The interface list performed is needed, execution can be repeated several times in same interface;Parameter needed for calling interface and parameter rule are set again Then;Set the number that each thread loops perform.Thread can be increased by way of duplication.
After the completion of configuration, clicking on start button can start to test, and instrument can enable thread successively automatically, and feed back at any time Each thread current state.New thread can no longer be enabled by clicking on stop button, and force to stop all threads being currently running.
After the completion of test, test result can be checked, or opens journal file and checks the specific implementation status of each thread, it is determined that Whether meet test and pass through standard.
Fig. 2 is referred to, configures interface interchange testing time:10
Configure interface interchange order:
1)Obtain information(GetPatientInfo)
2)Supplement with money(PatientCardRecharge)
Configure interface parameters:According to card number list(Such as:18 card numbers)In card number tissue obtain information interface enter ginseng, call After obtaining information interface, interface is supplemented with money according to card number and user profile tissue and enters ginseng, calling supplements interface with money.
Card number in card number list starts thread successively, calls third party's interface, write-in daily record, interface interchange complete Into if not up to limited number of times, continuing cycling through execution;If reaching limited number of times, thread situation is fed back.
Treat that all threads perform completion, count implementing result.
In addition to the implementation, the present invention can also have other embodiment.It is all to use equivalent substitution or equivalent transformation shape Into technical scheme, all fall within the protection domains of application claims.

Claims (5)

  1. A kind of 1. method based on multithreading test third party's interface stability, it is characterised in that comprise the following steps:
    S1, increase thread in thread list;
    S2, each thread is set to need the interface list performed;
    Call number and order needed for S3, configuration interface, and configure the parameter and parameter rule of interface;
    S4, thread list is enabled, judge whether the interface interchange number of each thread reaches the number configured in step S3, if reaching Arrive, then enable next thread, otherwise, call third party's interface, call number is reached the number configured in step S3;
    S5, all thread implementation status of monitoring, count implementing result.
  2. A kind of 2. method based on multithreading test third party's interface stability according to claim 1, it is characterised in that Increase thread in the step S1 and use copy mode.
  3. A kind of 3. method based on multithreading test third party's interface stability according to claim 1, it is characterised in that Parameter includes preset parameter, variable element and its rule change in the step S3.
  4. 4. a kind of method based on multithreading test third party's interface stability according to claim 1, the step S4 Calling situation recorded in transaction log during middle calling third party's interface.
  5. A kind of 5. method based on multithreading test third party's interface stability according to claim 1, it is characterised in that Interface list need to define each interface interchange mode before step S3, parameter is passed to mode and result determination methods.
CN201711264117.0A 2017-12-05 2017-12-05 A kind of method based on multithreading test third party's interface stability Pending CN107894955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711264117.0A CN107894955A (en) 2017-12-05 2017-12-05 A kind of method based on multithreading test third party's interface stability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711264117.0A CN107894955A (en) 2017-12-05 2017-12-05 A kind of method based on multithreading test third party's interface stability

Publications (1)

Publication Number Publication Date
CN107894955A true CN107894955A (en) 2018-04-10

Family

ID=61806960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711264117.0A Pending CN107894955A (en) 2017-12-05 2017-12-05 A kind of method based on multithreading test third party's interface stability

Country Status (1)

Country Link
CN (1) CN107894955A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299006A (en) * 2018-09-11 2019-02-01 平安科技(深圳)有限公司 The method and apparatus for determining system stability
CN109947410A (en) * 2019-03-28 2019-06-28 北京致远互联软件股份有限公司 Third party's service interface construction method and device
CN112653599A (en) * 2020-12-21 2021-04-13 广州爱浦路网络技术有限公司 Interface error information reporting method, system, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005532A (en) * 2015-08-05 2015-10-28 广东欧珀移动通信有限公司 System for automatically testing stability of application program interface and method
US20160232040A1 (en) * 2009-11-23 2016-08-11 International Business Machines Corporation Thread folding tool
CN106021111A (en) * 2016-05-30 2016-10-12 上海携程商务有限公司 Interface testing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160232040A1 (en) * 2009-11-23 2016-08-11 International Business Machines Corporation Thread folding tool
CN105005532A (en) * 2015-08-05 2015-10-28 广东欧珀移动通信有限公司 System for automatically testing stability of application program interface and method
CN106021111A (en) * 2016-05-30 2016-10-12 上海携程商务有限公司 Interface testing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WHORUS1: "jmeter进行APP接口测试经验总结", 《CSDN:HTTPS://BLOG.CSDN.NET/WHORUS1/ARTICLE/DETAILS/50681678》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299006A (en) * 2018-09-11 2019-02-01 平安科技(深圳)有限公司 The method and apparatus for determining system stability
CN109947410A (en) * 2019-03-28 2019-06-28 北京致远互联软件股份有限公司 Third party's service interface construction method and device
CN109947410B (en) * 2019-03-28 2022-09-02 北京致远互联软件股份有限公司 Third-party service interface construction method and device
CN112653599A (en) * 2020-12-21 2021-04-13 广州爱浦路网络技术有限公司 Interface error information reporting method, system, device and storage medium

Similar Documents

Publication Publication Date Title
CN107894955A (en) A kind of method based on multithreading test third party's interface stability
CN109617910A (en) Loophole methods of risk assessment, device and storage medium, server
CN109345200A (en) Automatic auditing method and device, computer readable storage medium based on high-volume report
CN109858097A (en) A kind of spacecraft single machine test assessment methods of sampling
CN106872889A (en) A kind of fault detection method of sequential export device and device
CN108322917A (en) Wireless network accesses Fault Locating Method, equipment, system and storage medium
CN104615537B (en) A kind of image procossing IP like constrains random verification method and device
CN109032588A (en) It is anti-to cheat regular air control engine
CN109411034A (en) Regular integrity verification method and device, the computer readable storage medium of medical inspection project
CN106445812B (en) Regression test system and regression testing method
CN107357721A (en) The method and device of test system
CN106371988A (en) Automatic interface test method and device
CN106604126A (en) Intelligent video screenshot capture method and device
CN110516258A (en) Data verification method and device, storage medium, electronic device
Cavalcanti et al. Conformance relations for distributed testing based on CSP
DE102008046397A1 (en) System-level system-level transaction verification by translating transactions into machine code
CN107967216A (en) Code detection method and device, equipment, computer-readable recording medium
CN105989095B (en) Take the correlation rule significance test method and device of data uncertainty into account
CN108763039B (en) Service fault simulation method, device and equipment
CN106844200A (en) Generate the method and system of test case
Andrade et al. Testing interruptions in reactive systems
CN101793932A (en) Electrostatic test system, electrostatic test operating system and electrostatic test method
Hatko et al. Behaviour-driven development for computer-interpretable clinical guidelines
CN112259244B (en) Disease information matching system based on blood oxygen saturation
CN109636442A (en) Like the determination method, apparatus and storage medium of content

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180410