Skip to content

Commit 04269c1

Browse files
authored
Update README.md
1 parent 437524f commit 04269c1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,28 @@ The features goes in the features foler and should have the ".feature" extension
4343

4444
You can start out by looking at features/my_first.feature. You should also check calabash [predefined steps](https://github.com/calabash/calabash-android/blob/master/ruby-gem/lib/calabash-android/canned_steps.md).
4545

46+
### Syntax
47+
48+
In Kraken each feature is a test and each scenario within a feature is a test case that is run in a device. Each device is identified as an user and numbered from 1 to N. Ex: @user1, @user2, @user3. To check what is the number of a given device you should run `kraken-mobile devices`
49+
50+
List of devices attached
51+
user1 - emulator-5554 - Android_SDK_built_for_x86
52+
user2 - emulator-5556 - Android_SDK_built_for_x86
53+
54+
After identifying what number each device has, you can write your test case giving each scenario the tag of a given device like so:
55+
56+
Feature: Example feature
57+
58+
@user1
59+
Scenario: As a first user I say hi to a second user
60+
Given I wait
61+
Then I send a signal to user 2 containing "hi"
62+
63+
@user2
64+
Scenario: As a second user I wait for user 1 to say hi
65+
Given I wait for a signal containing "hi"
66+
Then I wait
67+
4668
## Running your tests
4769

4870
To run your test:

0 commit comments

Comments
 (0)