home *** CD-ROM | disk | FTP | other *** search
Wrap
Java Source | 1999-02-11 | 1.5 KB | 60 lines
/** Generated by JavaStar Java GUI Testing Tool * Do not modify anything before the setup() method */ import suntest.javastar.lib.*; import java.awt.*; import NameData.*; public class GetSearchResults extends Script { static int Do_Not_Remove_This_JavaStar_Identifier; private static String Name = "GetSearchResults"; private static GetSearchResults X = new GetSearchResults(); private static String[] Args = {}; public String[] getAppArgs(){ return Args; } public String getAppClass(){ return "namedb"; } public void run() throws Throwable { namedb.main(Args); } public static void main(String[] args) throws Throwable { setup(); try{ args = JS.processPlayerArgs(args); X.setGold(JS.goldenDirectory(Name,null)); JS.playbackInit(Name); JS.startApplication(X); X.play(args); cleanup(); JS.playbackEnd(Name,true); } catch(Throwable t){ cleanup(); JS.playbackEnd(Name,t); } } public static void setup() throws Throwable { } public static void cleanup() throws Throwable { } public void play(String[] args) throws Throwable { JS.frame("Search").button("Search").buttonPress(); JS.frame("Search").member("java.awt.List").verifyAnyMethod(this,false,true,"getItemCount",new Integer(1), "Verify expected number of matches returned"); JS.frame("Search").member("java.awt.List").multiClick(22,6,16,1); JS.frame("Search").member("java.awt.List").select(args[0]); JS.frame("Search").button("View Result").buttonPress(); } }