From: Steven W. <na...@ya...> - 2004-12-28 09:25:38
|
Thank you, but I still found problem. Below is what I did: 1, launch the app under test and Shift-F2 to begin capture. 2, click the menu item in the app's main frame to bring up the dialog. 3, alt-shift-F1 to get the component ref for a component in the dialog. 4, shift-F2 to stop the capture. 5. close the dialog and go back to the abbot editor. After that as you said, I could access the component ref in the hierarchy windows. I then selected a attribute of the referenced component and click the 'assert' button, but nothing was really inserted ! I'v tried other order of the those steps listed above, but result was the same. --- Timothy Wall <tw...@us...> wrote: > You have to manually add the assert steps like thus: > > 1) use alt-shift-F1 to add a reference for the > component(s) in question > 2) dismiss the dialog > 3) select the desired reference in the hierarchy > browser; the the > actual component has been disposed, Costello will do > its best to figure > out the available attributes. Note that since > the component is no longer showing, the attribute > values may not be > what they were when the > comopnent was showing. > 4) add assertions as desired > > On Dec 27, 2004, at 9:12 PM, Steven Woody wrote: > > > hi, > > > > My GUI under test is a simple main frame which > popup > > (by calling a TDialog.show() method) a dialog when > a > > menu item was clicked. > > > > So I want to capture the sequence of actions and > to > > 'assert' that something in the dialog have proper > > attributes. But while I can use a shift-F1 key on > a > > component of the dialog, the costello itself is > > unaccessable, so I can not input any assertions or > do > > anything about test. After I closed the dialog, > the > > costello was active again but everything's already > > disappeared. > > > > I'v already set the 'threaded=true' in the launch > step > > as below: > > > > <launch args="[]" > > class="com.lczmsoft.octo.boundary.view.MainFrame" > > threaded="true" classpath= > > > "classes;lib/commons-beanutils.jar;lib/commons-digester.jar;lib/ > > > > commons-logging.jar;lib/dbunit-2.1.jar;lib/easymockclassextension.jar; > > > > lib/easymock.jar;lib/hibernate/c3p0-0.8.4.5.jar;lib/hibernate/cglib- > > > > full-2.0.2.jar;lib/hibernate/commons-collections-2.1.1.jar;lib/ > > > > hibernate/commons-dbcp-1.2.1.jar;lib/hibernate/commons-lang-1.0.1.jar; > > > > lib/hibernate/commons-logging-1.0.4.jar;lib/hibernate/commons-pool > > > > -1.2.jar;lib/hibernate/concurrent-1.3.3.jar;lib/hibernate/ > > > > connector.jar;lib/hibernate/dom4j-1.4.jar;lib/hibernate/ehcache > > > > -0.9.jar;lib/hibernate/hibernate2.jar;lib/hibernate/jaas.jar;lib/ > > > > hibernate/jboss-cache.jar;lib/hibernate/jboss-common.jar;lib/ > > > > hibernate/jboss-jmx.jar;lib/hibernate/jboss-system.jar;lib/hibernate/ > > > > jcs-1.0-dev.jar;lib/hibernate/jdbc2_0-stdext.jar;lib/hibernate/ > > > > jgroups-2.2.7.jar;lib/hibernate/jta.jar;lib/hibernate/junit-3.8.1.jar; > > > > lib/hibernate/log4j-1.2.8.jar;lib/hibernate/odmg-3.0.jar;lib/ > > > > hibernate/oscache-2.0.jar;lib/hibernate/proxool-0.8.3.jar;lib/ > > > hibernate/swarmca > > che-1.0r > > > c2.jar;lib/hibernate/xalan-2.4.0.jar;lib/hibernate/xerces-2.4.0.jar; > > > > lib/hibernate/xml-apis.jar;lib/itext-1.02b.jar;lib/iTextAsian.jar;lib/ > > > > jasperreports-0.6.3.jar;lib/jfcunit.jar;lib/junit-3.8.1.jar;lib/log4j > > > > -1.2.8.jar;lib/mysql-connector-java-3.0.16-ga-bin.jar" > > method="main"/> > > > > My Abbot version is 0.13.1, Java version is > 1.4.2_02. > > > > Did I miss anything? > > > > - > > narke > > > > > > > > __________________________________ > > Do you Yahoo!? > > Read only the mail you want - Yahoo! Mail > SpamGuard. > > http://promotions.yahoo.com/new_mail > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT > Products from real > > users. > > Discover which products truly live up to the hype. > Start reading now. > > http://productguide.itmanagersjournal.com/ > > _______________________________________________ > > abbot-users mailing list > > abb...@li... > > > https://lists.sourceforge.net/lists/listinfo/abbot-users > > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |