SlideShare a Scribd company logo
Eggplant Functional
レッスン 9
実行結果とレポーティング
RunWithNewResults Command
スクリプトがマスタースクリプトからの通常のRunコマンドで実行され、実行が
失敗した場合には、スクリプトは独自のログファイルを出力せず、マスタースク
リプトの実行が停止される。
• RunWithNewResults を利用し回避できる。
• RunWithNewResultsで呼出されたスクリプトによって、結果ログ
(成功または失敗のステータスを含む)が生成される。
• マスタースクリプトが実行を継続し、独自のログファイルを生成できるように
する。
© Copyright 2019 Eggplant
Saving Results in a List
“RunWithNewResults”の後、”the result”を使用し、
スクリプトの実行に関する情報を抽出する。:
© Copyright 2019 Eggplant
The ScriptLogging Level
ScriptLoggingグローバルプロパティを使用して、スクリプトの実行時にログファイルに記録
されるイベントを制御する。
• 値: On (or true), off (or false), minimal, or silent
• デフォルト: On
• 説明:ScriptLoggingは、スクリプトの実行時にログファイルに記録されるイベントを
次のように制御する。:
• On: Log、LogWarning、LogErrorコマンド、およびSUTとのすべてのやり取り
が記録される。
• Off: Log、LogWarning、およびLogErrorコマンドのみが記録される。
• Minimal: LogWarningおよびLogErrorコマンドのみが記録される。
• Silent: ログファイルには何も記録されません。 (警告とエラーは引き続きカウン
トされる。)
例:
Set the ScriptLogging to Silent
SetOption Scriptlogging, On
© Copyright 2019 Eggplant
Sending Results via Email
• 適切にメール設定をすると、収集した結果をメールで送信できる。
• 結果をリストに保存するための前述のアプローチを使用すると、失敗した実行のログ
ファイルを添付するために使用するファイルパスのリストが提示される。
• 多数の添付ファイル(多くのログファイルなど)を追加すると、一部の電子メール
サーバー/サービスのサイズ制限をすぐに超える可能性があることに注意してください。
© Copyright 2019 Eggplant
BeginTestCase, EndTestCase
• BeginTestCaseコマンドを使用してテストケースを開き、EndTestCaseコマンドを
使用してテストケースを閉じる。 以下の例に示すように、各テストケースには名前が付
けられ、コマンドの後に引用符で囲まれる。
© Copyright 2019 Eggplant
BeginTestCase, EndTestCase
各テストケースについて収集される情報には、次のものが含まれる。:
• テストケースの期間(秒単位)
• テストケースが開いている間にログに記録された
[ Errors, Successes, Warnings, Exceptions logged ]
© Copyright 2019 Eggplant
Movie Recording
© Copyright 2019 Eggplant
Viewing Results
• スクリプト実行結果は結果ペインに表示される。
• 緑は成功を意味する。
• 赤は失敗を意味する。
• 黒はテストが中止されたことを意味する。
© Copyright 2019 Eggplant
Viewing Results (continued)
結果は、<Suite Folder> / Resultsの双方で表示できる。
• SuiteStatistics.csv / xml -各スクリプトの成功/失敗の概要を提供する。
• 各スクリプトフォルダー内において
• RunHistory.csv / xml -各スクリプト実行結果の要約を提供する。
• 各スクリプト実行フォルダー内において
• LogFile.txt / xml -詳細なスクリプト実行ログを提供する。
• スクリプトの実行が失敗した場合、またはCaptureScreenが使用された場
合においては、フォルダに画像ファイルが含まれる可能性がある。
© Copyright 2019 Eggplant
演習: Results and Reporting
サマリ:
• RunWithNewResults
• SUTは不要
演習:
1. Eggplant Functional Runメニューで、Image Updateをオフにする。
2. FailedScriptというスクリプトを作成する。 :
• スクリプトが失敗するようなものを書く。
3. SuccessScriptというスクリプトを作成する。
• スクリプトに簡単なLogSuccessメッセージを書き込む。
4. Masterというスクリプトを作成する。
• scriptLoggingを設定して、Log、LogWarning、LogError、お
よびLogSuccessメッセージのみを表示する。.
© Copyright 2019 Eggplant
演習: Results and Reporting
演習(続き):
• FailedScriptを実行してから、RunWithNewResultsを使用して
SuccessScriptを実行し、SuccessScriptが実行できることを確認
する。
• テストケースを開始する。
• 12345を67890回計算し、結果をログに記録する。
• テストケースを終了する。
• テストケースの期間をログに記録する。
© Copyright 2019 Eggplant

More Related Content

PPTX
Eggplant Functional - Lesson 8 (Japanese slides)
PPTX
Eggplant Functional - Lesson 11 (Japanese slides)
PPTX
Eggplant Functional - Lesson 10 (Japanese slides)
PPTX
Fuel php勉強会 1
PDF
Cake php + php unitによる実践的ユニットテスト
PDF
よりよいPHPUnitの実行方法を求めて
KEY
Unit testで定時帰宅!
PDF
CakePHP(例えば2系)のテスト
Eggplant Functional - Lesson 8 (Japanese slides)
Eggplant Functional - Lesson 11 (Japanese slides)
Eggplant Functional - Lesson 10 (Japanese slides)
Fuel php勉強会 1
Cake php + php unitによる実践的ユニットテスト
よりよいPHPUnitの実行方法を求めて
Unit testで定時帰宅!
CakePHP(例えば2系)のテスト

