Discover automated frontend testing, include the articles, news, trends, analysis and practical advice about automated frontend testing on alibabacloud.com
, "down_and_up")9. #执行adb shell command;Device.shell ("Input text Goup01")Press the HOME button device.press (' Keycode_home ', ' down_and_up ')Press the back key device.press (' Keycode_back ', ' down_and_up ')Press the Down navigation key device.press (' Keycode_dpad_down ', ' down_and_up ')Press the upper navigation key device.press (' keycode_dpad_up ', ' down_and_up ')Press the OK key device.press (' Keycode_dpad_center ', ' down_and_up ')The corresponding keys correspond to the following n
I tried it again based on my teammates automated testing summary. The following is a summary. You can take a look.
Note: the premise of this demo is that devise and rspec have been configured, and my blog posts in this regard are available for reference.
1. Install sport and Autotest-rails
Add in gemfile
Gem "spork", "~> 0.9.2"
Gem "Autotest-rails", "~> 4.1.2"
Execute bundle install
Install spork
Spork --
I. First, configure the most basic environment
Knowledge preparation + Environment configuration for Android Automated Testing(Click to view details)
2. Download robotium
Open: http://code.google.com/p/robotium/
Download: robotium-solo-3.4.1.jar (dependent on this package when writing test cases) robotium-solo-3.4.1-javadoc.jar (you can view the various APIs provided after decompression)
3. Create a test pr
RFS: robot framework + Selenium
RFS Installation
1. PythonHttps://www.python.org/
The RF framework is based on python. Therefore, install the python environment first. Currently, RF only supports Python 2.x. After installation, add c: \ python27 \; C: \ python27 \ scripts; to the environment variable path.
To facilitate the installation, You can first install Pip, download the PIP https://pypi.python.org/pypi/pip, unzip and run the command line to enter the directory, run the python get-pip.py.
machine, click the Phone button in the upper left corner to capture the app's current interface, click on any of the top left corner of the phone icon can be, the difference is only the latter on the level of compression, This situation is more advantageous for large numbers of apps that use arrays or generic fills, and does not target elements that are empty or have the same name ID:For example, we locate this share button, we can see this button's Resource-id (with ID positioning), class (cla
The click Element keyword is used to simulate clicking an element on the app interface, which receives a parameter [locator], where locator refers to the way the interface element is positioned.Example 1: Use the click Element keyword to simulate clicking on a button, where locator uses name to locate the element that needs to be clicked, and still uses the app interface previously used to do the operation example.Open application Http://localhost:4723/wd/hub platformname=android platformversion
dictionary to remove the host name and browser name assigned to the following parameters, In this case, the test script will call the local 2 specified browsers and run.3. Then the server is restarted and the corresponding version of Selenium server is downloaded from http://selenium-release.storage.googleapis.com/index.html:After downloading it, open cmd, enter Java-jar selenium-server-standalone-x.xx.x.jar-role hub, this is the root of all evils, start it before you can do the things behind.
Objective:Android Automated test tools, methodologies, and frameworks, including Android OID test Framework, CTS, Monkey, Monkeyrunner, benchmark, test tool, etc. First, what is MonkeyMonkey is a command-line tool in Android that can be run in the emulator or in the actual device. It sends a pseudo-random user thing flow (such as key input, touch screen input, gesture input, etc.) to the system for stress testing
I will continue to introduce the gauge automated testing tool if you are interested in the tool.
Gauge is essentially a BDD (behavior driven development) testing framework. Therefore, you must first understand how BDD operates.
BDD contains two parts:Software behavior description. The other part is:Write test code for description.
First, the behavior description
Preface:
Open the MEDC 2007 course list page and you will see the title of a course, "use Windows Mobile test framework for automated testing". suddenly, the new Windows Mobile 6 SDK seems to contain Windows Mobile test framework, in this case, open the zip package "tools \ Windows Mobile test framework \ Windows Mobile test framework.zip" under the wm6 installation directory.
I really don't know. I wa
This article describes how to run the test case withverbosity from the command line in python automated testing. it is a classic automated testing example, for more information about how to run the test case with verbosity in the Command Line for python automation testing, s
Python automated testing: setUp and tearDown instances, pythonteardown
This article describes how to use setUp and tearDown for python automated testing. The details are as follows:
The instance code is as follows:
class RomanNumeralConverter(object): def __init__(self): self.digit_map = {"M":1000, "D":500, "C":1
Preface:
Recently, I started to study Android automated testing methods,SortedSome tools, methods, and frameworks, including the android testing framework, CTS, monkey, monkeyrunner, benchmark, and other test tools.
1. What is monkey?
Monkey is a command line tool in Android and can be run in a simulator or on a real device. It sends pseudo-random user event
The agile development community has struggled for years with an ArrayOf solutions for automated testing solutions for web development.Nunitasp is a good way to unit test server side ASP. NET Code, especiallyNow that it doesn't require XHTML compliant pages, but it can't handleClient side scripting and Ajax is exploding in popularity. SeveralTools have used COM (must die) to drive Internet Explorer (IE)Varyi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.