CheckBoxProxy

Questo esempio CheckBoxProxy spiega come creare una nuova classe proxy e nuovi TestObject e come associarli al controllo javax.swing.JCheckBox. L'esempio funziona con l'esempio AUT (application-under-test).
Tempo richiesto: 15 minuti
Prerequisito: è necessario aprire la guida da Rational Functional Tester per importare gli esempi nel proprio spazio di lavoro.
Importazione degli esempi
  1. Per importare l'esempio nello spazio di lavoro Eclipse, fare clic su Ottenere l'esempio. È necessario importare tutti gli esempi forniti qui nello spazio di lavoro.
  2. Aprire la prospettiva Java per visualizzare gli esempi importati.
    L'esempio proxy contiene i seguenti file:
    • File sorgente proxy
      • CheckBoxProxy\src\sdk\sample\jfc\ExtendedCheckBoxProxy.java
      • CheckBoxProxy\CheckBoxProxy.rftcust
    • File sorgente TestObjects
      • ExtendedToggleGUITestObject\src\sdk\sample\ExtendedToggleGUITestObject.java (Java TestObject)
      • ExtendedToggleGUITestObject\SDK\Sample\ExtendedToggleGUITestObje ct.cs (.NET TestObject. See .NET CheckBox ProxySDK sample)
      • ExtendedToggleGUITestObject\ExtendedToggleGUITestObject.rftcust (Customization file for both Java and .NET TestObjects)
    • File di progetto Eclipse
      • CheckBoxProxy\.project
      • ExtendedToggleGUITestObject\.project
    • File binari
      • CheckBoxProxy\CheckBoxProxy.jar (Proxy Jar)
      • CheckBoxProxy\CheckBoxProxy.rftcust (Proxy Customization file)
      • ExtendedToggleGUITestObject\ExtendedToggleGUITestObject.jar (Java TestObject Jar)
      • ExtendedToggleGUITestObject\ExtendedToggleGUITestObject.dll (.NET TestObject assembly)
      • ExtendedToggleGUITestObject\ExtendedToggleGUITestObject.rftcust (Customization file for both Java and .NET TestObject)
    • L'esempio AUT contiene i seguenti file:
      • File di progetto Eclipse
        • CheckBoxApp\.project
      • File AUT (application-under-test)
        • CheckBoxApp\src\JCheckBoxApp.java
        • CheckBoxApp\bin\JCheckBoxApp.class
  3. Testare l'esempio proxy casella di spunta.

Feedback