Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

Commit

Permalink
Merge pull request #1430 from SalesforceFoundation/feature/robot_upda…
Browse files Browse the repository at this point in the history
…te_namespace_tests

[Robot] Update tests to make it work in both namespaced and non namespaced orgs
  • Loading branch information
rhakeshj authored Dec 11, 2020
2 parents 9e2c5de + 4bc0422 commit 1b05b0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion robot/EDA/resources/EDA.robot
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Library cumulusci.robotframework.PageObjects
Library robot/EDA/resources/EDA.py
Library DateTime

*** Variables ***
${NS}

*** Keywords ***
Capture Screenshot and Delete Records and Close Browser
[Documentation] Captures screenshot if a test fails, deletes session records
Expand Down Expand Up @@ -98,8 +101,9 @@ Create Organization Foundation
Get Records Count
[Documentation] Returns the no of record identified by the given field_name and
... field_value input for a specific object
${NS} = Get EDA namespace prefix
[Arguments] ${obj_name} ${field_name} ${field_value}
${result} = SOQL Query
... SELECT COUNT(Name) FROM ${obj_name} where ${field_name}=${field_value}
... SELECT COUNT(Name) FROM ${NS}${obj_name} where ${NS}${field_name}=${field_value}
&{Id} = Get From List ${result['records']} 0
[return] ${Id}[expr0]
6 changes: 3 additions & 3 deletions robot/EDA/tests/browser/settings/hierarchy_settings.robot
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Validate hierarchy settings under custom settings
Click action button on EDA settings page Save
Load Page Object Home Setup
Go to custom settings setup
Select hierarchy settings Custom Settings ~ Salesforce - Developer Edition
Select hierarchy settings Custom Settings
... Hierarchy Settings
Wait until loading is complete
Go to hierarchy settings view Custom Setting Definition ~ Salesforce - Developer Edition
Go to hierarchy settings view Custom Setting Definition
... Manage
Wait until loading is complete
Verify setup owner section Custom Setting Hierarchy Settings ~ Salesforce - Developer Edition
Verify setup owner section Custom Setting Hierarchy
... No records to display.


Expand Down

0 comments on commit 1b05b0a

Please sign in to comment.