Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Commit

Permalink
Moved images to their own folder, so doc documents are easier to spot.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Delgado committed Jun 26, 2015
1 parent 78a1049 commit 3155d0b
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Please keep in mind that test automation is "only" a side effect of practicing B

The opposite is also true. Just because you can't automate a test (tool limitations often prevent you from full automation) it doesn't mean that you shouldn't write the corresponding BDD scenario in collaboration with the team. Scenarios also serve as manual test specs and future improvements to automation tools might allow their implementation.

![overview running on android](docs/android-overview.gif)
![overview running on android](docs/images/android-overview.gif)

### What this is about

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Ideally the application needs little code or modification for the purposes of te

The app in this sample is a simple one: go to a specific repository on GitHub, show its description, an icon to see if it's public or private and a list of the most recent commits. If you tap on one of the commits, it takes you to a details screen, where you can see further information about that commit.

![app example](app-example.gif)
![app example](images/app-example.gif)

### Mock backend

Expand Down Expand Up @@ -116,7 +116,7 @@ Some scenarios are more difficult to implement than others. It's good to strike
In this sample, we've tagged the 'commit message is too long' scenario as ```@manual-only``` to indicate that it needs to be tested manually. Automating this was very challenging - the scenario verifies that if a commit message is very long, the text becomes ellipsised and truncated, so that each row in the list will be the same height. If we call the 'text' method in Appium on the element, it retrieves the entire string, regardless of the fact the string that's visible to the user is on a single line and correctly ellipsised.

UIAutomator, which is what Appium uses on newer versions of Android, only exposes the full text rather than the ellipsised text, which explains why Appium does the same.
![manual only ellipsis scenario](ellipsis-manual-only.png)
![manual only ellipsis scenario](images/ellipsis-manual-only.png)

All manual scenarios can be considered technical debt. As a team, we can choose to build up some debt in the form of manual testing AS LONG AS we know we are going to be paying for it whenever we have to release. Additionally, Appium is improving all the time, and in subsequent versions something marked as manual could be very easy.

Expand Down
4 changes: 2 additions & 2 deletions docs/running_tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Please make sure you have gone through [installation and setup](setup.md).

## Running the tests

Use either ```rake android_bdd``` or ```rake ios_bdd```
Use either ```rake android_bdd``` or ```rake ios_bdd```.

With this command we run all of the tests for a particular platform (Android or iOS) that are not tagged as `@manual-only`, since that's what is defined as the default Cucumber profile in `cucumber.yml`. You can read more about why we write scenarios that we know we won't be able to automate in the [codebase comments](testing_codebase_comments.md).

We consider everything to be working as expected when a run excluding all the manual tests passes. Test are run sequentially and the results displayed at the end:

![A successful run](success.png)
![A successful run](images/success.png)

### Running specific tests using profiles or tags

Expand Down

0 comments on commit 3155d0b

Please sign in to comment.