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

Changed the Environment Reference #3198

Merged
merged 9 commits into from
Sep 13, 2023
Merged

Conversation

manas-droid
Copy link
Contributor

@manas-droid manas-droid commented Aug 24, 2023

Changed the Environment Reference from the first in the environment variables list to the currently selected Environment.
This change was made for clients to use Environment Variables in Page Object Model. Now clients can use variables of the currently selected environment.

Thank you for your contribution.
Before submitting this PR, please make sure:

  • PR description and commit message should describe the changes done in this PR
  • Verify the PR is pointing to correct branch i.e. Release or Beta branch if the code fix is for specific release , else point it to master
  • Latest Code from master or specific release branch is merged to your branch
  • No unwanted\commented\junk code is included
  • No new warning upon build solution
  • Code Summary\Comments are added to my code which explains what my code is doing
  • Existing unit test cases are passed
  • New Unit tests are added for your development
  • Sanity Tests are successfully executed for New and Existing Functionality
  • Verify that changes are compatible with all relevant browsers and platforms.
  • After creating pull request there should not be any conflicts
  • Resolve codacy comments
  • Builds and checks are passed before PR is sent for review
  • Resolve code review comments
  • Help Libray document is updated accordingly for Feature changes.

@@ -941,16 +942,26 @@ private void xTestButton_Click(object sender, RoutedEventArgs e)
{
if (mVE == null)
{
if (mContext.Environment == null && mEnvs != null && mEnvs.Count > 0)
if (mContext.Environment == null && mEnvs != null && mEnvs.Count > 0 && WorkSpace.Instance.UserProfile.RecentEnvironment != Guid.Empty)
Copy link
Contributor

@Maheshkale447 Maheshkale447 Sep 5, 2023

Choose a reason for hiding this comment

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

Please keep old condition as is in case WorkSpace.Instance.UserProfile.RecentEnvironment is empty or null or if GetCurrentEnvironment() returns null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Implemented the requested change

Copy link
Contributor

Choose a reason for hiding this comment

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

add else part to this if which will return first environment in case WorkSpace.Instance.UserProfile.RecentEnvironment is empty or null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added the requested changes

@Maheshkale447 Maheshkale447 merged commit 4465505 into master Sep 13, 2023
15 checks passed
@Maheshkale447 Maheshkale447 deleted the BugFix/POMEnvironment branch September 13, 2023 11:14
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.

2 participants