assertj / assertj/assertj-swing

FEST aborts TestNG Test Execution

オープン
#46 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug import from fest-swing Major
主要言語
Java
スター
121
フォーク
52
PR マージ指標
30日以内にマージされた PR はありません

説明

_Issue by **[Alex Ruiz](http://jira.codehaus.org/secure/ViewProfile.jspa?name=alexruiz)** from Sun, 2 Aug 2009 23:56:23 -0500_
_Originally opened as http://jira.codehaus.org/browse/FEST-208_

---

"ScreenshotOnFailureListenerTest " class seems to be capable of taking screen shot only once in test failure for a method, when I combine this with data driven testing of TestNG, my test execution is aborted as FEST tries to save another image on same path, and I get exception like this -

*******************

Exception in thread "main" org.fest.util.FilesException: Unable to create the new file 'D:\Workspace\FunctionLibrary\reportng\SelTestAutomation Results\com.test.newtest.Login.login.png': a file was found with the same path

*******************

This happens cause "screenshotFileName" method would create same file name again and eventually fail in saving another image with same name in that location. May be we we could append UUID with it to make it unique for each instance of failure.

I could not find an url to browser source code locally and modify this method and build FEST for me, Could any one plase direct me to source core url?

Thanks in Advance,

Tarun K

---

votes (original issue): 1
watches (original issue): 0

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

ScreenshotOnFailureListenerTestと、報告書で言及されているscreenshotFileNameメソッドから始め、その後、TestNGのデータ駆動テストで失敗を再現します。繰り返し発生する失敗によってそれぞれ異なるスクリーンショットパスが生成され、テスト実行が中断されなくなったことを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。