Skip to content

Commit

Permalink
Updates to provardx and versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdailey99 committed Aug 30, 2024
1 parent e7f959a commit ec9c685
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 8 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

17 changes: 15 additions & 2 deletions ProvarProject/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,20 @@ Bundle-SymbolicName: SeleniumGrid
Bundle-Version: 1.0.0.qualifier
Require-Bundle: com.provar.core.testapi,
com.provar.core.model.base,
com.provar.core.lib.selenium,
com.provar.testrunner,
com.provar.plugins.sf.apis,
com.provar.core.model.ui
com.provar.core.model.ui,
org.seleniumhq.selenium.selenium-api,
org.seleniumhq.selenium.selenium-chrome-driver,
org.seleniumhq.selenium.selenium-edge-driver,
org.seleniumhq.selenium.selenium-firefox-driver,
org.seleniumhq.selenium.selenium-ie-driver,
org.seleniumhq.selenium.selenium-remote-driver,
org.seleniumhq.selenium.selenium-safari-driver,
org.seleniumhq.selenium.selenium-support,
org.seleniumhq.selenium.selenium-chromium-driver,
org.seleniumhq.selenium.selenium-http,
org.seleniumhq.selenium.selenium-json,
org.seleniumhq.selenium.selenium-manager,
org.seleniumhq.selenium.selenium-os,
org.seleniumhq.selenium.selenium-java
3 changes: 3 additions & 0 deletions ProvarProject/nitroXConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"nitroXEnabled" : true
}
45 changes: 45 additions & 0 deletions ProvarProject/tests/Dreamhouse/Create Broker via API.testcase
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
<value class="value" valueClass="string">default</value>
</argument>
<argument id="webBrowser"/>
<argument id="connectionId">
<value class="value" valueClass="id">e479b38b-f2bc-4a4c-a9e9-468c24a341d6</value>
</argument>
</arguments>
<parameterValueSources>
<parameterValueSource variableName="SourceData" variableScope="Test"/>
Expand Down Expand Up @@ -99,6 +102,48 @@
<apiParam group="fields" modelBinding="sf:ui:binding:object?object=Broker__c&amp;field=Name" name="Name" title="Name"/>
</generatedParameters>
</apiCall>
<apiCall apiId="com.provar.plugins.forcedotcom.core.testapis.ApexConnect" guid="716b43db-6766-41d7-b7ce-4033876c437c" name="ApexConnect" testItemId="3" title="Salesforce Connect: AdminConnection (Test)">
<arguments>
<argument id="connectionName">
<value class="value" valueClass="string">Admin</value>
</argument>
<argument id="connectionId">
<value class="value" valueClass="string">e479b38b-f2bc-4a4c-a9e9-468c24a341d6</value>
</argument>
<argument id="resultName">
<value class="value" valueClass="string">AdminConnection</value>
</argument>
<argument id="reuseConnectionName"/>
<argument id="resultScope">
<value class="value" valueClass="string">Test</value>
</argument>
<argument id="alreadyOpenBehaviour">
<value class="value" valueClass="string">Fail</value>
</argument>
<argument id="uiApplicationName"/>
<argument id="closeAllPrimaryTabs">
<value class="value" valueClass="boolean">true</value>
</argument>
<argument id="quickUiLogin">
<value class="value" valueClass="boolean">true</value>
</argument>
<argument id="privateBrowsingMode"/>
<argument id="enableObjectIdLogging">
<value class="value" valueClass="boolean">true</value>
</argument>
<argument id="autoCleanup"/>
<argument id="cleanupConnectionName"/>
<argument id="logFileLocation"/>
<argument id="username"/>
<argument id="password"/>
<argument id="securityToken"/>
<argument id="environment"/>
<argument id="lightningMode">
<value class="value" valueClass="string">default</value>
</argument>
<argument id="webBrowser"/>
</arguments>
</apiCall>
</steps>
<params>
<param linkedToUrl="provar:hasvalue:cde9cfc5-ec02-4958-a098-1c4bcaf4dee9" modelBinding="sf:ui:binding:object?object=Broker__c&amp;field=Email__c" name="Email__c" passwordVariableAllowed="true" title="Email__c">
Expand Down
12 changes: 10 additions & 2 deletions ProvarProject/tests/Dreamhouse/Create Broker.testcase
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<testCase guid="670ec2b9-d1ad-46ad-b1e4-03389311e9dd" id="0">
<testCase guid="670ec2b9-d1ad-46ad-b1e4-03389311e9dd" id="1">
<summary/>
<steps>
<apiCall apiId="com.provar.plugins.forcedotcom.core.testapis.ApexConnect" guid="838340f6-29e6-4c7b-a2a9-7d927b718a60" name="ApexConnect" testItemId="1" title="Salesforce Connect: DemoOrg (Test)">
Expand Down Expand Up @@ -46,6 +46,9 @@
<value class="value" valueClass="string">default</value>
</argument>
<argument id="webBrowser"/>
<argument id="connectionId">
<value class="value" valueClass="id">e479b38b-f2bc-4a4c-a9e9-468c24a341d6</value>
</argument>
</arguments>
</apiCall>
<apiCall apiId="com.provar.plugins.forcedotcom.core.ui.UiWithScreen" guid="e8fd6dd7-149d-4121-b89f-6a2325ee5cee" name="UiWithScreen" testItemId="2" title="On SF Broker Home screen">
Expand Down Expand Up @@ -225,6 +228,7 @@
<value class="value" valueClass="string">Set the Broker Name field to Demo {UniqueId(6)}</value>
</argument>
<argument id="autoRetry"/>
<argument id="locatorParams"/>
</arguments>
<generatedParameters>
<apiParam group="value" modelBinding="sf:ui:binding:object?object=Broker__c&amp;field=Name" name="value" passwordVariableAllowed="true" seq="10000" title="Value">
Expand Down Expand Up @@ -288,6 +292,7 @@
<value class="value" valueClass="string">Set the Phone field to 555-1234</value>
</argument>
<argument id="autoRetry"/>
<argument id="locatorParams"/>
</arguments>
<generatedParameters>
<apiParam group="value" modelBinding="sf:ui:binding:object?object=Broker__c&amp;field=Phone__c" name="value" passwordVariableAllowed="true" seq="10000" title="Value">
Expand Down Expand Up @@ -346,6 +351,7 @@
<value class="value" valueClass="string">Set the Title field to Senior Salesman</value>
</argument>
<argument id="autoRetry"/>
<argument id="locatorParams"/>
</arguments>
<generatedParameters>
<apiParam group="value" modelBinding="sf:ui:binding:object?object=Broker__c&amp;field=Title__c" name="value" passwordVariableAllowed="true" seq="10000" title="Value">
Expand Down Expand Up @@ -419,6 +425,7 @@
<value class="value" valueClass="string">Set the Email field to test{UniqueId(6)}@example.com</value>
</argument>
<argument id="autoRetry"/>
<argument id="locatorParams"/>
</arguments>
<generatedParameters>
<apiParam group="value" modelBinding="sf:ui:binding:object?object=Broker__c&amp;field=Email__c" name="value" passwordVariableAllowed="true" seq="10000" title="Value">
Expand Down Expand Up @@ -474,6 +481,7 @@
<argument id="ieClickMethod">
<value class="value" valueClass="string">Default</value>
</argument>
<argument id="locatorParams"/>
</arguments>
<generatedParameters>
<apiParam group="value" name="hover" seq="10000" title="Hover before Clicking">
Expand Down Expand Up @@ -774,7 +782,7 @@
</apiCall>
</steps>
<associations>
<association assocationType="TM.TEST_CASE" connectionId="55d392f7-ccc9-4c71-aa4e-33aa895ddd53" entityKey="a0R8d000007vOKDEA2" lastModifiedDateTime="2024-01-03T15:15:34Z" lastUploadedDateTime="2024-01-03T15:16:45Z">
<association assocationType="TM.TEST_CASE" connectionId="55d392f7-ccc9-4c71-aa4e-33aa895ddd53" entityKey="a0R8d000007vOKDEA2" lastModifiedDateTime="2024-08-30T13:28:01Z" lastUploadedDateTime="2024-01-03T15:16:45Z">
<metadataCoverage>
<stepMetadataCoverage linkedId="1" value="uiApplicationName=Dreamhouse"/>
<stepMetadataCoverage linkedId="2" value="object=Broker__c"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
<value class="value" valueClass="string">default</value>
</argument>
<argument id="webBrowser"/>
<argument id="connectionId">
<value class="value" valueClass="id">e479b38b-f2bc-4a4c-a9e9-468c24a341d6</value>
</argument>
</arguments>
</apiCall>
<apiCall apiId="com.provar.plugins.bundled.apis.control.SetValues" guid="ad965ddb-7f7d-4e4b-9cbe-8ce0941f2647" name="SetValues" testItemId="20" title="Set Values: InitialOppStage">
Expand Down Expand Up @@ -444,7 +447,7 @@
</outputArgument>
</outputArgs>
<associations>
<association assocationType="TM.TEST_CASE" connectionId="55d392f7-ccc9-4c71-aa4e-33aa895ddd53" entityKey="a0R8d000007vLhOEAU" lastModifiedDateTime="2024-01-03T15:15:34Z" lastUploadedDateTime="2024-01-03T15:16:45Z">
<association assocationType="TM.TEST_CASE" connectionId="55d392f7-ccc9-4c71-aa4e-33aa895ddd53" entityKey="a0R8d000007vLhOEAU" lastModifiedDateTime="2024-07-23T13:26:27Z" lastUploadedDateTime="2024-01-03T15:16:45Z">
<metadataCoverage>
<stepMetadataCoverage linkedId="3" value="object=Lead"/>
<stepMetadataCoverage linkedId="5" value="object=Account&amp;fields=Name,Phone"/>
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines-newcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ steps:
displayName: "Node Install: sf cli"
- script: |
echo y | sf plugins:install @provartesting/provardx-cli@1.1.0
echo y | sf plugins:install @provartesting/provardx-cli
sf plugins:update
displayName: "Install ProvarDX Plugin via SFDX"
Expand Down Expand Up @@ -65,7 +65,7 @@ steps:
sf provar automation config load -p provardx-properties-generated.json --json
echo "Setting Provar Home, Project Path, Results Path, Test Plan, Test Plan Features, and Project Secrets"
echo "-------------------------------"
sf provar automation config set provarHome='./ProvarHome' projectPath='./ProvarProject' resultsPath='./ProvarProject/ANT/Results' testPlan='["$(test_plan)"]' testplanFeatures='[{"name": "PDF", "type": "OUTPUT", "enabled": "true"}, {"name": "PIECHART", "type": "OUTPUT", "enabled": "true"}, {"name": "EMAIL", "type": "NOTIFICATION", "enabled": "false"}, {"name": "TEST_MANAGER", "type": "REPORTING", "enabled": "true"}]' testprojectSecrets="$(secrets_password)" connectionOverride='[{"connection": "Admin", "username": "$(scratch_org_alias)"}]'
sf provar automation config set provarHome='./ProvarHome' projectPath='./ProvarProject' resultsPath='./ProvarProject/ANT/Results' testPlan='["$(test_plan)"]' testplanFeatures='[{"name": "PDF", "type": "OUTPUT", "enabled": "true"}, {"name": "PIECHART", "type": "OUTPUT", "enabled": "true"}, {"name": "EMAIL", "type": "NOTIFICATION", "enabled": "false"}, {"name": "TEST_MANAGER", "type": "REPORTING", "enabled": "true"}]' testprojectSecrets="$(secrets_password)" connectionOverride='[{"connection": "Admin", "username": "$(scratch_org_alias)"}]' pluginOutputLevel='SEVERE'
displayName: "Generate & Configure ProvarDX Property File"
- bash: |
Expand Down

0 comments on commit ec9c685

Please sign in to comment.