Skip to content

Commit 379b843

Browse files
authored
Merge pull request #15 from swaraliRaut/master
updating code samples
2 parents 347e286 + 55e705d commit 379b843

File tree

49 files changed

+716
-416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+716
-416
lines changed

README.md

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,53 @@ cucumber-ruby-app-browserstack
44

55
Code samples to get started with Appium tests for your Native App using the Cucumber framework.
66

7-
## Resources
8-
* [Get Started guide](https://www.browserstack.com/app-automate/appium-cucumber)
7+
## Setup
8+
### Requirements
9+
10+
1. Ruby: If you don't have Ruby installed, follow the instructions given [here](https://www.ruby-lang.org/en/documentation/installation/)
11+
2. Bundler : If you dont have Bundler installed, follow the instructions given [here](https://bundler.io/)
12+
13+
### Install the dependencies
14+
15+
To install the dependencies for Android tests, run :
16+
```sh
17+
cd android/examples
18+
bundle install
19+
```
20+
21+
Or,
22+
23+
To install the dependencies for iOS tests, run :
24+
25+
```sh
26+
cd ios/examples
27+
bundle install
28+
```
29+
30+
## Getting Started
31+
32+
Getting Started with Appium tests in Cucumber Ruby on BrowserStack couldn't be easier!
33+
34+
### **Run first test :**
35+
36+
- Switch to `run_first_test` directory under [Android examples](android/examples) or [iOS examples](ios/examples)
37+
- Follow the steps outlined in the documentation - [Get Started with your first test on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/ruby/cucumber)
38+
39+
### **Speed up test execution with parallel testing :**
40+
41+
- Switch to `run_parallel_test` directory under [Android examples](android/examples/) or [iOS examples](ios/examples/)
42+
- Follow the steps outlined in the documentation - [Get Started with parallel testing on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/ruby/cucumber/local-testing)
43+
44+
### **Use Local testing for apps that access resources hosted in development or testing environments :**
45+
46+
- Switch to `run_local_test` directory under [Android examples](android/examples/) or [iOS examples](ios/examples/)
47+
- Follow the steps outlined in the documentation - [Get Started with Local testing on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/ruby/cucumber/local-testing)
48+
49+
## Getting Help
50+
51+
If you are running into any issues or have any queries, please check [Browserstack Support page](https://www.browserstack.com/support/app-automate) or [get in touch with us](https://www.browserstack.com/contact?ref=help).
52+
53+
Note: For other test frameworks supported by App-Automate refer our [Developer documentation](https://www.browserstack.com/docs/)
54+
55+
## Addtional Resources
56+
* [Cucumber](https://cucumber.io/)

android/Gemfile.lock

Lines changed: 0 additions & 86 deletions
This file was deleted.

android/README.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

android/Rakefile

Lines changed: 0 additions & 35 deletions
This file was deleted.

android/config/local.config.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

android/config/parallel.config.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

android/config/single.config.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

android/examples/Gemfile.lock

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
GEM
2+
remote: http://rubygems.org/
3+
specs:
4+
activesupport (6.0.3.2)
5+
concurrent-ruby (~> 1.0, >= 1.0.2)
6+
i18n (>= 0.7, < 2)
7+
minitest (~> 5.1)
8+
tzinfo (~> 1.1)
9+
zeitwerk (~> 2.2, >= 2.2.2)
10+
appium_lib (10.6.0)
11+
appium_lib_core (~> 3.3)
12+
nokogiri (~> 1.8, >= 1.8.1)
13+
tomlrb (~> 1.1)
14+
appium_lib_core (3.11.0)
15+
faye-websocket (~> 0.11.0)
16+
selenium-webdriver (~> 3.14, >= 3.14.1)
17+
browserstack-local (1.3.0)
18+
builder (3.2.4)
19+
childprocess (3.0.0)
20+
chunky_png (1.3.12)
21+
concurrent-ruby (1.1.7)
22+
cucumber (5.1.0)
23+
builder (~> 3.2, >= 3.2.4)
24+
cucumber-core (~> 8.0, >= 8.0.1)
25+
cucumber-create-meta (~> 2.0, >= 2.0.1)
26+
cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
27+
cucumber-gherkin (~> 15.0, >= 15.0.2)
28+
cucumber-html-formatter (~> 9.0, >= 9.0.0)
29+
cucumber-messages (~> 13.0, >= 13.0.1)
30+
cucumber-wire (~> 4.0, >= 4.0.1)
31+
diff-lcs (~> 1.4, >= 1.4.4)
32+
multi_test (~> 0.1, >= 0.1.2)
33+
sys-uname (~> 1.2, >= 1.2.1)
34+
cucumber-core (8.0.1)
35+
cucumber-gherkin (~> 15.0, >= 15.0.2)
36+
cucumber-messages (~> 13.0, >= 13.0.1)
37+
cucumber-tag-expressions (~> 2.0, >= 2.0.4)
38+
cucumber-create-meta (2.0.1)
39+
cucumber-messages (~> 13.0, >= 13.0.1)
40+
sys-uname (~> 1.2, >= 1.2.1)
41+
cucumber-cucumber-expressions (10.3.0)
42+
cucumber-gherkin (15.0.2)
43+
cucumber-messages (~> 13.0, >= 13.0.1)
44+
cucumber-html-formatter (9.0.0)
45+
cucumber-messages (~> 13.0, >= 13.0.1)
46+
cucumber-messages (13.0.1)
47+
protobuf-cucumber (~> 3.10, >= 3.10.8)
48+
cucumber-tag-expressions (2.0.4)
49+
cucumber-wire (4.0.1)
50+
cucumber-core (~> 8.0, >= 8.0.1)
51+
cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
52+
cucumber-messages (~> 13.0, >= 13.0.1)
53+
diff-lcs (1.4.4)
54+
eventmachine (1.2.7)
55+
faye-websocket (0.11.0)
56+
eventmachine (>= 0.12.0)
57+
websocket-driver (>= 0.5.1)
58+
ffi (1.13.1)
59+
i18n (1.8.5)
60+
concurrent-ruby (~> 1.0)
61+
middleware (0.1.0)
62+
mini_portile2 (2.4.0)
63+
minitest (5.14.2)
64+
multi_test (0.1.2)
65+
nokogiri (1.10.10)
66+
mini_portile2 (~> 2.4.0)
67+
parallel (1.19.2)
68+
parallel_tests (3.2.0)
69+
parallel
70+
protobuf-cucumber (3.10.8)
71+
activesupport (>= 3.2)
72+
middleware
73+
thor
74+
thread_safe
75+
rake (13.0.1)
76+
rspec (3.9.0)
77+
rspec-core (~> 3.9.0)
78+
rspec-expectations (~> 3.9.0)
79+
rspec-mocks (~> 3.9.0)
80+
rspec-core (3.9.2)
81+
rspec-support (~> 3.9.3)
82+
rspec-expectations (3.9.2)
83+
diff-lcs (>= 1.2.0, < 2.0)
84+
rspec-support (~> 3.9.0)
85+
rspec-mocks (3.9.1)
86+
diff-lcs (>= 1.2.0, < 2.0)
87+
rspec-support (~> 3.9.0)
88+
rspec-support (3.9.3)
89+
rubyzip (2.3.0)
90+
selenium-cucumber (3.1.5)
91+
appium_lib (>= 8.0.2)
92+
chunky_png (>= 1.3.5)
93+
cucumber (>= 2.3.0)
94+
rspec (>= 3.4.0)
95+
selenium-webdriver (>= 2.53.0)
96+
selenium-webdriver (3.142.7)
97+
childprocess (>= 0.5, < 4.0)
98+
rubyzip (>= 1.2.2)
99+
sys-uname (1.2.1)
100+
ffi (>= 1.0.0)
101+
thor (1.0.1)
102+
thread_safe (0.3.6)
103+
tomlrb (1.3.0)
104+
tzinfo (1.2.7)
105+
thread_safe (~> 0.1)
106+
websocket-driver (0.7.3)
107+
websocket-extensions (>= 0.1.0)
108+
websocket-extensions (0.1.5)
109+
zeitwerk (2.4.0)
110+
111+
PLATFORMS
112+
ruby
113+
114+
DEPENDENCIES
115+
appium_lib
116+
browserstack-local
117+
cucumber
118+
parallel_tests
119+
rake
120+
rspec
121+
selenium-cucumber
122+
selenium-webdriver
123+
124+
BUNDLED WITH
125+
1.17.3

0 commit comments

Comments
 (0)