Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Robotium

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 29

Robotium

Here is where your presentation


begins
TABLE OF CONTENTS

01 02 03
BENEFITS OF
WHAT IS FEATURE OF USING
ROBOTIUM? ROBOTIUM ROBOTIUM
TABLE OF CONTENTS

04 05 06
NOTE WHEN
How to use USING
Robotium EXAMPLE ROBOTIUM
WHAT IS
ROBOTIUM?
01
Robotium
Robotium is an automated testing
library for mobile software
development, widely used in the field
of developing Android mobile
applications. Robotium allows
developers to create automated test
scripts to test the functionality and
performance of Android applications
automatically and reliably.
FEATURES OF
ROBOTIUM
02
Main Feature
1. Easy to use

2. Record and replay

3. Integration with build


tools

4. Support for multiple


Android Version
Main Feature
5. Support multiple
language

6. User-friendly report

7. Support for testing of


various component
Feature of Robotium

Easy to use Record and replay


Robotium provides a simple and Robotium allows testers to record
easy-to-use API for testers and and replay test cases, which can
developers to write test cases. It save time and reduce the risk
also supports both black-box and of human error.
white-box testing.
Feature of Robotium
Integration with Support for multiple
build tools Android version
Robotium can be easily Robotium supports testing on
integrated with various multiple Android versions,
build tools, such as Ant, from Android 1.6 to the latest
version.
Maven, and Gradle.
Feature of Robotium
Support multiple
languages User-friendly reports
Robotium supports testing Robotium generates user-
for applications in multiple friendly reports, which can
languages, including help testers and developers to
quickly identify and fix issues.
English, French, German,
and Spanish.
Benefits of
Robotium
03
Benefit of Robotium

Increase Improved test


efficiency coverage

Early bug
detection Reusability
Robotium can automate the Robotium can help to
testing process, which can detect bugs and issues
save time and effort for early in the
testers and developers. It can development process,
also reduce the risk of human Improve which can reduce the
cost and time required
error and increase the speed test to fix them.
of testing.
coverage Reusability

Increase
Robotium can help to Early bug Test cases written using
Efficiency Robotium can be reused
improve the test coverage detection across multiple versions of
of an Android application,
by allowing testers to test a an Android application,
wide range of scenarios which can save time and
and use cases. effort for testers and
developers.
How to use
Robotium
To use Robotium in your
04
Android test project, you need
follow the steps below
To guarantee quality of your Android
application, you should follow the
procedure below

1. Design test specification


2. Develop test program
3. Excute Test case on target device
4. Collect test result

Android application Testing


procedure
STEP 1) Design test
specification
● This is the first step to test your
application.In this step you Define target
to be test. In your Android application,
there’s many targets need to be tested
such as UI, Activity, components,
services. Clearly defining the target in
your application will help achieve wide
test coverage.
● Plan the test types should be conducted
(Unit test, Functional test, System test).
● Design test cases for maximum coverage
but minimize number of test cases. The
more code is tested more are chances of
early bug detection. Android application Testing
procedure
Step 2) Write a test program
• Display a text “Hello
world!” on screen.
• Display a message
HelloAndroid when user
press “Start” button.
Step 3) Run test
• Connect Android device to
your PC (or start Emulator
in case you don’t have real
device).

• In your IDE, right click


Run as -> Android Unit
Test.
Step 3) Run test
• Connect Android device to
your PC (or start Emulator
in case you don’t have real
device).

• In your IDE, right click


Run as -> Android Unit
Test.
Step 4) Get test result

In this test program, 4 test methods are


executed. In this case, all test cases are
passed.

In case test case fails, the output is display


and show you which test cases failed
Example
05
Example
Note when using
Robotium
Here are some important notes to keep in
mind when using Robotium for
06
automated testing:
Notes
Setup can be
complex High resource usage
Setting up the test environment for Robotium can consume a lot of system
Robotium can be complex, especially resources, such as CPU and memory,
for beginners. It is important to follow especially when running large test
the setup instructions carefully and suites. It is important to ensure that the
ensure that all dependencies and test environment has sufficient
libraries are installed correctly. resources to support the testing
process..
Notes
Limited support for Limitations with
non-UI testing animations
Robotium is primarily designed for Robotium may have limitations
testing the UI components of Android when testing applications with
applications. It may not be suitable for complex animations or transitions,
testing non-UI components, such as
as it may not be able to capture the
network communication or data storage.
exact state of the application.
Notes

Maintenance overhead
Automated tests require maintenance,
especially when the application being
tested is updated or changed. It is
important to ensure that the test cases
are updated and maintained to reflect
any changes in the application.
Do you have any questions?

THANK youremail@freepik.com
+91 620 421 83
yourcompany.com

S
CREDITS: This presentation template was created by Slidesgo, including
icons by Flaticon, and infographics & images by Freepik
Please keep this slide for attribution

You might also like