WO2020175161A1 - Apiアダプタ試験システム、apiアダプタ試験支援装置、apiアダプタ試験支援方法、および、apiアダプタ試験支援プログラム - Google Patents

Apiアダプタ試験システム、apiアダプタ試験支援装置、apiアダプタ試験支援方法、および、apiアダプタ試験支援プログラム Download PDF

Info

Publication number
WO2020175161A1
WO2020175161A1 PCT/JP2020/005619 JP2020005619W WO2020175161A1 WO 2020175161 A1 WO2020175161 A1 WO 2020175161A1 JP 2020005619 W JP2020005619 W JP 2020005619W WO 2020175161 A1 WO2020175161 A1 WO 2020175161A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
adapter
service
response
request
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.)
Ceased
Application number
PCT/JP2020/005619
Other languages
English (en)
French (fr)
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.)
NTT Inc
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to US17/433,303 priority Critical patent/US11914505B2/en
Publication of WO2020175161A1 publication Critical patent/WO2020175161A1/ja
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3696Methods or tools to render software testable

Definitions

  • the present invention relates to an A P I adapter test system, an A P I adapter test support device, an A P I adapter test support method, and an A P I adapter test support program for determining the normality of an A P ⁇ adapter created by an A P I adapter creation device.
  • a technology has been developed to automatically generate an API adapter that absorbs the specification difference of the Ucation Program Interface) and links them.
  • Non-patent document 1 A study on a method for facilitating the development of API adapters using GUI Naoki Take, Yuki Ikeya, Nobuo Kouchi, Kensuke Takahashi, Michi Otani, Hiroshi Kato (NTT) IEICE 2018 Society Conference B- 14-13
  • the automatically generated API adapter can check the health of the API adapter before use. ⁇ 02020/175161 2 ( ⁇ 171?2020/005619
  • the present invention has been made in view of the above circumstances, and includes an eight I adapter test system, an eight I adapter test support device, and an I adapter test support capable of easily determining the normality of an eight adapter.
  • the purpose is to provide a method and I adapter test support program.
  • an eight adapter test system of the present invention is an eight I adapter test support device that supports a normality judgment test of an eight I adapter relating to a predetermined service eight I, and the above-mentioned? I A person in charge of development connected to the adapter test support device, and the above-mentioned?
  • the development person terminal is ound-API (Mazuichi 1) 1st specification data that specifies the specification, 2nd specification data that specifies the service 8I specification, test parameters used for the normality judgment test, and 8I Service simulation data for generating response data for the 2nd 8th I request after the 1st 8th request, which is an input signal to the adapter, is converted by the 8th adapter, and a data transmission unit for transmitting And a test result information acquisition unit that acquires the test result information transmitted from the I adapter test support device by transmitting data from the data transmission unit.
  • 1st specification data that specifies the specification
  • 2nd specification data that specifies the service 8I specification
  • 8I Service simulation data for generating response data for the 2nd 8th I request after the 1st 8th request, which is an input signal to the adapter, is converted by the 8th adapter, and a data transmission unit for transmitting
  • a test result information acquisition unit that acquires the test result information transmitted from the
  • I adapter test support device ⁇ 02020/175161 3 ((171?2020/005619
  • the second specification data transmitted from the developer terminal and the service simulation data are used to generate a stub for the second I request, and the service? I The service of the simulator? I Service to be transmitted for deployment to the simulated function execution unit.Simulated function deployment unit, the first specification data transmitted from the developer terminal, and the test parameters, based on the normality judgment.
  • a test scenario creation unit that creates a query pattern to be included in the 18th I request used in the test, and creates a test scenario showing the expected response content using the service simulation data for each of the query patterns.
  • the test scenario execution unit that executes the generated test scenario, and the 18th response that the 2nd/9th response is converted by the 8th adapter is received, and an expected response is obtained for each of the query patterns.
  • a test result information generation unit for determining normality depending on whether or not
  • FIG. 1 A block diagram showing a configuration of an eight I adapter test system according to an embodiment of the present invention.
  • FIG. 2 is a sequence diagram showing the operation of the 8I adapter test system according to the embodiment of the present invention.
  • FIG. 3 (3) Example of query pattern information, (3) Example of test scenario information generated by the 8 I adapter test support device of the 8 I adapter test system according to one embodiment of the present invention, and ( ⁇ ) This is an example of information indicating a process for confirming whether or not the expected response contents are obtained in the simulated conversion process.
  • the API adapter test system includes a development manager terminal 10 operated by a person in charge of developing a normality judgment test for the target API adapter Y, and the normality judgment test. It is equipped with an API adapter test support device 20 for supporting the above, and a wholesaler AP simulation device 30 connected to the developer terminal 10 and the API adapter test support device 20.
  • the development staff terminal 10 has a data storage unit 11, a data transmission unit 12, and a test result information acquisition unit 13.
  • the data storage unit 11 includes NB-AP ⁇ (Northbound API) specification data D1 as the first specification data, wholesale service AP ⁇ specification data D2 as the second specification data, test parameters D3, And the wholesale service simulation data D4 is stored.
  • NB— AP specification data D1 is AP specification data composed of swagger spec file for defining N B_ API specification of wholesale service X before being converted by API adapter Y to be tested. ..
  • the wholesale service A P specification data D2 is A P I specification data for defining the wholesale service A P specification in which the A P I signal is converted by the A P I adapter Y.
  • the test parameter D3 is information indicating the test parameter used in the normality judgment test process in the NB-API signal input to the AP adapter Y.
  • the wholesale service simulation data D4 is data for generating response data for the second A P ⁇ request after the first A P ⁇ request which is an input signal to the A P I adapter Y is converted by the A P ⁇ adapter Y.
  • the data transmission unit 12 transmits the file information in which the data stored in the data storage unit 11 is held to the API adapter test support device 20 based on the operation of the person in charge of development.
  • the test result information acquisition unit 13 is composed of a display device, API ⁇ 02020/175161 5 ⁇ (: 171?2020/005619
  • the I adapter test support device 20 includes a file reading unit 21, a wholesale service I simulated function code generation unit 22, a wholesale service I simulated data input unit 23, and a wholesale service simulation function deployment unit. 24, a test scenario creation unit 25, a test scenario execution unit 26, and a test result information generation unit 27.
  • the file reading unit 21 reads the file information transmitted from the development staff terminal 10.
  • the wholesale service Hachijo simulated function code generation unit 22 uses the wholesale service Hachijo specification data port 2 in the file information transmitted from the development person terminal 10 to Generates source code information for the table.
  • the wholesale service simulation data input unit 23 inserts the data in the wholesale service simulation data port 4 into the source code information of the table generated by the wholesale service simulation function code generation unit 22.
  • the wholesale service simulation function deploying unit 24 uses the second specification data 02 sent from the developer terminal 10 and the wholesale service simulation data block 4 to stub the 28th request. Is generated and transmitted for deployment to the wholesale service I simulation function execution unit 3 1 of the wholesale service Hachijo simulation device 30.
  • the test scenario creation unit 25 uses the N 6 — 8 specification data 1 sent from the developer terminal 10 and the test parameter 03 to perform the 1st 88 test used in the normality judgment test. Generate the query pattern to be included in the request, and use the service simulation data for each query pattern to generate the test scenario showing the expected response content.
  • the test scenario execution unit 26 executes the generated test scenario and receives the response result.
  • the test result information generator 27 receives the 1st 8th response converted from the 2nd 8th I response by the 8th I adapter, and determines the normality depending on whether or not it is the expected response for each query pattern. Judgment is made and the test result information of the relevant normality judgment test is generated and transmitted to the development staff terminal 10.
  • the wholesale service Hachijo simulator 30 performs a normality judgment test of the Hachijo adapter. In order to do so, it has a wholesale service API simulation function execution unit 3 1 that receives the 2nd AP request and sends the 2nd API response which is the response to it.
  • the data transmission unit 12 of the developer terminal 10 causes ,
  • the file information holding the NB— AP (Northbound API) specification data D1, the wholesale service AP specification data D2, the test parameter D3, and the wholesale service simulation data D4 stored in the data storage unit 11 Is sent to the API adapter test support device 20 (S2).
  • the file information transmitted from the developer terminal 10 is read by the file reading unit 21 (S3).
  • the wholesale service AP simulation function code generation unit 22 generates the source code information of the PostgreSQL table using the wholesale service AP specification data D2, and the wholesale service AP It is acquired by the service AP simulation function deployment unit 24 (S4).
  • the wholesale service API simulated data input unit 23 inserts the data in the wholesale service simulated data D4 into the source code information of the PostgreSQL table obtained by the wholesale service API simulated function deploying unit 24 (S5).
  • the wholesale service AP simulation function deploying unit 24 generates a stub for the second AP request and sends it to the wholesale service AP mimicking device 30 (S6).
  • the wholesale service A P I simulation device 30 receives and deploys the stub transmitted from the wholesale service A P I simulated function deployment unit 24 (S7). For example, a virtual machine as the wholesale service AP I simulator 30 is started, or the wholesale service AP simulator 30 is started by docker comp ose and the stub is deployed.
  • test scenario creation unit 25 of the API adapter test support device 20 ⁇ 02020/175161 7 ⁇ (: 171?2020/005619
  • test scenario execution unit 26 executes the test scenario information, and inputs the Eighteen request request to the eight adapter (39).
  • the Hachijo adapter converts the Mimi_Hachijo request into a wholesale service Hachijo request, and sends the request to the wholesale service Hachijo simulator 30.
  • the wholesale service 8 I simulation function execution unit 31 of the wholesale service 8 simulation device 30 generates a wholesale service 8 response which is a response to the wholesale service 8 request (310).
  • the wholesale service Hachijo response is converted again, N6—Hachijo response is generated, and sent to the test scenario execution unit 26 of the Hadajo adapter test support device 20 (3 1 1) ..
  • the test result information generation unit 27 expects the data from the adapter. It is judged for each query pattern whether or not the response content is obtained (see (3) in Fig. 3). Then, " ⁇ " information is added to the query pattern for which the expected response content was obtained, and "" information is added to the query pattern for which the expected response content was not obtained.
  • the test result information as shown in is generated. The generated test result information is sent from the test result information generation unit 27 to the developer person terminal 10. ⁇ 02020/175161 8 ((171?2020/005619
  • the normality of the wholesale service eight I adapter created for the predetermined eight wholesale service adapters can be easily determined by a simple process.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

APIアダプタの正常性を容易に判定することが可能なAPIアダプタ試験システムを提供する。APIアダプタ試験システム1は、所定のAPIアダプタの正常性判定試験を支援するAPIアダプタ試験支援装置20と、開発担当者端末10と、卸サービスAPI模擬装置30とを備える。APIアダプタ試験支援装置20は、当該APIアダプタによる模擬変換処理を実行させるための実行ファイルを卸サービスAPI模擬装置30に配備させる卸サービスAPI模擬機能配備部24と、当該試験処理に用いるクエリパターンごとに、模擬変換処理で取得されることが期待される応答内容を示した試験シナリオ情報を生成する試験シナリオ作成部25と、当該模擬変換処理で、期待される応答内容が得られたか否かをクエリパターンごとに判定して生成した試験結果情報を開発担当者端末10に送信する試験結果情報生成部27とを有する。

Description

明 細 書
発明の名称 :
AP I アダプタ試験システム、 AP I アダプタ試験支援装置、 AP I アダ プタ試験支援方法、 および、 AP I アダプタ試験支援プログラム
技術分野
[0001] A P I アダプタ作成装置によって作成された A P 丨 アダプタの正常性を判 定するための A P I アダプタ試験システム、 A P I アダプタ試験支援装置、 A P I アダプタ試験支援方法、 および、 A P I アダプタ試験支援プログラム に関する。
背景技術
[0002] 近年、 B 2 B 2X (Business To Business To X) の普及に伴って、 複数の サービスを組み合わせて新たなサービスを構築し運用することが行われてい る。 ここで、 新たなサービスの登場および既存サービスの仕様変更が頻繁に 行われるため、 サービス事業者はこれらの変更に迅速かつ低コストで対応す ることが求められる。
[0003] これに対応するため、 各事業者が公開した各種サービスごとの A P 丨 (App
Ucation Program Interface) の仕様差分を吸収して連携させる A P I アダ プタを自動生成する技術が開発されている。
先行技術文献
非特許文献
[0004] 非特許文献 1 : GUIを用いた APIアダプタ開発容易化方式に関する一検討 武 直樹 ·池谷友基 ·小内伸夫 ·高橋謙輔 ·大谷未稚 ·加藤 浩 (NTT) IEICE 2018年ソサイエティ大会 B-14-13
発明の概要
発明が解決しようとする課題
[0005] 上述したように自動生成された A P I アダプタは、 使用前にその正常性を \¥02020/175161 2 卩(:171?2020/005619
確認する必要がある。 しかし、 この確認作業を行うためには、 正常性を確認 するための結合試験シナリオ情報、 結合試験シナリオ情報に沿って I を 実行させる機能、 および自動生成された I アダプタで対象 I を模擬 実施させる機能を搭載した装置を必要とするとともに、 作業者に、 I ア ダプタの動作仕様に関する知識、 スキルおよび時間を要するため、 コストお よび手間がかかるという問題があった。
[0006] 本発明は上記事情を鑑みてなされたものであり、 八 丨 アダプタの正常性 を容易に判定することが可能な八 I アダプタ試験システム、 八 I アダプ 夕試験支援装置、 I アダプタ試験支援方法、 および、 I アダプタ試 験支援プログラムを提供することを目的とする。
課題を解決するための手段
[0007] 上記の課題を解決するための、 本発明の八 丨 アダプタ試験システムは、 所定サービスの八 I に関する八 I アダプタの正常性判定試験を支援する 八 I アダプタ試験支援装置と、 前記 ? I アダプタ試験支援装置に接続さ れた開発担当者端末と、 前記 ? I アダプタ試験支援装置および前記 I アダプタ試験支援装置に接続されたサービス I模擬装置とを備えた八 I アダプタ試験システムにおいて、 前記開発担当者端末は、 前記 I アダ プタ試験支援装置に、 N o r t h B o u n d - A P I ( 巳一八 1) 仕様 を規定した第 1仕様書データと、 サービス八 I仕様を規定した第 2仕様書 データと、 前記正常性判定試験に用いる試験用パラメータと、 前記八 I ア ダプタへの入力信号である第 1 八 丨 リクエストを前記八 丨 アダプタによ り変換した後の第 2八 I リクエストに対する応答データを生成するための サービス模擬データと、 を送信するデータ送信部と、 前記データ送信部から データを送信したことにより前記 I アダプタ試験支援装置から送信され る試験結果情報を取得する試験結果情報取得部とを有し、 前記サービス八 丨模擬装置は、 前記八 I アダプタの正常性判定試験を行うために、 前記第 2 /\ 9 リクエストに対する応答である第 2八 丨 レスポンスを送信するサ —ビス ? 丨模擬機能実行部を有し、 前記 ? I アダプタ試験支援装置は、 \¥02020/175161 3 卩(:171?2020/005619
前記開発担当者端末から送信された前記第 2仕様書データと、 前記サービス 模擬データとを用いて、 前記第 2八 I リクエストに対するスタブを生成し 、 前記サービス ? I模擬装置の前記サービス ? I模擬機能実行部に配備 させるために送信するサービス 丨模擬機能配備部と、 前記開発担当者端 末から送信された第 1仕様書データと、 前記試験用パラメータとに基づいて 、 前記正常性判定試験に用いる第 1 八 I リクエストに含めるクエリバター ンを生成し、 前記クエリパターンごとに、 前記サービス模擬データを用いて 、 期待される応答内容を示した試験シナリオを生成する試験シナリオ作成部 と、 生成した前記試験シナリオを実行させる試験シナリオ実行部と、 前記第 2 /\ 9 レスポンスが前記八 丨 アダプタによって変換された第 1 八 丨 レ スポンスを受信し、 前記クエリパターンごとに、 期待される応答であるか否 かにより正常性判定を行う試験結果情報生成部とを有することを特徴とする 発明の効果
[0008] 本発明の八 丨 アダプタ試験システム、 八 丨 アダプタ試験支援装置、 八 丨 アダプタ試験支援方法、 および、 八 I アダプタ試験支援プログラムに よれば、 八 丨 アダプタ作成装置によって作成された八 丨 アダプタの正常 性を容易に判定することが可能になる。
図面の簡単な説明
[0009] [図 1]本発明の一実施形態による八 I アダプタ試験システムの構成を示すブ ロック図である。
[図 2]本発明の一実施形態による八 I アダプタ試験システムの動作を示すシ _ケンス図である。
[図 3]本発明の一実施形態による八 I アダプタ試験システムの八 I アダプ 夕試験支援装置で生成される、 (3) クエリパターン情報の一例、 (匕) 試 験シナリオ情報の一例、 および、 (〇) 模擬変換処理で期待される応答内容 が得られたか否かを確認する処理を示す情報の一例である。
[図 4]_実施形態による八 I アダプタ試験システムの八 I アダプタ試験支 援装置で生成される試験結果情報の一例である。
発明を実施するための形態
[0010] 以下、 本発明の実施形態として、 卸サービス Xの A P I に関して作成され た卸サービス A P 丨 アダプタ Yの正常性を判定するための試験処理を行う A P I アダプタ試験システムについて説明する。
[0011] á一実施形態による A P I アダプタ試験システムの構成 ñ
本実施形態による A P I アダプタ試験システムは、 図 1 に示すように、 対 象の A P I アダプタ Yの正常性判定試験を行う開発担当者が操作する開発担 当者端末 1 〇と、 当該正常性判定試験を支援する A P I アダプタ試験支援装 置 20と、 開発担当者端末 1 0および A P I アダプタ試験支援装置 20に接 続された卸サービス A P 丨模擬装置 30とを備える。
[0012] 開発担当者端末 1 0は、 データ記憶部 1 1 と、 データ送信部 1 2と、 試験 結果情報取得部 1 3とを有する。 データ記憶部 1 1は、 第 1仕様書データと しての N B— A P 丨 (Northbound API) 仕様書データ D1、 第 2仕様書データ としての卸サービス A P 丨仕様書データ D2、 試験用パラメータ D3、 および 卸サービス模擬データ D4を記憶する。 N B— A P 丨仕様書データ D1は、 試 験対象の A P I アダプタ Yによって変換される前の卸サービス Xの N B_ A P I仕様を規定するための swagger specフアイルで構成された A P 丨仕様書 データである。 卸サービス A P 丨仕様書データ D2は、 A P I アダプタ Yによ って A P 丨信号が変換された卸サービス A P 丨仕様を規定するための A P I 仕様書データである。 試験用パラメータ D3は、 A P 丨 アダプタ Yに入力する N B— A P I信号の中の、 当該正常性判定試験処理に用いる試験用パラメー 夕を示す情報である。 卸サービス模擬データ D4は、 A P I アダプタ Yへの入 力信号である第 1 A P 丨 リクエストを A P 丨 アダプタ Yにより変換した後の 第 2A P 丨 リクエストに対する応答データを生成するためのデータである。
[0013] データ送信部 1 2は、 開発担当者の操作に基づいて、 データ記憶部 1 1 に 記憶されたデータが保持されたファイル情報を、 A P I アダプタ試験支援装 置 20に送信する。 試験結果情報取得部 1 3は表示装置で構成され、 A P I \¥02020/175161 5 卩(:171?2020/005619
アダプタ試験支援装置 2 0から送信された試験結果情報を取得して出力する
[0014] I アダプタ試験支援装置 2 0は、 ファイル読み込み部 2 1 と、 卸サー ビス I模擬機能コード生成部 2 2と、 卸サービス I模擬データ投入 部 2 3と、 卸サービス 丨模擬機能配備部 2 4と、 試験シナリオ作成部 2 5と、 試験シナリオ実行部 2 6と、 試験結果情報生成部 2 7とを有する。
[0015] ファイル読み込み部 2 1は、 開発担当者端末 1 0から送信されたファイル 情報を読み込む。 卸サービス八 丨模擬機能コード生成部 2 2は、 開発担当 者端末 1 0から送信されたファイル情報中の卸サービス八 丨仕様書データ 口2を用いて、
Figure imgf000007_0001
のテーブルのソースコード情報を生成する。 卸サー ビス 丨模擬データ投入部 2 3は、 卸サービス 丨模擬機能コード生成 部 2 2で生成されたテーブルのソースコード情報に、 卸サービス模擬データ 口4中のデータを揷入する。
[0016] 卸サービス 丨模擬機能配備部 2 4は、 開発担当者端末 1 0から送信さ れた第 2仕様書データ 02と、 卸サービス模擬データロ4とを用いて、 第 2八 丨 リクエストに対するスタブを生成し、 卸サービス八 丨模擬装置 3 0の 卸サービス I模擬機能実行部 3 1 に配備させるために送信する。
[0017] 試験シナリオ作成部 2 5は、 開発担当者端末 1 0から送信された N 6—八 丨仕様書データロ1と試験用パラメータ03とに基づいて、 正常性判定試験 に用いる第 1 八 丨 リクエストに含めるクエリバターンを生成し、 クエリパ ターンごとに、 サービス模擬データを用いて、 期待される応答内容を示した 試験シナリオを生成する。
[0018] 試験シナリオ実行部 2 6は、 生成した試験シナリオを実行させ、 その応答 結果を受信する。 試験結果情報生成部 2 7は、 第 2八 I レスポンスが八 I アダプタ丫によって変換された第 1 八 丨 レスポンスを受信し、 クエリパ ターンごとに、 期待される応答であるか否かにより正常性を判定して当該正 常性判定試験の試験結果情報を生成し、 開発担当者端末 1 〇に送信する。
[0019] 卸サービス八 丨模擬装置 3 0は、 八 丨 アダプタの正常性判定試験を行 うために、 第 2A P 丨 リクエストを受信し、 それに対する応答である第 2 A P I レスポンスを送信する卸サービス A P I模擬機能実行部 3 1 を有する。
[0020] á一実施形態による A P I アダプタ試験システムの動作 ñ
次に、 本実施形態による A P I アダプタ試験システムの動作について、 図 2のシーケンス図を参照して説明する。
[0021] まず、 開発担当者が A P I アダプタ Yの正常性判定試験処理を実行するた めの操作を行うと (S 1の 「YES」 ) 、 開発担当者端末 1 0のデータ送信部 1 2により、 データ記憶部 1 1 に記憶された N B— A P 丨 (Northbound API) 仕様書データ D1、 卸サービス A P 丨仕様書データ D2、 試験用パラメータ D3 、 および卸サービス模擬データ D4が保持されたファイル情報が、 A P I アダ プタ試験支援装置 20に送信される (S 2) 。
[0022] A P I アダプタ試験支援装置 20では、 開発担当者端末 1 0から送信され たファイル情報がファイル読み込み部 2 1で読み込まれる (S 3) 。 ファイ ル読み込み部 2 1で当該ファイル情報が読み込まれると、 卸サービス A P 丨 模擬機能コード生成部 22により、 卸サービス A P 丨仕様書データ D2を用い て PostgreSQLのテーブルのソースコード情報が生成され、 卸サービス A P 丨 模擬機能配備部 24で取得される (S4) 。 そして、 卸サービス A P I模擬 データ投入部 23により、 卸サービス A P 丨模擬機能配備部 24で取得され た PostgreSQLのテーブルのソースコード情報に卸サービス模擬データ D4中の データが挿入される (S 5) 。 さらに、 卸サービス A P 丨模擬機能配備部 2 4は、 第 2A P 丨 リクエストに対するスタブを生成し、 卸サービス A P 丨模 擬装置 30に送信する (S 6) 。
[0023] 卸サービス A P I模擬装置 30では、 卸サービス A P I模擬機能配備部 2 4から送信されたスタブを受信し、 配備する (S 7) 。 例えば、 卸サービス A P I模擬装置 30としての仮想マシンが起動されるかまたは、 docker comp oseにより卸サービス A P 丨模擬装置 30が起動され、 当該スタブが配備され る。
[0024] 一方、 A P I アダプタ試験支援装置 20の試験シナリオ作成部 25では、 \¥02020/175161 7 卩(:171?2020/005619
ファイル読み込み部 2 1で読み込まれたファイル情報の 巳 _ 丨仕様書 データロ 1と試験用パラメータ 03とに基づいて、 正常性判定試験に用いる第 A P リクエストに含めるクエリパターンとして、 巳一八 I仕様書デ —タデ—夕〇 1の中で、 当該正常性判定試験処理に用いるパラメータの組み合 わせによる、 複数のクエリパターン情報巳が生成される (図 3 (3) 参照) 。 そして、 生成されたクエリバターン情報巳に関する 巳_八 丨仕様書デ —夕 0 1中の情報と卸サービス模擬データ 04とから、 クエリバターン情報巳 ごとに、 試験対象の I アダプタ丫で変換された |信号で取得される ことが期待される応答内容を示した情報が、 試験シナリオ情報 として生成 される (図 3 (匕) 参照) (3 8) 。
[0025] 試験シナリオ作成部 2 5で試験シナリオ情報が生成されると、 試験シナリ 才実行部 2 6により実行され、 八 丨 アダプタへ 巳一八 丨 リクエストが 入力される (3 9) 。 八 丨 アダプタにより、 巳_八 丨 リクエストが、 卸サービス八 丨 リクエストに変換され、 卸サービス八 丨模擬装置 3 0へ 、 リクエストが送られる。 卸サービス八 丨模擬装置 3 0の卸サービス八 I模擬機能実行部 3 1では、 卸サービス 丨 リクエストに対する応答であ る卸サービス八 丨 レスポンスを生成する (3 1 0) 。 八 丨 アダプタでは 、 再び、 卸サービス八 丨 レスポンスの変換を行い、 N 6—八 丨 レスボン スを生成し、 丨 アダプタ試験支援装置 2 0の試験シナリオ実行部 2 6へ 送られる (3 1 1) 。
[0026] そして、 試験結果情報生成部 2 7により、 このステップ 3 1 1で取得され た応答内容と、 ステップ 3 8で生成された試験シナリオ情報内の応答内容と に基づいて、 丨 アダプタにより期待される応答内容が得られたか否かが クエリパターンごとに判定される (図 3 (〇) 参照) 。 そして、 期待される 応答内容が得られたクエリパターンについては 「〇 」 情報が付加され、 期待 される応答内容が得られなかったクエリパターンについては 「 」 情報が付 加されることで、 図 4に示すような試験結果情報が生成される。 生成された 試験結果情報は、 試験結果情報生成部 2 7から開発担当者端末 1 0に送信さ \¥02020/175161 8 卩(:171?2020/005619
れ (31 2) 、 開発担当者端末 1 0の試験結果情報取得部 1 3で取得され、 出力される (31 3) 。
[0027] 以上の実施形態によれば、 所定の卸サービスの八 丨 に関して作成された 卸サービス八 I アダプタの正常性を、 簡易な処理で容易に判定することが できる。
符号の説明
[0028] 1 八 I アダプタ試験システム
1 0 開発担当者端末
1 1 データ記憶部
1 2 データ送信部
1 3 試験結果情報取得部
20 I アダプタ試験支援装置
2 1 フアイル読み込み部
22 卸サービス八 I模擬機能コード生成部
23 卸サービス八 丨模擬データ投入部
24 卸サービス ? I模擬機能配備部
25 試験シナリオ作成部
26 試験シナリオ実行部
27 試験結果情報生成部
30 卸サービス八 丨模擬装置
3 1 卸サービス八 I模擬機能実行部

Claims

\¥02020/175161 9 卩(:17 2020/005619 請求の範囲
[請求項 1 ] 所定サービスの八 I に関する八 I アダプタの正常性判定試験を 支援する I アダプタ試験支援装置と、 前記 I アダプタ試験支 援装置に接続された開発担当者端末と、 前記 ? I アダプタ試験支援 装置および前記 I アダプタ試験支援装置に接続されたサービス八 丨模擬装置とを備えた八 丨 アダプタ試験システムにおいて、 前記開発担当者端末は、
前記八 丨 アダプタ試験支援装置に、
Figure imgf000011_0001
I ( 巳一八 丨) 仕様を規定した第 1仕様書データと、 サービス八 丨仕様を規定した第 2仕様書データと、 前記正常性判定試験に用い る試験用パラメータと、 前記八 I アダプタへの入力信号である第 1 八 丨 リクエストを前記八 丨 アダプタにより変換した後の第 2八 I リクエストに対する応答データを生成するためのサービス模擬デ_ 夕とを送信するデータ送信部と、
前記データ送信部からデータを送信したことにより前記 I アダ プタ試験支援装置から送信される試験結果情報を取得する試験結果情 報取得部と、
を有し、
前記サービス 丨模擬装置は、
前記八 I アダプタの正常性判定試験を行うために、 前記第 2八 I リクエストに対する応答である第 2八 丨 レスポンスを送信するサ —ビス I模擬機能実行部を有し、
前記 I アダプタ試験支援装置は、
前記開発担当者端末から送信された前記第 2仕様書データと、 前記 サービス模擬データとを用いて、 前記第 2八 丨 リクエストに対する スタブを生成し、 前記サービス八 丨模擬装置の前記サービス八 丨 模擬機能実行部に配備させるために送信するサービス ? I模擬機能 配備部と、 \¥02020/175161 10 卩(:171?2020/005619
前記開発担当者端末から送信された第 1仕様書データと、 前記試験 用パラメータとに基づいて、 前記正常性判定試験に用いる第 1 八 丨 リクエストに含めるクエリバターンを生成し、 前記クエリバターンご とに、 前記サービス模擬データを用いて、 期待される応答内容を示し た試験シナリオを生成する試験シナリオ作成部と、
生成した前記試験シナリオを実行させる試験シナリオ実行部と、 前記第 2八 丨 レスポンスが前記八 丨 アダプタによって変換され た、 第 1 八 丨 レスポンスを受信し、 前記クエリバターンごとに、 期 待される応答であるか否かにより正常性判定を行う試験結果情報生成 部と、
を有することを特徴とする八 I アダプタ試験システム。
[請求項 2] 所定のサービスを実行するために、 八 I アダプタの正常性判定試 験を行う I アダプタ試験支援装置であって、
開発担当者端末から送信された第 2仕様書データと、 サービス模擬 データとを用いて、 前記八 丨 アダプタへの入力信号である第 1 八 I リクエストを前記八 丨 アダプタにより変換した後の第 2八 丨 リ クエストに対するスタブを生成し、 サービス八 丨模擬装置に送信す るサービス ? I模擬機能配備部と、
前記開発担当者端末から送信された第 1仕様書データと、 試験用パ ラメータとに基づいて、 前記正常性判定試験に用いる第 1 八 丨 リク エストに含めるクエリバターンを生成し、 前記クエリバターンごとに 、 サービス模擬データを用いて、 期待される応答内容を示した試験シ ナリオを生成する試験シナリオ作成部と、
生成した前記試験シナリオを実行させる試験シナリオ実行部と、 前記第 2八 丨 リクエストに対する応答である第 2八 丨 レスボン スが、 前記八 丨 アダプタによって変換された、 第 1 八 丨 レスボン スを受信し、 前記クエリパターンごとに、 期待される応答であるか否 かにより正常性判定を行う試験結果情報生成部と、 \¥02020/175161 11 卩(:171?2020/005619
を有することを特徴とする I アダプタ試験支援装置。
[請求項 3] 所定のサービスを実行するために、 八 I アダプタの正常性判定試 験を行う I アダプタ試験支援方法であって、
開発担当者端末から送信された第 2仕様書データと、 サービス模擬 データとを用いて、 前記八 丨 アダプタへの入力信号である第 1 八 I リクエストを前記八 丨 アダプタにより変換した後の第 2八 丨 リ クエストに対するスタブを生成し、 サービス八 丨模擬装置に送信す るサービス 丨模擬機能配備ステップと、
前記開発担当者端末から送信された第 1仕様書データと、 試験用パ ラメータとに基づいて、 前記正常性判定試験に用いる第 1 八 丨 リク エストに含めるクエリバターンを生成し、 前記クエリバターンごとに 、 サービス模擬データを用いて、 期待される応答内容を示した試験シ ナリオを生成する試験シナリオ作成ステップと、
生成した前記試験シナリオを実行させる試験シナリオ実行ステップ と、
前記第 2八 丨 リクエストに対する応答である第 2八 丨 レスボン スが、 前記八 丨 アダプタによって変換された、 第 1 八 丨 レスボン スを受信し、 前記クエリパターンごとに、 期待される応答であるか否 かにより正常性判定を行う試験結果情報生成ステップと、 を有するこ とを特徴とする I アダプタ試験支援方法。
[請求項 4] 請求項 2に記載した装置の機能を実施するための I アダプタ試 験支援プログラム。
PCT/JP2020/005619 2019-02-27 2020-02-13 Apiアダプタ試験システム、apiアダプタ試験支援装置、apiアダプタ試験支援方法、および、apiアダプタ試験支援プログラム Ceased WO2020175161A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/433,303 US11914505B2 (en) 2019-02-27 2020-02-13 API adapter test system, API adapter test assistance device, API adapter test assistance method, and API adapter test assistance program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019033972A JP7157335B2 (ja) 2019-02-27 2019-02-27 Apiアダプタ試験システム、apiアダプタ試験支援装置、apiアダプタ試験支援方法、および、apiアダプタ試験支援プログラム
JP2019-033972 2019-02-27

Publications (1)

Publication Number Publication Date
WO2020175161A1 true WO2020175161A1 (ja) 2020-09-03

Family

ID=72238274

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2020/005619 Ceased WO2020175161A1 (ja) 2019-02-27 2020-02-13 Apiアダプタ試験システム、apiアダプタ試験支援装置、apiアダプタ試験支援方法、および、apiアダプタ試験支援プログラム

Country Status (3)

Country Link
US (1) US11914505B2 (ja)
JP (1) JP7157335B2 (ja)
WO (1) WO2020175161A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022172433A1 (ja) * 2021-02-15 2022-08-18 日本電信電話株式会社 テストコード生成装置、及びテストコード生成方法、並びにテストコード生成プログラム

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115389904B (zh) * 2022-07-12 2024-11-05 浙江众合科技股份有限公司 一种轨道交通内异构处理器单板的自动化测试系统及方法
CN117478570B (zh) * 2023-12-27 2024-03-22 深圳万物安全科技有限公司 基于容器化技术的设备测试方法、装置及存储介质
US12537881B2 (en) * 2024-06-12 2026-01-27 Oracle International Corporation Service model engine(s) for generating service delivery models from vendor API swagger

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009512063A (ja) * 2005-10-12 2009-03-19 マイクロソフト コーポレーション ソフトウェア・アドイン・コンポーネントの発見、資格認定、および起動すること

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10248472B2 (en) * 2015-11-02 2019-04-02 At&T Intellectual Property I, L.P. Recursive modularization of service provider components to reduce service delivery time and cost
US11734153B2 (en) * 2021-09-20 2023-08-22 Salesforce, Inc. Automated discovery of API endpoints for health check and automated health check generation
US11755468B2 (en) * 2021-09-20 2023-09-12 Salesforce, Inc. Automated generation of load tests for API testing
US11704187B1 (en) * 2022-01-18 2023-07-18 Bank Of America Corporation Automated application programming interface (API) route testing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009512063A (ja) * 2005-10-12 2009-03-19 マイクロソフト コーポレーション ソフトウェア・アドイン・コンポーネントの発見、資格認定、および起動すること

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TAKE, NAOKI ET AL., LECTURE PROCEEDINGS 2 OF THE 2018 COMMUNICATION SOCIETY CONFERENCE OF IEICE, 14 September 2018 (2018-09-14), pages 262, ISSN: 1349-1415 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022172433A1 (ja) * 2021-02-15 2022-08-18 日本電信電話株式会社 テストコード生成装置、及びテストコード生成方法、並びにテストコード生成プログラム
JP7545078B2 (ja) 2021-02-15 2024-09-04 日本電信電話株式会社 テストコード生成装置、及びテストコード生成方法、並びにテストコード生成プログラム
US12536095B2 (en) 2021-02-15 2026-01-27 Ntt, Inc. Test code generator, test code generation method, and, test code generation program

Also Published As

Publication number Publication date
JP2020140331A (ja) 2020-09-03
JP7157335B2 (ja) 2022-10-20
US20220138091A1 (en) 2022-05-05
US11914505B2 (en) 2024-02-27

Similar Documents

Publication Publication Date Title
WO2020175161A1 (ja) Apiアダプタ試験システム、apiアダプタ試験支援装置、apiアダプタ試験支援方法、および、apiアダプタ試験支援プログラム
CN108934037B (zh) 移动终端测试装置及其频率信息设定方法
CN110659206A (zh) 基于微服务的模拟架构建立方法、装置、介质及电子设备
CN109376088B (zh) 一种自动化测试系统及自动化测试方法
CN106445548B (zh) 一种测试包下发方法和装置
JP7136823B2 (ja) 移動端末試験装置、移動端末試験システムとnsaの試験方法
WO2019062634A1 (zh) 通信方法及装置
JP2011041455A (ja) 変電自動化システムレポート通信試験装置およびその方法
WO2020237581A1 (zh) 使用终端设备打印虚拟机中的文件的方法、装置及系统
CN114116487B (zh) 压力测试方法、装置、电子设备及存储介质
JP2019176367A (ja) 移動端末試験装置、移動端末試験システムと移動端末試験方法
CN113986270A (zh) 分布式应用部署方法、装置、存储介质及电子设备
KR20180061589A (ko) 소프트웨어 빌드 시스템 및 이를 이용한 소프트웨어 빌드 방법
JP7144467B2 (ja) 移動端末試験システム、移動端末試験装置及び移動端末試験システムの制御方法
CN115422298B (zh) 接口信息同步方法、装置、计算机设备和存储介质
JP6802354B2 (ja) 通信試験装置、通信試験方法及びプログラム
JP5545846B2 (ja) シーケンス試験装置及びシーケンス試験方法
JP6658494B2 (ja) 作業支援装置、作業支援システム、作業支援方法、プログラム、および記録媒体
KR20160004030A (ko) 단말 기기의 시험 장치, 시스템 및 제어 방법
CN110225097B (zh) 一种信息处理方法、设备及存储介质
JP2020061056A (ja) ライセンス管理装置とライセンス管理方法
CN115495195A (zh) 一种数据处理方法、装置及相关设备
CN115047312A (zh) 基于gpib协议的集成电路芯片测试方法、上位机及测试系统
US10977146B2 (en) Application operation monitoring apparatus and application operation monitoring method
CN113448791A (zh) 接口检测方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20763752

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20763752

Country of ref document: EP

Kind code of ref document: A1