0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Servicenow】ATFのテスト再利用化方法

Posted at

はじめに

ServiceNowのATF(Automated Test Framework)にはReusable Testsという便利な機能がYokohamaから追加されました。この記事では、Reusable Testsの使い方を紹介します。

✅ Reusable Testとは?

Reusable Testsとは、他のATFテストケースの中から呼び出して使える「部品のようなテスト」です。共通処理(ログイン、レコード作成など)を分離しておくことで、以下のメリットがあります。

  • テストの作成スピードアップ
  • メンテナンス性の向上
  • 複数のテストケースで共通ロジックを一元管理

🛠 Reusable Testの作成方法

1. 「Reusable Test」を選んで新規作成

  • メニューで Automated Test Framework > Reusable Tests を開く
  • 「New」ボタンを押下
  • 各種値を入力する
    • CategoryはATFのTests内で呼び出す際に便利なため、設定推奨

image.png

2. 再利用可能なTest Stepsを作成する

  • Test Stepsを作成する
  • Input/OutputのVariablesも設定可能

image.png

:star:Reusable Testを呼び出す

  • メニューで Automated Test Framework > Tests を開く
  • Testsを開く
  • Add Test Stepを押下
  • Reusable Testで設定したカテゴリからTestを呼び出す

image.png

:zap:Testを実行する

  • Run Test を押下
  • Testの実行結果が確認できる

image.png

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?