What's hot (17)

PPTX
Power shellmemo
PDF
CakePHP2.0 performance, upgrade shell
PDF
Jmeter20120421
PDF
RSpecによるRailsテスト入門 第五章 コントローラスペックの基礎
PDF
Session5 - LabVIEW NXG Training Course
PDF
Session3 - LabVIEW NXG Training Course
PDF
Casper導入資料
PPTX
システムパフォーマンス勉強会#6
PDF
Session8 - LabVIEW NXG Training Course
PDF
WordPressのテストとデバッグ方法
KEY
Jenkins javascript ci
PDF
Do not use document.write
PDF
JBoss AS7 rev3
PDF
JBoss AS 7 / EAP 6 modules and class loading
PDF
Module classloading
PPTX
Javaの速度比較
PPTX
Java fx勉強会lt 第8回
Power shellmemo
CakePHP2.0 performance, upgrade shell
Jmeter20120421
RSpecによるRailsテスト入門 第五章 コントローラスペックの基礎
Session5 - LabVIEW NXG Training Course
Session3 - LabVIEW NXG Training Course
Casper導入資料
システムパフォーマンス勉強会#6
Session8 - LabVIEW NXG Training Course
WordPressのテストとデバッグ方法
Jenkins javascript ci
Do not use document.write
JBoss AS7 rev3
JBoss AS 7 / EAP 6 modules and class loading
Module classloading
Javaの速度比較
Java fx勉強会lt 第8回
Ad

More from Eggplant (20)

PPTX
Eggplant Functional - Lesson 1 (Japanese slides)
PPTX
Eggplant Functional - Lesson 2 (Japanese slides)
PPTX
Eggplant Functional - Lesson 3 (Japanese slides)
PPTX
Eggplant Functional - Lesson 4 (Japanese slides)
PPTX
Eggplant Functional - Lesson 5 (Japanese slides)
PPTX
Eggplant Functional - Lesson 6 (Japanese slides)
PPTX
Eggplant Functional - Lesson 7 (Japanese slides)
PPTX
Eggplant AI - Lesson 5 Slides (Japanese)
PPTX
Eggplant AI - Lesson 3 Slides (Japanese)
PPTX
Eggplant AI - Lesson 6 Slides (Japanese)
PPTX
Eggplant AI - Lesson 2 Slides (Japanese)
PPTX
Eggplant AI - Lesson 1 Slides (Japanese)
PPTX
Strategy vs. Tactical Testing: Actions for Today, Plans for Tomorrow​
PPTX
AI based Testing in Finance & Retail Breakfast Briefing
PDF
6 Top Tips to a Testing Strategy That Works
PPTX
Importance of testing for the business
PDF
Shift Up
PDF
Test Automation Beyond Test Execution
PDF
Automation As An Ally
PDF
Digital Nation: United We Stand
Eggplant Functional - Lesson 1 (Japanese slides)
Eggplant Functional - Lesson 2 (Japanese slides)
Eggplant Functional - Lesson 3 (Japanese slides)
Eggplant Functional - Lesson 4 (Japanese slides)
Eggplant Functional - Lesson 5 (Japanese slides)
Eggplant Functional - Lesson 6 (Japanese slides)
Eggplant Functional - Lesson 7 (Japanese slides)
Eggplant AI - Lesson 5 Slides (Japanese)
Eggplant AI - Lesson 3 Slides (Japanese)
Eggplant AI - Lesson 6 Slides (Japanese)
Eggplant AI - Lesson 2 Slides (Japanese)
Eggplant AI - Lesson 1 Slides (Japanese)
Strategy vs. Tactical Testing: Actions for Today, Plans for Tomorrow​
AI based Testing in Finance & Retail Breakfast Briefing
6 Top Tips to a Testing Strategy That Works
Importance of testing for the business
Shift Up
Test Automation Beyond Test Execution
Automation As An Ally
Digital Nation: United We Stand
Ad

Eggplant Functional - Lesson 9 (Japanese slides)

Editor's Notes

  • #3: NOTES FOR PRESENTER -- Also mention runwithnewresults create separate logs for each script
  • #5: Values: On (or true), off (or false), minimal, or silent Default: On. Description: The ScriptLogging controls which events are recorded in the Log file as a script runs, as follows: On: Log, LogWarning, and LogError commands, and all interactions with the SUT are recorded. Off: Only Log, LogWarning, and LogError commands are recorded.. Minimal: Only LogWarning and LogError commands are recorded. Silent: Nothing is recorded in the Log file. (Warnings and errors are still counted.)
  • #9: NOTES FOR PRESENTER -- Talk about where this can be useful
  • #10: Open ePF and show a success, failed and aborted result For the failed result, please also show an automatic screen capture at the point of failure df df d
  • #11: Open an ePF suite folder and go through each log files mentioned above Show where the auto capture image file at the point of failure is stored df df d