Demo App | ||
A | Requirement : | |
1 | Eclipse 3.7 | |
2 | ADT Plugin | |
3 | Android SDK | |
4 | MonkeyTalk (For Automation) | |
5 | ADJT Plugin | |
B | Test Scenarios | |
TestCase | Expected Result | |
1 | Login Tab | |
i | Verified the length of username and password field | Username and Password field should accept values of 4 character and more (for less than 4 character it should show message) |
ii | Verify the login page title after clicking on the login tab | It should be “Login” |
iii | Verified that the pre-filled gray text appear and is it aligned correctly in the fields | It is observed that expected pre-filled gray text appears with correct allignment |
iv | Verified the error message appears in case of any field left blank | Error message “Sorry! Username must be 4 or more characters.” should be shown |
v | Verified that Username and password field get highlighted when the cursor is in that field | The field should get highlighted when the cursor is in that field |
vi | Verify the welcome message after login | Welcome message should be shown as “Welcome, Username! |
vii | Log out as a user | It should be properly redirect to the Login page |
viii | Verified the aligment of each field on login screen and welcome screen | Alignment of each field should be proper. |
ix | Verify the spelling mistakes/typos | There should not be any spelling mistakes/typos |
2 | Forms Tab | |
TestCase | Expected Result | |
i | Verify the form page title after clicking on the login tab | It should be “Forms” |
ii | Check whether it should allow the user to select only one Radio button at a time i.e A,B or C | One option out off A,B ,C should be selected. |
iii | Verify that Selected Radio button option get highlighted | Selected Radio button should be highlighted by different color. |
iv | Check and Uncheck the check box control | ON lable and green tick sign should be appear for checked chechbox and OFF lable and no sign should be appear for unchecked chechbox |
v | Check the alignment of the label for the check box | Alignment should be proper. |
vi | Verified that on clicking on dropdown a list having some values should be displayed | Dropdown list with some values should be displayed |
vii | Verify that dropdown list is scrollable | List should be scrollable |
viii | Verify that Selected value of dropdownlist is display in textfield | Selected value of dropdownlist should displayed in textfield |
ix | Verify that dropdown values is non editable | Dropdown values should not be editable by user. |
x | Verify that we should not be able to type text in the box | |
xi | Verified that dropdown values should be Displayed according to the Atomic number | |
xii | Verify the minimum and maximum limit og slider | It should be 0-100 |
xiii | Verifiy the selected values of dropdown,radio button,checkbox and slider are displayed below the slider control | selected values of dropdown,radio button,checkbox and slider should be displayed below the slider control and separated by pipe symbol |
xiv | Verify that tabbing is correct | Tabbing should be proper |
xv | Verify the spelling mistakes/typos | There should not be any spelling mistakes/typos |
xvi | Verifiy the aligment of each field onForms screen | Alignment of each field should be proper. |
3 | Hierarchy Tab | |
TestCase | Expected Result | |
i | Verified that on clicking on Hierarchy tab a list/table having some values should be displayed | List /Table with some values should be displayed . |
ii | Verified that List /Table values should be Displayed according to the Atomic number | |
iii | Verify that List /Table is scrollable | List /Table should be scrollable |
iv | Verify that only one value can be selected from List /Table | |
v | Verify that after selecting a value or element from list all information regarding that element is displayed | All information(Atomic no,Full name of element etc) regarding that element should be displayed |
vi | Verify the spelling mistakes/typos | There should not be any spelling mistakes/typos |
vii | Verifiy the aligment of each item/value on Hierarchy screen | Alignment of each element should be proper. |
4 | Web Tab | |
TestCase | Expected Result | |
i | Verified that the pre-filled text appear and is it aligned correctly in the fields | Pre-filled text should appear and it should aligned correctly in the fields |
ii | Verified that fields get highlighted when the cursor is in that field | Fields should get highlighted when the cursor is in that field |
iii | Verified that on clicking on dropdown a list having some values should be displayed | Dropdown list with some values should be displayed |
iv | Verify that Selected value of dropdownlist is display in textfield | Selected value of dropdownlist should displayed in textfield |
v | Verify that we can select only one value from dropdown | One value should be selected at a time |
vi | Verify that dropdown values is non editable | Dropdown values should not be editable by user. |
vii | Check whether it should allow the user to select only one Radio button at a time i.e A,B or C | One option out off A,B ,C should be selected. |
viii | Verify that Selected Radio button option get highlighted | Selected Radio button should be highlighted by different color. |
ix | Check and Uncheck the check box control | ON lable and green tick sign should be appear for checked chechbox and OFF lable and no sign should be appear for unchecked chechbox |
x | Check the alignment of the label for the check box | Alignment should be proper. |
xi | Verify that after clicking on GO button after filling all fields information of all fields is appear | Information or fields data should appear in output section |
xii | Verify that tabbing is correct | Tabbing should be proper |
xiii | Verify the spelling mistakes/typos | There should not be any spelling mistakes/typos |
xiv | Verifiy the aligment of each field on web screen | Alignment of each field should be proper. |
5 | Versions of Android | |
TestCase | Expected Result | |
i | Test the app on all suppored versions of Android | App should work as expected on all supported versions of Android. |
Posts Tagged ‘Automation’
Selenium Introduction and Its Components
Posted: October 25, 2012 in Automation, seleniumTags: advantages, Automation, Automation Testing, Automation tool, components, Open source, RC, Selenium, selenium IDE, Selenium Remote Control, Selenium-Grid, Testing
Selenium Introduction:
Selenium :
Selenium is a Web testing tool. Selenium is a robust set of tools that is used to record and run web applications. There are three components of Selenium. i.e. Selenium is composed of three major tools which has their own specific roles. Selenium is free and open source.
Selenium 2 provides drivers for:
- Mozilla Firefox
- Google Chrome
- Microsoft Internet Explorer
- Opera
- Apple iPhone
- Android browsers
Selenium-IDE:
Selenium-IDE is the Integrated Development Environment for building Selenium test cases. It operates as a Firefox add-on.
Advantages of Selenium-IDE:
It is very easy to use. It has record and play feature and we can also write our own extensions and implement loops, if statements, use arrays, parameterize test cases. Selenium-IDE is very user friendly.
Limitation of Selenium-IDE:
It gets installed as an add-on on Mozilla and works only on Mozilla. IDE cannot work on browsers other than Mozilla. That’s why RC or webdriver is used.
Selenium-RC (Remote Control):
Selenium Remote Control (RC) is a test tool that allows you to write automated web application UI tests in any programming language.
Advantages of Selenium-RC:
Selenium Remote Control is great for testing complex AJAX-based web applications. Selenium Remote Control can be used for any java script enabled browser.
Limitation of Selenium-RC:
In RC we have to start the server again and again i.e. RC completely depends upon server. Switching between the multiple instances of the same browser is not possible. Switching between the multiple instances of the different browsers is not possible.
Selenium-Grid:
Selenium Grid is a server that allows tests to use web browser instances running on remote machines. With Selenium Grid, one server acts as the hub.
MonkeyTalk Simple Script
Posted: September 5, 2012 in Automation, MonkeytalkTags: Automation, Login, MonkeyTalk, MonkeyTalk Simple Script, Programming, script
MonkeyTalk Simple Script:
MonkeyTalk script consists of some commands and having extension .mt.
Example:
Simple example/Script for login is as follows:
MonkeyTalk form:
Input username tap
Input username EnterText test1
Input password EnterText test1
Button LOGIN tap %thinktime=3000
Button LOGOUT tap %thinktime=3000
Javascript form:
load(“libs/<monkey_project_name>.js”);
<monkey_project_name>. <script_name>.prototype.run = function() {
this.app.input(“username”).tap();
this.app.input(“username”).enterText(“test1”);
this.app.input(“password”).enterText(“test1”);
this.app.button(“LOGIN”).tap({thinktime:”3000″});
this.app.button(“LOGOUT”).tap({thinktime:”3000″});
}
You can add comment in your MonkeyTalk script. for example:
# simple login script
Input username tap
Input username EnterText test1
Input password EnterText test1
Button LOGIN tap %thinktime=3000
Button LOGOUT tap %thinktime=3000
Currently, MonkeyTalk test scripts can be converted to Javascript. No other language bindings are supported.
MonkeyTalk components,Features and Benefits
Posted: August 31, 2012 in Automation, MonkeytalkTags: Automation, feature, functional testing tool, install, MonkeyTalk
MonkeyTalk:
Monkey Talk is a functional testing tool for mobile applications. It supports android and iOS platforms. It supports iOS 4.0 or greater and Android 2.2 or greater.
Monkey Talk has three components which are as follows:
- MonkeyTalk IDE – It is used for record/playback of test scripts
- MonkeyTalk Agent – It is a library that must be added to enable the testing. There are different agents for different platform i.e. for android and iOS. The agents enable applications to record and play MonkeyTalk Commands.
- MonkeyTalk scripts – Scripts contains the all the actions. With the help of scripts we can test the overall functionality of an app. MonkeyTalk scripts can be written in three forms that are,
- o In JavaScript form
- o In tabular form (i.e. in different cells)
- o In MonkeyTalk form (In single line format, one line considered as a one command)
Features and benefits:
- It is open source tool i.e. it is free to download and free to use.
- It is a powerful complete functional testing tool.
- Same script can be used on both android and iOS of an app i.e. record on iOS and playback on Android and vice versa.
- MonkeyTalk is simple and easy to learn.
- MonkeyTalk scripts can be understood by average person.
- No expertise required in programming.
- Both phones and tablets are supported, either tethered or over the network.
- MonkeyTalk scripts can be easily extended, even by non-programmers, with custom user-defined commands. (Keyword-driven scripts)
- It supports looping concept. Any command can be looped using csv file. (Data-driven scripts)
- Both Html and xml reports can be generated with this tool. Generally, test suites output the standard XML report and it captures the screenshot when failure occurs.
Installing MonkeyTalk:
Download MonkeyTalk Zip file from” http://www.gorillalogic.com/testing-tools/monkeytalk/download” and simply unzip the file on your Pc.