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
@@ -610,7 +609,7 @@ Let's say you have a test that sends an email, and now you want to check that th
610
609
from seleniumbase.fixtures.email_manager import EmailManager, EmailException
611
610
num_email_results =0
612
611
email_subject ="This is the subject to search for (maybe include a timestamp)"
613
-
email_manager = EmailManager("[YOUR SELENIUM GMAIL EMAIL ADDRESS]") # the password for this is elsewhere (in the library) because this is a default email account
612
+
email_manager = EmailManager("{YOUR SELENIUM GMAIL ACCOUNT EMAIL ADDRESS}") # the password for this would be stored in seleniumbase/config/settings.py
query ="""INSERT INTO myTable(theId,theValue,theUrl)
633
-
VALUES (%(theId)s,%(theValue)s,%(theUrl)s)"""
634
-
db.execute_query_and_close(query, {"theId":theId,
635
-
"theValue":theValue,
636
-
"theUrl":theUrl})
637
-
```
638
-
639
-
Access credentials are stored in [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py) for your convenience (you have to add them first).
640
-
641
-
The following example below (taken from the Delayed Data Manager) shows how data can be pulled from the database.
642
-
643
-
```python
644
-
import logging
645
-
from seleniumbase.core.mysql import DatabaseManager
Delayed Data usage example: If you scheduled an email to go out 3 hours from now and you wanted to check that the email gets received (but you don't want your test sitting idle for 3 hours) you can store the email credentials as a unique time-stamp for the email subject in the DB (along with a time for when it's safe for the email to be searched for) and then a later-running test can do the checking after the right amount of time has passed.
Copy file name to clipboardExpand all lines: integrations/google_cloud/ReadMe.md
+3-8
Original file line number
Diff line number
Diff line change
@@ -168,18 +168,13 @@ If you have a web application that you want to test, you'll be able to create Se
168
168
169
169
#### Step 26. Create the necessary tables in your MySQL database/schema
170
170
171
-
* Run a SQL script in your MySQL database/schema using [testcaserepository.sql](https://raw.githubusercontent.com/seleniumbase/SeleniumBase/master/seleniumbase/core/testcaserepository.sql)
171
+
* Run the [create_db_tables.sql](https://raw.githubusercontent.com/seleniumbase/SeleniumBase/master/seleniumbase/core/create_db_tables.sql) script in your MySQL database/schema to create all the required DB tables.
172
172
173
-
#### Step 27. Have your local clone of SeleniumBase connect to your MySQL Instance
173
+
#### Step 27. Have your local clone of SeleniumBase connect to your MySQL DB Instance
174
174
175
175
* Update the MySQL connection details in your [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py) file to use the credentials that you saved in Step 21.
176
-
* If you haven't already installed the MySQL-Python connector, run the following command below:
177
176
178
-
```bash
179
-
pip install MySQL-python==1.2.5
180
-
```
181
-
182
-
#### Step 28. Have your SeleniumBase Jenkins jobs use your MySQL Instance
177
+
#### Step 28. Have your SeleniumBase Jenkins jobs use your MySQL DB Instance
183
178
184
179
* For the "Execute shell", use the following as your updated "Command":
0 commit comments