2008-09-18 87 views
1

我們目前正在測試Java Swing應用程序的性能。我想知道是否有一個好的工具來實現這個自動化?這是自動GUI性能測試的最佳工具嗎?

+0

您是否想要測量GUI反應性或GUI背後的性能,例如從數據庫加載數據的時間? 您的GUI是否與應用程序的較低層分離? – philant 2008-10-11 13:46:14

回答

2

幾年前,我用JMeter來完成這樣的任務。我一般很喜歡使用它,但我從來沒有做過很多研究,還有什麼可用的,我不知道它是否仍然在積極開發。

2

聽一聽使用Ruby進行GUI測試的實用程序員的podcast

0

實用程序員在使用Ruby進行GUI測試時也提出了book

特別是,他們給出了大量使用JRuby測試搖擺應用的例子。

他們正在進行的測試主要是爲了測試功能,但我認爲在某些性能指標中添加並不難。

這樣做的好處是您獲得了很多靈活性,但它不是一個打包工具。

0

您可以嘗試使用CucumberSwinger以純英文爲Swing GUI應用程序編寫功能驗收測試。 Cucumber有一個包含分析信息的輸出格式器。

黃瓜可以讓你編寫測試是這樣的:

Scenario: Dialog manipulation 
    Given the frame "SwingSet" is visible 
     And the frame "SwingSet" is the container 
    When I click the menu "File/About" 
    Then I should see the dialog "About Swing!" 
    Given the dialog "About Swing!" is the container 
    When I click the button "OK" 
    Then I should not see the dialog "About Swing!" 

看看這個Swinger video demo看到它在行動。