-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
added mouseover, resize and scroll #244
Conversation
ee25439
to
049ae49
Compare
@psiinon Please guide me how can I test the behaviour of the newly added methods? I am not sure weather this will work or not. |
Sure :)
|
okay thank you. |
Also worth looking at the codebase (e.g. |
how can I run the script from the command line ? |
Theres https://github.com/zaproxy/zest/wiki/Commandline but I havnt tried it in a while - give it a go and let us know if you have any problems... |
f60c9df
to
93135bf
Compare
I have tested it manually and it is working as expected. I am not able to understand what kind of unit test will it need to be written. Please guide me through it. I have seen |
The tests you did manually do them automatically :) If that's not possible verify that at least the expected classes are called, other behaviour than the Edit: To be clear I do think that all 3 statements being added can be tested automatically. |
src/main/java/org/zaproxy/zest/core/v1/ZestClientElementMouseOut.java
Outdated
Show resolved
Hide resolved
src/main/java/org/zaproxy/zest/core/v1/ZestClientElementMouseOut.java
Outdated
Show resolved
Hide resolved
src/main/java/org/zaproxy/zest/core/v1/ZestClientElementMouseOut.java
Outdated
Show resolved
Hide resolved
src/main/java/org/zaproxy/zest/core/v1/ZestClientElementScroll.java
Outdated
Show resolved
Hide resolved
src/main/java/org/zaproxy/zest/core/v1/ZestClientElementScroll.java
Outdated
Show resolved
Hide resolved
Thankyou @thc202 |
@thc202 I have written test for scrolling as of now. Please check if I went into the right direction, then I will write for others as well. |
dc7058d
to
6aad95a
Compare
cc40007
to
2688696
Compare
@aryangupta701 - looking good so far, let us know when its ready to review again. |
okay sure. |
a7933d3
to
df5822b
Compare
I do think that these methods along with already present methods will be sufficient to handle all the user interactions. If you think I am missing something please tell me. |
df5822b
to
912432e
Compare
src/main/java/org/zaproxy/zest/core/v1/ZestClientWindowResize.java
Outdated
Show resolved
Hide resolved
src/main/java/org/zaproxy/zest/core/v1/ZestClientWindowResize.java
Outdated
Show resolved
Hide resolved
IMO a scroll to statement would be easier to use in most cases (though the scroll element might still be useful/needed in some cases). This one was not yet addressed, the invoke methods are not being tested. |
21b1e48
to
953bdbb
Compare
You don't need to mock the |
okay thanks. Will I need to create a test website to test mouseover statement? |
Yes, you can serve static data like done in the test mentioned earlier (e.g. check |
okay. |
7d749ad
to
7b618fb
Compare
@thc202 Could you please review and tell me if anything needs to be changed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just a question about license/header for the team
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess thats a separate discussion - I dont mind too much either way either 😉
src/test/java/org/zaproxy/zest/test/v1/ZestClientElementMouseOverUnitTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/zaproxy/zest/test/v1/ZestClientWindowResizeUnitTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: aryangupta701 <garyan447@gmail.com>
410c808
to
4ce6e31
Compare
Signed-off-by: aryangupta701 <garyan447@gmail.com>
Signed-off-by: aryangupta701 <garyan447@gmail.com>
Signed-off-by: aryangupta701 <garyan447@gmail.com>
Signed-off-by: aryangupta701 <garyan447@gmail.com>
Signed-off-by: aryangupta701 <garyan447@gmail.com>
Signed-off-by: aryangupta701 <garyan447@gmail.com>
Signed-off-by: aryangupta701 <garyan447@gmail.com>
Signed-off-by: aryangupta701 <garyan447@gmail.com>
Signed-off-by: aryangupta701 <garyan447@gmail.com>
Signed-off-by: aryangupta701 <garyan447@gmail.com>
73230ec
to
63c8278
Compare
Thank you! |
Fix #243
Added mouseover, resize and scroll methods to handle hovering, resizing window and scrolling.