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

Advanced options in git import Automation and Framework utility functions #4694

Merged
merged 21 commits into from
Jun 1, 2020
Merged

Advanced options in git import Automation and Framework utility functions #4694

merged 21 commits into from
Jun 1, 2020

Conversation

makambalaji
Copy link
Contributor

@makambalaji makambalaji commented Mar 9, 2020

Fixes: [ODC-1650] Advance Option for import from git [Automation Script] and also created framework structure

Analysis / Root cause: This PR give the framework structure for automation and also includes script for Advance Option for import from git

Solution Description: This script mainly utilizes for smoke test suite - New App Creation and deletion of the same

Screen shot of Test Log:
UpdatedAutomationCode

Unit test coverage report: NA

Test setup:
Export the kubeconfig and login through CLI with kubeadmin credentials.
Run following commands to create the build:
i. source contrib/oc-environment.sh
ii. ./bin/bridge
Go to the edited code repo and run following command:
NO_HEADLESS=true ./test-gui.sh devconsole

Browser conformance: Chrome

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. component/dev-console Related to dev-console labels Mar 9, 2020
@openshift-ci-robot openshift-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 11, 2020
BalajiMakam added 5 commits March 11, 2020 17:10
appFunctions - Generic to the application like navigation
updated the scenario & view file for git import
1. Delete App component in topology is included
2. README.md is included which helps for automation testers
3. Test Data & Utilities are included which helps to create automation scripts faster
@makambalaji makambalaji changed the title [WIP] Included automaiton testing code for the Advanced options in git Add … [WIP] Included automaiton testing code for the Advanced options in git import and framework related code Mar 17, 2020
@makambalaji makambalaji changed the title [WIP] Included automaiton testing code for the Advanced options in git import and framework related code Included automaiton testing code for the Advanced options in git import and framework related code Mar 17, 2020
@makambalaji makambalaji changed the title Included automaiton testing code for the Advanced options in git import and framework related code [WIP]Included automaiton testing code for the Advanced options in git import and framework related code Mar 19, 2020
@makambalaji makambalaji changed the title [WIP]Included automaiton testing code for the Advanced options in git import and framework related code Included automaiton testing code for the Advanced options in git import and framework related code Mar 19, 2020
@makambalaji makambalaji marked this pull request as ready for review March 19, 2020 09:34
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 19, 2020
@makambalaji
Copy link
Contributor Author

/review @sanketpathak

@makambalaji
Copy link
Contributor Author

/assign @christianvogt

makambalaji and others added 2 commits March 28, 2020 16:52
Formatting lines in README.md..

Co-Authored-By: Andrew Ballantyne <8126518+andrewballantyne@users.noreply.github.com>
Copy link
Contributor

@andrewballantyne andrewballantyne left a comment

Choose a reason for hiding this comment

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

You need to clean up your lints, they are not optional items. Recommend using Prettier to fix most of them.

yarn prettier-all will clean up your spacing problems. But you'll still have 31 lint problems left over.

@makambalaji makambalaji changed the title Included automaiton testing code for the Advanced options in git import and framework related code Advanced options in git import Automation and Framework utility functions Mar 30, 2020
@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 31, 2020
@openshift-ci-robot openshift-ci-robot added component/network-attachment-definition Related to network-attachment-definition component/noobaa Related to noobaa-storage-plugin labels Mar 31, 2020
Copy link
Contributor

@andrewballantyne andrewballantyne left a comment

Choose a reason for hiding this comment

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

@makambalaji I'm still having issues running this.

I get

sendKeys failed for  applicationName  - retry nodejs-ex-git-apptext wastestapp-0401-1153-1353 testapp-0401-1153-1353
sendKeys failed for  applicationName  - second retry nodejs-ex-git-apptext wastestapp-0401-1153-1353text wastestapp-0401-1153-1353 testapp-0401-1153-1353

During the test run and then this error when it fails:

1) git import flow : public git normal flow
   WebDriverError: element click intercepted: Element <input name="name" data-test-id="application-form-app-name" id="form-input-name-field" aria-describedby="form-input-name-field-helper" class="pf-c-form-control" type="text" aria-invalid="false" required="" value="nodejs-ex-git"> is not clickable at point (712, 1183). Other element would receive the click: <div class="pf-c-form__actions">...</div>
     (Session info: headless chrome=80.0.3987.149)
     (Driver info: chromedriver=80.0.3987.16 (320f6526c1632ad4f205ebce69b99a062ed78647-refs/branch-heads/3987@{#185}),platform=Mac OS X 10.15.3 x86_64)

When was the last time you ran it fully? I am wondering if recent feature changes have caused issues with this test. Also, how do you run the tests (I can't use the normal script because of the implicit tie-in to the Chrome version), I use: yarn run test-suite --suite "devconsole" --params.openshift true and it has worked in the past for other tests.

Let me know how your next run goes and perhaps I can work around what is going on for me.

BalajiMakam and others added 4 commits April 2, 2020 17:28
…rt-flow.scenario.ts

Co-Authored-By: Andrew Ballantyne <8126518+andrewballantyne@users.noreply.github.com>
Please use below commands to execute the code
export FORCE_CHROME_BRANCH_BASE="665006"
export FORCE_CHROME_BRANCH_SHA256SUM="a1ae2e0950828f991119825f62c24464ab3765aa219d150a94fb782a4c66a744"
NO_HEADLESS=true ./test-gui.sh devconsole
@andrewballantyne
Copy link
Contributor

You're going to need to rebase too.

@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 3, 2020
@gajanan-more
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 20, 2020
Administrator = ' Administrator Perspective',
}

export const naviagteTo = async function(opt: NavigationMenu) {
Copy link
Contributor

Choose a reason for hiding this comment

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

New nav changes will break this :(

Needs updating.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I understand, but I want them to keep at one place. Which will be easy for maintenance

Copy link
Contributor

Choose a reason for hiding this comment

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

What i'm saying is that the navigation has changed.
Therefore parts of this function are now invalid.

Copy link
Contributor

Choose a reason for hiding this comment

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

Rebase and re-run @makambalaji You'll see the nav changes and your tests should have issues getting the items (if it actually broke and didn't keep the data-test-ids).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh okay , got it will check and update it

@christianvogt
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: christianvogt, gajanan194, makambalaji

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 21, 2020
@spadgett spadgett added this to the v4.5 milestone May 1, 2020
@openshift-merge-robot openshift-merge-robot merged commit dd64828 into openshift:master Jun 1, 2020
@spadgett spadgett modified the milestones: v4.5, v4.6 Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/dev-console Related to dev-console component/network-attachment-definition Related to network-attachment-definition component/noobaa Related to noobaa-storage-plugin lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants