Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E cloud datastore #49

Merged
merged 1 commit into from
Apr 12, 2024
Merged

E2E cloud datastore #49

merged 1 commit into from
Apr 12, 2024

Conversation

AnkitCLI
Copy link
Collaborator

@AnkitCLI AnkitCLI commented Mar 7, 2024

No description provided.

@AnkitCLI AnkitCLI force-pushed the e2e-clouddatastore-ITN branch 2 times, most recently from 85efbc2 to aa4d62a Compare March 11, 2024 08:14
@@ -0,0 +1,37 @@
/*
* Copyright © 2021 Cask Data, Inc.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to 2024

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

@@ -0,0 +1,38 @@
/*
* Copyright © 2021 Cask Data, Inc.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change here as well to 2024

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

@RunWith(Cucumber.class)
@CucumberOptions(
features = {"src/e2e-test/features"},
glue = {"io.cdap.plugin.datastore.stepsdesign", "io.cdap.plugin.gcs.stepsdesign",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to add gcs and big query steps design in glue. Are you using them in your datastore tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the unused files

@CucumberOptions(
features = {"src/e2e-test/features"},
glue = {"io.cdap.plugin.datastore.stepsdesign", "io.cdap.plugin.gcs.stepsdesign",
"io.cdap.plugin.common.stepsdesign", "io.cdap.plugin.bigquery.stepsdesign", "stepsdesign"},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check here as well and remove if not needed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the unused files

fieldName=firstName
name=Antonio
age=23
result=
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the value blank?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes the value is blank for true or false. Blank value represents true.

@@ -0,0 +1,20 @@
package io.cdap.plugin.datastore.stepsdesign;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the license and java doc. Refer any existing action class.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Execute the tests with verify command to for check styles locally.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the javadoc and separate directories.

@@ -0,0 +1,13 @@
package io.cdap.plugin.datastore.stepsdesign;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the license and java doc. Refer any existing action class.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added.

@@ -0,0 +1,17 @@
package io.cdap.plugin.datastore.stepsdesign;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the license and java doc. Refer any existing action class.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added.

@@ -0,0 +1,17 @@
package io.cdap.plugin.datastore.stepsdesign;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add separate folder structure for actions, locators, stepdesign and place the respective class files in each folder. refer folder structuring of any existing plugin.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

# License for the specific language governing permissions and limitations under
# the License.

@DataStore
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the datastore folder name in e2e.yml file to execute the tests on GitHub.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added.

Then Validate OUT record count is equal to IN record count
Then Open and capture logs
Then Verify the pipeline status is "Succeeded"
Then Close the pipeline logs
Copy link
Collaborator

@itsmekumari itsmekumari Mar 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add data validation step in all scenarios, refer ITN if added.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now we are not going with data validation step for datastore.

@AnkitCLI AnkitCLI force-pushed the e2e-clouddatastore-ITN branch 3 times, most recently from cd695ca to 1493856 Compare March 18, 2024 04:59
*/
public class DataStoreActions {
static {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the extra space

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

SeleniumHelper.getPropertiesLocators(DataStoreLocators.class);
}

public static void enterKind(String kindName) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add small java doc for methods.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

ElementHelper.sendKeys(DataStoreLocators.kind, kindName);
}

public static void enterAncestor() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we creating method to send text, can't we use existing framework steps ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are going with as per ganesh's comments to go for locators with data-testid if we can use them, so i just use these 2 new fields with data-testid.

@AnkitCLI AnkitCLI force-pushed the e2e-clouddatastore-ITN branch from 1493856 to 04ca11f Compare March 18, 2024 08:40
@AnkitCLI AnkitCLI force-pushed the e2e-clouddatastore-ITN branch 2 times, most recently from 93d849f to 8584235 Compare March 19, 2024 11:17
@AnkitCLI AnkitCLI force-pushed the e2e-clouddatastore-ITN branch 3 times, most recently from c2cdb2b to 5f25453 Compare March 28, 2024 17:19
@AnkitCLI AnkitCLI force-pushed the e2e-clouddatastore-ITN branch 2 times, most recently from e80ad17 to 90c4a30 Compare April 9, 2024 10:17
@AnkitCLI AnkitCLI force-pushed the e2e-clouddatastore-ITN branch 2 times, most recently from b2510c1 to 36cafd1 Compare April 12, 2024 04:52
@AnkitCLI AnkitCLI force-pushed the e2e-clouddatastore-ITN branch from 36cafd1 to d24f456 Compare April 12, 2024 07:47
@AnkitCLI AnkitCLI merged commit 66aafa1 into develop Apr 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants