-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathRunTime.feature
More file actions
148 lines (144 loc) · 9.7 KB
/
Copy pathRunTime.feature
File metadata and controls
148 lines (144 loc) · 9.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# Copyright © 2022 Cask Data, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
@SFMarketingCloud
@SFMCSink
@Smoke
@Regression
Feature: Salesforce Marketing Cloud Sink - Run time scenarios
@SINK-TS-SFMC-RNTM-01 @BQ_SOURCE_TABLE @BQ_SOURCE_CLEANUP
Scenario:Verify user should be able to preview and deploy the pipeline when plugin is configured for Insert Operation
When Open Datafusion Project to configure pipeline
And Select plugin: "BigQuery" from the plugins list as: "Source"
And Navigate to the properties page of plugin: "BigQuery"
And Enter input plugin property: "referenceName" with value: "Reference"
And Replace input plugin property: "project" with value: "project.id" for Credentials and Authorization related fields
And Enter input plugin property: "datasetProject" with value: "datasetprojectId" for Credentials and Authorization related fields
And Enter input plugin property: "dataset" with value: "dataset" for Credentials and Authorization related fields
And Enter input plugin property: "table" with value: "bqsource.table"
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
And Select Sink plugin: "SalesforceDataExtension" from the plugins list
And Connect source as "BigQuery" and sink as "SalesforceDataExtension" to establish connection
And Navigate to the properties page of plugin: "Salesforce Marketing"
And Enter input plugin property: "referenceName" with value: "Referencename"
And Enter input plugin property: "dataExtension" with value: "Stores"
And Select radio button plugin property: "operation" with value: "INSERT"
And Enter input plugin property: "clientId" with value: "admin.clientid" for Credentials and Authorization related fields
And Enter input plugin property: "clientSecret" with value: "admin.clientsecret" for Credentials and Authorization related fields
And Enter input plugin property: "authEndpoint" with value: "admin.base.uri" for Credentials and Authorization related fields
And Enter input plugin property: "soapEndpoint" with value: "admin.soap.endpoint" for Credentials and Authorization related fields
And Select radio button plugin property: "truncateText" with value: "true"
And Select radio button plugin property: "failOnError" with value: "true"
And Select radio button plugin property: "replaceWithSpaces" with value: "false"
And Replace input plugin property: "maxBatchSize" with value: "1000"
Then Validate "Salesforce Marketing" plugin properties
And Close the Plugin Properties page
And Preview and run the pipeline
And Wait till pipeline preview is in running state
And Open and capture pipeline preview logs
And Verify the preview run status of pipeline in the logs is "succeeded"
And Close the pipeline logs
And Close the preview
And Save and Deploy Pipeline
And Run the Pipeline in Runtime
And Wait till pipeline is in running state
Then Verify the pipeline status is "Succeeded"
Then Validate record created in Sink application for Object is equal to expected record
@SINK-TS-SFMC-RNTM-02 @BQ_SOURCE_UPDATE @BQ_SOURCE_CLEANUP
Scenario:Verify user should be able to preview and deploy the pipeline when plugin is configured for Update Operation
When Open Datafusion Project to configure pipeline
And Select plugin: "BigQuery" from the plugins list as: "Source"
And Navigate to the properties page of plugin: "BigQuery"
And Enter input plugin property: "referenceName" with value: "Reference"
And Replace input plugin property: "project" with value: "project.id" for Credentials and Authorization related fields
And Enter input plugin property: "datasetProject" with value: "datasetprojectId" for Credentials and Authorization related fields
And Enter input plugin property: "dataset" with value: "dataset" for Credentials and Authorization related fields
And Enter input plugin property: "table" with value: "bqsource.table"
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
And Select Sink plugin: "SalesforceDataExtension" from the plugins list
And Connect source as "BigQuery" and sink as "SalesforceDataExtension" to establish connection
And Navigate to the properties page of plugin: "Salesforce Marketing"
And Enter input plugin property: "referenceName" with value: "Referencename"
And Enter input plugin property: "dataExtension" with value: "Stores"
And Select radio button plugin property: "operation" with value: "UPDATE"
And Enter input plugin property: "clientId" with value: "admin.clientid" for Credentials and Authorization related fields
And Enter input plugin property: "clientSecret" with value: "admin.clientsecret" for Credentials and Authorization related fields
And Enter input plugin property: "authEndpoint" with value: "admin.base.uri" for Credentials and Authorization related fields
And Enter input plugin property: "soapEndpoint" with value: "admin.soap.endpoint" for Credentials and Authorization related fields
And Select radio button plugin property: "truncateText" with value: "true"
And Select radio button plugin property: "failOnError" with value: "true"
And Select radio button plugin property: "replaceWithSpaces" with value: "false"
And Replace input plugin property: "maxBatchSize" with value: "1000"
Then Validate "Salesforce Marketing" plugin properties
And Close the Plugin Properties page
And Preview and run the pipeline
And Wait till pipeline preview is in running state
And Open and capture pipeline preview logs
And Verify the preview run status of pipeline in the logs is "succeeded"
And Close the pipeline logs
And Close the preview
And Save and Deploy Pipeline
And Run the Pipeline in Runtime
And Wait till pipeline is in running state
Then Verify the pipeline status is "Succeeded"
Then Validate record created in Sink application for Object is equal to expected record
@SINK-TS-SFMC-RNTM-03 @BQ_SOURCE_UPDATE @BQ_SOURCE_CLEANUP
Scenario:Verify user should be able to preview and deploy the pipeline when plugin is configured for Update Operation
When Open Datafusion Project to configure pipeline
And Select plugin: "BigQuery" from the plugins list as: "Source"
And Navigate to the properties page of plugin: "BigQuery"
And Enter input plugin property: "referenceName" with value: "Reference"
And Replace input plugin property: "project" with value: "project.id" for Credentials and Authorization related fields
And Enter input plugin property: "datasetProject" with value: "datasetprojectId" for Credentials and Authorization related fields
And Enter input plugin property: "dataset" with value: "dataset" for Credentials and Authorization related fields
And Enter input plugin property: "table" with value: "bqsource.table"
Then Validate "BigQuery" plugin properties
And Close the Plugin Properties page
And Select Sink plugin: "SalesforceDataExtension" from the plugins list
And Connect source as "BigQuery" and sink as "SalesforceDataExtension" to establish connection
And Navigate to the properties page of plugin: "Salesforce Marketing"
And Enter input plugin property: "referenceName" with value: "Referencename"
And Enter input plugin property: "dataExtension" with value: "Stores"
And Select radio button plugin property: "operation" with value: "UPDATE"
And Click plugin property: "switch-useConnection"
And Click on the Browse Connections button
And Click on the Add Connection button
And Click plugin property: "connector-MarketingCloud"
And Enter input plugin property: "name" with value: "connection.name"
And Enter input plugin property: "clientId" with value: "admin.clientid" for Credentials and Authorization related fields
And Enter input plugin property: "clientSecret" with value: "admin.clientsecret" for Credentials and Authorization related fields
And Enter input plugin property: "authEndpoint" with value: "admin.base.uri" for Credentials and Authorization related fields
And Enter input plugin property: "soapEndpoint" with value: "admin.soap.endpoint" for Credentials and Authorization related fields
Then Click on the Test Connection button
And Verify the test connection is successful
Then Click on the Create button
And Use new connection
And Select radio button plugin property: "truncateText" with value: "true"
And Select radio button plugin property: "failOnError" with value: "true"
And Select radio button plugin property: "replaceWithSpaces" with value: "false"
And Replace input plugin property: "maxBatchSize" with value: "1000"
Then Validate "Salesforce Marketing" plugin properties
And Close the Plugin Properties page
And Preview and run the pipeline
And Wait till pipeline preview is in running state
And Open and capture pipeline preview logs
And Verify the preview run status of pipeline in the logs is "succeeded"
And Close the pipeline logs
And Close the preview
And Save and Deploy Pipeline
And Run the Pipeline in Runtime
And Wait till pipeline is in running state
Then Verify the pipeline status is "Succeeded"
Then Validate record created in Sink application for Object is equal to expected record