You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1

2
2
3
3
# About
4
-
TestRay is a Ruby gem used to run YAML-based automation tests, using Selenium and Appium. While originally compatible only with Android, in its current iteration it can also automate iOS, web, Windows and Mac applications.
4
+
TestRay is a Ruby gem used to run YAML-based automation tests, using Selenium and Appium. While originally compatible only with Android, in its current iteration it can also automate iOS, web, Windows and Mac applications - and with multi-platform support!
5
5
6
6
## Index
7
7
1.[Installation](#installation)
@@ -17,8 +17,9 @@ TestRay is a Ruby gem used to run YAML-based automation tests, using Selenium an
17
17
18
18
19
19
## <aid="installation"></a>Installation
20
+
TestRay has been tested to work on both Mac (Intel/M1) and Windows.
20
21
21
-
You can install TestRay master branch by creating a Gemfile with the following content and then running `bundle install`:
22
+
One way to install the framework is by creating a Gemfile with the following content and then running `bundle install`:
Copy file name to clipboardExpand all lines: SETUP.md
+35-47Lines changed: 35 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,5 @@
1
1
# TestRay Setup - Overview
2
-
The TestRay framework is the primary automation framework used in the A/V department. Its key properties include the following:
3
-
1. Written in Ruby
4
-
2. Works on Mac (Intel/M1) and Windows
5
-
3. Supports web automation (Selenium)
6
-
4. Supports Android, iOS, Windows and Mac app automation (Appium)
7
-
5. Allows testing multiple simultaneous users across all the above platforms
8
-
6. Uses YAML-based test cases
9
-
10
-
This document aims to describe the full setup procedure for this framework, in three sections:
2
+
This document aims to describe the full setup procedure for TestRay, in three sections:
11
3
1. Installing prerequisites for TestRay
12
4
2. Installing TestRay
13
5
3. Installing optional prerequisites for specific test platforms
@@ -16,7 +8,6 @@ This document aims to describe the full setup procedure for this framework, in t
16
8
Installations are provided either as a link, or as a command that should be run in the terminal (or PowerShell on Windows).
17
9
Also note that some steps differ depending on the computer on which you want to install TestRay (Windows or Mac). In order to distinguish these, icons will be used:
18
10
19
-
20
11
⊞ - this indicates a step that is specific to installations on Windows
21
12
⌘ - this indicates a step that is specific to installations on Mac
22
13
@@ -85,37 +76,39 @@ First you need to install some common prerequisites, regardless of the platform
85
76
gem uninstall eventmachine
86
77
gem install eventmachine --platform ruby
87
78
88
-
Video Analysis
89
-
Skip this section if you do not need to do video analysis.
Check that ffmpeg is installed by opening a new terminal/Powershell window and running ffmpeg -version
99
-
If you plan to use ffmpeg to record the computer screen and launch TestRay using a CI tool (like TeamCity or Jenkins), this action may get stuck. One solution is to additionally install Java 8 and temporarily delete the Java 11 folder when registering the computer with the CI tool.
100
-
Java 8 installations:
101
-
102
-
Audio Analysis
103
-
Skip this section if you do not need to do audio analysis.
Start menu -> type 'path' -> Edit the system environment variables -> Environment Variables… -> section System variables -> select Path -> Edit -> New
108
-
Paste C:\Program Files (x86)\sox-14-4-2
109
-
Save with OK -> OK -> OK
110
-
Unfortunately, unlike the Mac version, the Windows version of sox does not include handling for .mp3 files, which you may need for spectrogram generation. You can add this support with the following steps:
111
-
Download the two files at https://drive.google.com/drive/folders/1FipUjNGpzHaWgimstxjA7YcE6NmxpLVr
112
-
Paste the files in the sox install directory (C:\Program Files (x86)\sox-14-4-2)
113
-
Check that sox is installed by opening a new terminal/Powershell window and running sox --version
79
+
### Video Analysis
80
+
Skip this section if you do not need to do video analysis.
Check that ffmpeg is installed by opening a new terminal/Powershell window and running ffmpeg -version
91
+
If you plan to use ffmpeg to record the computer screen and launch TestRay using a CI tool (like TeamCity or Jenkins), this action may get stuck. One solution is to additionally install Java 8 and temporarily delete the Java 11 folder when registering the computer with the CI tool.
92
+
93
+
### Audio Analysis
94
+
Skip this section if you do not need to do audio analysis.
Start menu -> type 'path' -> Edit the system environment variables -> Environment Variables… -> section System variables -> select Path -> Edit -> New
100
+
Paste C:\Program Files (x86)\sox-14-4-2
101
+
Save with OK -> OK -> OK
102
+
Unfortunately, unlike the Mac version, the Windows version of sox does not include handling for .mp3 files, which you may need for spectrogram generation. You can add this support with the following steps:
103
+
Download the two files at https://drive.google.com/drive/folders/1FipUjNGpzHaWgimstxjA7YcE6NmxpLVr
104
+
Paste the files in the sox install directory (C:\Program Files (x86)\sox-14-4-2)
105
+
Check that sox is installed by opening a new terminal/Powershell window and running sox --version
114
106
115
107
### Network Analysis
116
108
117
109
Skip this section if you do not need to do network analysis.
118
110
Wireshark:
111
+
119
112
⌘ brew install --cask wireshark
120
113
nano ~/.zshrc -> scroll to the bottom and paste the following:
@@ -127,24 +120,23 @@ Skip this section if you do not need to do network analysis.
127
120
Check that Wireshark (specifically, tshark) is installed by opening a new terminal/Powershell window and running tshark -v
128
121
129
122
130
-
###Installing TestRay
123
+
## Installing TestRay
131
124
132
125
You can clone this project and the use:
133
126
134
127
rake install
135
128
136
-
137
-
138
129
## Prerequisites: Test Platforms
139
130
140
131
Now you can install optional prerequisites, depending on your tested target platform.
141
132
142
133
### Running Web Tests
143
134
144
135
Chrome - https://www.google.com/chrome/
145
-
Other Chromium-based browsers are probably fine too, but have not been tested
136
+
Other Chromium-based browsers are probably fine too, but have not been tested
137
+
138
+
chromedriver
146
139
147
-
#### chromedriver
148
140
⌘ brew install --cask chromedriver
149
141
⊞ https://chromedriver.chromium.org/downloads - select depending on your Chrome version
150
142
@@ -163,6 +155,7 @@ Other Chromium-based browsers are probably fine too, but have not been tested
163
155
#### Running Android Tests
164
156
165
157
Android Studio - https://developer.android.com/studio
158
+
166
159
⌘ After installing and opening the app, it will open a Setup Wizard
167
160
168
161
Select Custom install type
@@ -194,7 +187,7 @@ Android Studio - https://developer.android.com/studio
194
187
Run adb devices - you should see the connected device and its UDID (identification number/string), for example, 1cd982880d027ece. The device should now also show up if you run testray android list_devices.
195
188
If you require the phone to be connected over the network:
196
189
adb -s <UDID> tcpip 5555
197
-
adb connect <phone IP>:5555, for example, adb connect 172.16.113.201:5555
190
+
adb connect <phone IP>:5555, for example, adb connect 192.168.0.1:5555
198
191
Unplug the phone from the computer
199
192
adb devices - the previous UDID should now be replaced with the IP of the phone
200
193
@@ -223,8 +216,3 @@ Drag and drop the Xcode Helper application to the app list in the System Prefere
223
216
224
217
In Windows Settings, open Update & Security -> For developers -> switch to Developer Mode -> Yes
225
218
You may also need to first start PowerShell as an administrator before running your tests
0 commit comments