About APIシミュレーション

APIシミュレーション helps you simulate service behavior, so you can continue testing even when real services are unavailable, still under development, or unstable.Whether you're working with internal systems or third-party services such as APIs, authentication, or credit checks, APIシミュレーション lets you build the virtual versions with which your test application needs to interact.

シミュレーションとは何のことですか?

シミュレーションとは、テスト環境で利用できない実際のサービスに代わって使用できる一連の仮想サービスと接続のことを意味します。仮想サービスでは、サービスと通信するために接続が必要です。これは、シミュレーションで接続先として指定した宛先や場所、例えばURLやポートなどからデータが送信または受信されることを意味します。

HTTP、HTTPS、IBM MQ、Kafka、RabbitMQ、ファイルなど、さまざまなメッセージ形式とプロトコルを使用してサービスと通信できます。

仮想サービスでは、他のサービスとの間で送受信するメッセージを定義します。これらのメッセージは、受信または送信のいずれかになります。メッセージの目的に応じて、受信メッセージから始めるか、送信メッセージから始めるかを決定します。

  • 特定の受信メッセージに応答を送信する場合は、ルールを定義することができます。APIシミュレーション applies this rule to all incoming messages.すべてのプロパティが一致した場合、応答としてメッセージが送信されます(トリガー)。

  • リクエストを送信し、特定のプロパティに対して受信したすべての応答メッセージを確認することで、サービスが期待通りに動作していることを確認できます(API 呼び出し)。

  • 複数のサービスからメッセージを受信したり、特定の順序で複数のサービスに応答したりする仮想サービスを定義することができます。

How APIシミュレーション works

APIシミュレーション is tailored to the needs of both testers and developers.まず最初に、Tosca Cloudで、または選択した統合開発環境(IDE)で、直接操作する必要があるサービスのシミュレーションをYAMLファイルとして作成します。If you already use Tosca OSV, you can also migrate your simulations (scenarios) to APIシミュレーション.

In Tosca Cloud, you can view all your simulations and see to which シミュレータAgent they are deployed.

Deploy simulations from Tosca Cloud to any シミュレータAgent on any machine and run them there.

The シミュレータAgent hosts simulations that you can run in your local environment on any machine.これらのシミュレーションは、メッセージを送信したり、リクエストを受信したり、実際のサービスのように応答します。

How APIシミュレーション works