| || |
I'm new to JavaStar and I have difficulties in understanding the difference between Inspect, Verify and Synchronize.
The Problem: If I use Inspect it's possible to evaluate getRowCount for a JTable. But I'd like to do this in a test-script. What do I have to do?
Markus Winkler, Software-Engineer
Re: JTables: getRowCount
Once you have a JSComponent reference to a JTable item, you can directly make a call to it's method "getRowCount()" like:
int count = myJTable.getAnyMethod( "getRowCount" );
// - this will output results to test log
// and return true/false depending on results
// of test.
myJTable.verifyAnyMethod( scriptname, false, false, << this >>, << expected count >>, << string describing test purpose >> );
Hope this helps...
- mark young / software engineer