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

7903118: Sanity Tests - Adding four JavaTest GUI newly automated sanity test scripts #24

Closed

Conversation

gollayadav
Copy link
Contributor

@gollayadav gollayadav commented Mar 7, 2022

Adding below automated JavaTest GUI Sanity Test Scripts to the Jemmy regression suite and tested locally on three platforms(Linux, Windows, Mac OS) and working fine.

1.Test_Config_Edit3.java
2.Test_Config_Load1.java
3.Test_Config_New1.java
4. Test_Config_Save2.java


Progress

  • Change must not contain extraneous whitespace

Issue

  • CODETOOLS-7903118: Sanity Tests - Adding four JavaTest GUI newly automated sanity test scripts

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jtharness pull/24/head:pull/24
$ git checkout pull/24

Update a local copy of the PR:
$ git checkout pull/24
$ git pull https://git.openjdk.java.net/jtharness pull/24/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 24

View PR using the GUI difftool:
$ git pr show -t 24

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jtharness/pull/24.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 7, 2022

👋 Welcome back gollayadav! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Mar 7, 2022

@gollayadav This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

7903118: Sanity Tests - Adding four JavaTest GUI newly automated sanity test scripts

Reviewed-by: dbessono

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@dbessono) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Mar 7, 2022
@mlbridge
Copy link

mlbridge bot commented Mar 7, 2022

Webrevs


import jthtest.ConfigTools;

public class Config_SaveEdit extends ConfigTools {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the purpose of this class ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for checking. I think the class 'Config_SaveEdit' is not required because I have extended 'ConfigTools' from the main test script and I have removed it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

thanks, looks good

* at compile-time, but does not exist at
* runtime.
*/
@SuppressWarnings("deprecation")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this done to suppress the warning about deprecated "createWorkDirInTemp" ? "createWorkDirInTemp" is used widely and it seems only in this pack of tests its usage is accompanied with '@SuppressWarnings("deprecation")'. Why is it deprecated? Should it be kept deprecated?

Copy link
Collaborator

@dbessono dbessono Mar 11, 2022

Choose a reason for hiding this comment

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

Or possibly some other - non-deprecated method should be used instead of using a deprecated one and adding "@SuppressWarnings("deprecation")" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for reviewing. I will try to use the non-deprecated method and let you know.

Comment on lines 57 to 65
* @throws ClassNotFoundException If the class does not find it in the
* classpath.
*
* @throws InvocationTargetException Holds an exception thrown by an invoked
* method or constructor.
*
* @throws NoSuchMethodException Occurs when a method is called that exists
* at compile-time, but does not exist at
* runtime.
Copy link
Collaborator

@dbessono dbessono Mar 11, 2022

Choose a reason for hiding this comment

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

What is the idea of copying here a very general description of each exception? This comment seems applicable to all the tests in the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for reviewing. I think this general description is not required for each exception and I have removed this for all the tests in PR.

@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Mar 24, 2022
@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Mar 24, 2022
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Mar 24, 2022
@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Mar 24, 2022
Copy link
Collaborator

@dbessono dbessono left a comment

Choose a reason for hiding this comment

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

With the latest changes Test_Config_Load1.java and Test_Config_Save2.java look not compilable any more.

@gollayadav
Copy link
Contributor Author

With the latest changes Test_Config_Load1.java and Test_Config_Save2.java look not compilable any more.

Sorry for the inconvenience caused. I have corrected the compilation errors now. Could you please check.

@dbessono dbessono self-requested a review March 27, 2022 12:54
Copy link
Collaborator

@dbessono dbessono left a comment

Choose a reason for hiding this comment

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

Looks good, thanks

@gollayadav
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request requires a sponsor label Mar 27, 2022
@openjdk
Copy link

openjdk bot commented Mar 27, 2022

@gollayadav
Your change (at version bd44690) is now ready to be sponsored by a Committer.

@dbessono
Copy link
Collaborator

/sponsor

@openjdk
Copy link

openjdk bot commented Mar 27, 2022

Going to push as commit a800429.

@openjdk openjdk bot added the integrated Pull request has been integrated label Mar 27, 2022
@openjdk openjdk bot closed this Mar 27, 2022
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request requires a sponsor labels Mar 27, 2022
@openjdk
Copy link

openjdk bot commented Mar 27, 2022

@dbessono @gollayadav Pushed as commit a800429.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated
2 participants