Skip to content

Commit 800ccd2

Browse files
committed
- Add support for passing browser capabilities as a robot variable
- Attempt to configure google chrome binary path via browser capabilities - Change dev org to 1 day duration
1 parent ca428c5 commit 800ccd2

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

cumulusci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ flows:
5050
task: robot_libdoc_salesforce_resource
5151
5:
5252
task: robot_testdoc
53+
54+
orgs:
55+
dev:
56+
days: 1

cumulusci/robotframework/Salesforce.robot

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ Library cumulusci.robotframework.Salesforce debug=${DEBUG}
88

99
*** Variables ***
1010
${BROWSER} chrome
11-
${BROWSER_VERSION} 63
11+
${BROWSER_VERSION} latest
1212
${DEBUG} ${false}
13+
${CAPABILITIES} ${empty}
1314
${IMPLICIT_WAIT} 7.0
1415
${TIMEOUT} 7.0
1516

@@ -21,7 +22,7 @@ Delete Records and Close Browser
2122

2223
Open Test Browser
2324
${login_url} = Login Url
24-
Open Browser ${login_url} ${BROWSER} desired_capabilities=version:${BROWSER_VERSION}
25+
Open Browser ${login_url} ${BROWSER} desired_capabilities=version:${BROWSER_VERSION}${CAPABILITIES}
2526
Sleep 2
2627
Wait Until Loading Is Complete
2728
#Run Keyword If '${BROWSER}' == 'chrome' Open Test Browser Chrome

heroku_ci.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ echo "--------------------------------------------"
4848
# Start TAP output
4949
echo "1...2"
5050

51-
coverage run --append --source=cumulusci `which cci` task run robot --org dev -o vars BROWSER:headlesschrome -o suites cumulusci/robotframework/tests/cumulusci | tee robot_cumulusci.log
51+
coverage run --append --source=cumulusci `which cci` task run robot --org dev -o suites cumulusci/robotframework/tests/cumulusci | tee robot_cumulusci.log
5252
exit_status=${PIPESTATUS[0]}
5353
if [ "$exit_status" == "0" ]; then
5454
echo "ok 1 - CumulusCI robot tests passed"
@@ -57,7 +57,7 @@ else
5757
failed=1
5858
fi
5959

60-
coverage run --append --source=cumulusci `which cci` task run robot --org dev -o vars BROWSER:headlesschrome -o suites cumulusci/robotframework/tests/salesforce | tee robot_salesforce.log
60+
coverage run --append --source=cumulusci `which cci` task run robot --org dev -o vars BROWSER:headlesschrome,CAPABILITIES:binary:$GOOGLE_CHROME_BIN -o suites cumulusci/robotframework/tests/salesforce | tee robot_salesforce.log
6161
exit_status=${PIPESTATUS[0]}
6262
if [ "$exit_status" == "0" ]; then
6363
echo "ok 2 - Salesforce robot tests passed"

0 commit comments

Comments
 (0)