-
Notifications
You must be signed in to change notification settings - Fork 18
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
Improve acceptance tests #100
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## master #100 +/- ##
==========================================
+ Coverage 94.29% 95.00% +0.71%
==========================================
Files 4 4
Lines 613 621 +8
Branches 98 96 -2
==========================================
+ Hits 578 590 +12
+ Misses 29 27 -2
+ Partials 6 4 -2
Flags with carried forward coverage won't be shown. Click here to find out more. see 3 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
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.
Hey @Harm10 , thank you for the contribution!
Here's my thoughts on this:
-
the main issue why the jobs in the pipeline fails is because pub400.com blocks request from IPs if there are too many requests. This is what is causing the "Host disconnected" error you can see in the pipeline. Currently, the only workaround I see for this would be to change the configuration in
.gitbub/workflows/run-tests.yml
to only run on pull requests. However, I also like the benefit of seeing the pipeline run before making a PR, so I would like to keep that. -
I don't think it makes much of a difference if the test teardown fails too if no connection was opened, the result is that the test case failed. But maybe we can make sure that no other clean up steps are run after the Close Connection keywords.
-
as for the tests Send Enter and Send PF, I had taken a look at them previously. Here is my suggestion: how about we change those so that there is no need for a user on pub400.com. For example if you send enter and there is no credentials, there is an error message that we could validate. The same goes for Send PF. Usually there is an error message that say "function key not allowed" which also indicates that a PF was sent.
-
we currently do not define a minimum robot framework version we support, and for the reason mentioned above I would not like to include more jobs in the pipeline, so I think it would be okay if we used syntax features from the newest robot framework version
-
lastly, this project uses robotidy, which is run during the inv lint command, to keep code formatting consistent across multiple developers. Changing this because of individual IDE choice doesn't seem justified to me
@robinmatz My thoughts on your thoughts :-): I did not have problems with pub400 blocking my requests. Perhaps doing a proper login beforehand makes sure of that? Teardown failing only gives noise on the interpretation of the test in my view. I think it is a good idea not having a userid involved (that would also solve the "problem" of the messages being in another language if your user is set to another language! I do not agree with your approach to the version of RF. As far as I am aware the current version still supports the lower ones so using a command like RETURN which is new seems to be out of question to me. I forgot to do inv lint after I changed the code. So you are right that you shouldn't use RIDE and leave it like that. Having said this: do I still need to do something to update this PR? |
Hi @Harm10 , I opened a PR on your repository with my suggested changes. |
Suggested changes for fix-atest
I will review your changes this evening. |
@robinmatz I have tested your merge in my PR and all seems to work well! Big improvement that you do not need an userid of pub400. |
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.
Thanks alot for the improvements in the tests as well as in the documentation!
Coping with several problems (like older RF versions / possibility that connection was not established / extra enter to bypass password about to expire warning).
As I used RIDE 2.0 to edit the tests I also got some lay-out changes enforced by RIDE.