@@ -53,11 +53,19 @@ If you want a visual tool to help make your MySQL life easier, [try MySQL Workbe
53
53
54
54
#### [ Virtualenv] ( http://virtualenv.readthedocs.org/en/latest/ )
55
55
56
- Mac:
56
+ Mac: (The old regular way):
57
+
58
+ ``` bash
59
+ sudo easy_install virtualenv
60
+ ```
61
+
62
+ Mac: (The new fancy way):
57
63
58
- sudo easy_install virtualenv
64
+ ``` bash
65
+ sudo easy_install virtualenvwrapper
66
+ ```
59
67
60
- Windows: (can be used with Mac also, but you may need to use "sudo")
68
+ Windows:
61
69
62
70
pip install virtualenv
63
71
@@ -83,23 +91,34 @@ git clone [LOCATION OF YOUR FORKED SELENIUMBASE GITHUB FOLDER]/SeleniumBase.git
83
91
cd SeleniumBase
84
92
```
85
93
86
- (NOTE: If you decided to download SeleniumBase rather than Git-cloning it, you can skip the above step.)
94
+ If you only need a local copy and don't plan on checking in any changes that you make, you can just clone the base repo as is:
95
+
96
+ ``` bash
97
+ git clone https://github.com/mdmintz/SeleniumBase.git
98
+ ```
87
99
88
100
#### ** Step 2:** Create a virtualenv for seleniumbase
89
101
90
- Mac:
102
+ Mac: (If you're using the old regular way):
91
103
92
104
``` bash
93
105
mkdir -p ~ /Envs
94
106
virtualenv ~ /Envs/seleniumbase
95
107
source ~ /Envs/seleniumbase/bin/activate
96
108
```
97
109
110
+ Mac: (If you're using the new fancy way):
111
+
112
+ ``` bash
113
+ mkvirtualenv seleniumbase
114
+ ```
115
+
98
116
Windows:
99
117
100
- Same as above, except :
118
+ Use the "virtualenv" version above instead of "mkvirtualenv", but also make the following changes :
101
119
1: Don't use "-p"
102
120
2: Replace "~ /" from above with the location of your home directory
121
+ 3: Instead of using the "source" command, go into the folder created and type `` activate ``
103
122
104
123
If you ever need to leave your virtual environment, use the following command:
105
124
@@ -109,10 +128,16 @@ deactivate
109
128
110
129
You can always jump back in later:
111
130
131
+ (If you're using the old regular way):
112
132
``` bash
113
133
source ~ /Envs/seleniumbase/bin/activate
114
134
```
115
135
136
+ (If you're using the new fancy way):
137
+ ``` bash
138
+ workon seleniumbase
139
+ ```
140
+
116
141
#### ** Step 3:** Install necessary packages from the SeleniumBase folder and compile the test framework (from within your virtual environment)
117
142
118
143
If you don't desire connecting to a MySQL DB to record the results of your local test runs, run this command:
0 commit comments