Hi, As the title suggests, I'd like to load/call my test method defined in a uiautomator test case that are packed in a jar file from within another uiautomator test case.
Suppose TestCase1.jar has a method sampleUiTest that goes and clickS Settings using uiautomator APIs. My TestCase2.jar first presses home button on Android device and then wants to dynamically load TestCase1.jar and invokes sampleUiTest. In java it is possible to load a jar file dynamically and get hold of its methods and invoke them using UrlClassLoader, Class, Method and ... It seems it is possible to dynamically load a jar file from within an android application using DexCalssLoader. DexCalssLoader has some input parameters such as context.getClassLoader(). So, we need context. But, uiautomator test cases are not application and I am wondering what to pass to DexCalssLoader as a context. Your help and insight is very much appreciated. Thanks -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
