Presentation on theme: "Tech Next - -AMIT DIXIT -DIPESH BHATEWARA Cross Platform UI testing using Sikuli."— Presentation transcript:
Tech Next - -AMIT DIXIT -DIPESH BHATEWARA Cross Platform UI testing using Sikuli
Tech Next - Objective Testing of mobile based application Current platform specific tools Challenges Generic Solution For All The Platforms
Tech Next - Mobile Platforms And Testing Tools Android Android Instrumentation RobotiumSeleniumdroid iOS UI AutomationFoneMonkeyFrank Symbian CTS (Compatibility Test Suite)
Tech Next - Android Android Instrumentation Instrumentation framework based on JUINT3 Framework supports activities, toasts, context menus etc. Robotium Extends Android Instrumentation Framework Can develop powerful test cases Can handle multiple activities Blazing fast test execution Runs on a device Selenium droid Runs in android browser Use native touch events to emulate user interaction Paid Tool See Test
Tech Next - Challenges Generic Challenge Diversity of devices /platforms Application complexity Technical Challenge Large no of test cases Verification of UI
Tech Next - Solution Test Automation Generic Way for Test Automation on multiple platforms(Use tools like Sikuli). This will solve maintenance problem. Build Reliable and comprehensive test framework Benefits Cost Reduction Increased productivity Better application Quality
Tech Next - Nature of Mobile Applications (xcode – objective C) Calculator(XC ODE – Objective C) (java – android SDK) Calculator (java- android SDK) (webos – JS/CSS) Calculator (webos – JS/CSS) Application (Calculator)
Tech Next - Approach to solve the problem Image based test automation Automate user operations eg. Click, type, drag- drop, mouse actions etc. Visual verification of the expected output Not dependent on platform underneath Can be used to automate emulator as well as device.
Tech Next - Advantages of the approach Can accurately test GUI and rendering of applications. Write test outside the device Can be used to automate multiple devices without getting into details of each platform technology Can perform actions on Emulator (Virtual Boxes) Easy to automate.
Tech Next - Limitations of the approach Highly depends on the Resolution. Can not run in background. Dynamic paths are tricky to automate.
Tech Next - What is Sikuli? Visual technology to automate GUI using images. MIT research project. Open Source license. Sikuli IDE Sikuli Script API Automates anything on screen without internal API's support Works on Windows, Mac, Linux.
Tech Next - Sample Sikuli Script
Tech Next - DEMO
Tech Next - Solution proposed in demo to test Calculator Use Java for test Project, Use Junit Import Sikuli Script API Write single test which will use an interface for calculator operations Implement interface for Android and Iphone with different set of images required for automation Run same test by changing the configuration on multiple emulators/devices Can see the device on your machine using VNC and use that view to run your test on.