Success

User tests: Successful: Unsuccessful:

avatar b2z
b2z
22 Nov 2014

This is the PR will allow to post test results with comment. Ref #561.

Testing instructions

  1. Got to test issue on my test website.
  2. Try to post different test results with comment.
    2.1 Check that "Tests" section (in the top right column) is also updated according to your test result.
    2.2 Check that your test activity is displayed.
    2.3 Refresh the page and ensure that the test values are correct and your test activity is still there.
  3. Try to post different test results using "Submit test result" button.
    3.1 Check that "Tests" section and test radio buttons (under the comment textarea) are also updated according to your test result.
    3.2 Check that your test activity is displayed.
    3.3 Refresh the page and ensure that the test values are correct and your test activity is still there.
avatar b2z b2z - open - 22 Nov 2014
avatar b2z
b2z - comment - 2 Dec 2014

@roland-d @rdeutz @brianteeman when you have some time please take a look on it. Thank you!

avatar brianteeman
brianteeman - comment - 2 Dec 2014

1 RuntimeException
Invalid Issue

avatar rdeutz
rdeutz - comment - 2 Dec 2014

@brianteeman you need to login

avatar brianteeman
brianteeman - comment - 2 Dec 2014

all good

On 2 December 2014 at 12:57, Robert Deutz notifications@github.com wrote:

@brianteeman https://github.com/brianteeman you need to login


Reply to this email directly or view it on GitHub
#563 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar rdeutz
rdeutz - comment - 2 Dec 2014

oh wait, I have created a issue on joomla-cms thought there is another repo, don't think it is such a good idea to create issues on our repo just for testing

avatar zero-24
zero-24 - comment - 2 Dec 2014

@rdeutz i think that is the reason for this or i'm wrong?
http://issues.joomla.org/tracker/jtests

avatar b2z
b2z - comment - 2 Dec 2014

@zero-24 yeap you are right

:smile: @rdeutz that is why we have jtests repo to for testing ;) BTW I found a small issue because of your test in the CMS repo - tests radio buttons should not be displayed if this is not a Pull Request.

avatar rdeutz
rdeutz - comment - 2 Dec 2014

sorry for the confusion, seems there is an outcome by accident :-)

beside this, it is working, thanks for the doing the additions, very useful!

avatar b2z
b2z - comment - 2 Dec 2014

Thanks for testing. Will make a fix (does not affect testing addition) and will be good to merge ;)

avatar roland-d
roland-d - comment - 2 Dec 2014

@b2z I don't see the test module on the test item on your test website, is that because this item is not a PR? Now I can't see if that section is updated correctly. We can remove the module altogether I think, to force people to write a comment about their test. The only module that should remain is the option for admins to alter test results.

As for the comment one, it works, only style issue is that the successful, unsuccessful part of the string is not colored. See this screenshot for what I mean:
comment_test_result

avatar b2z
b2z - comment - 2 Dec 2014

I don't see the test module on the test item on your test website, is that because this item is not a PR?

Yes it is. Also test radio buttons should not be displayed if it is not a PR (will fix it). You should find issue with PR ;)

As for the comment one, it works, only style issue is that the successful, unsuccessful part of the string is not colored.

Yeah I also noticed that. This issue exists in the current code base. Will try to fix it also. BTW this is only when activity is ajax loaded. After page refresh the colors are ok.

We can remove the module altogether I think, to force people to write a comment about their test.

Why not? :) But this should remain:

Tests:
    Successful: 0
    Unsuccessful: 2
    brianteeman, rdeutz

@brianteeman @rdeutz @zero-24 what do you think about removing "Submit test result" button?

avatar roland-d
roland-d - comment - 2 Dec 2014

@b2z I agree, the test results must remain for sure.

avatar zero-24
zero-24 - comment - 2 Dec 2014

@b2z @roland-d

what do you think about removing "Submit test result" button?

Generaly :+1: e.g. if you have a look into a PR on github you can't see the successful or unsuccessful tests and need to access issues.joomla.org. Also if someone mark a unsuccessful test you don't know why it fails.

But If we remove it the users need two posts to reset the test. One post with use the "Not tested" button and after this one post to mark the "successful test".

Sure the JBS Module should be still there and JBS members are able to reset it but if we remove it for normal users there are unable to rest it in a easy way.

avatar b2z
b2z - comment - 2 Dec 2014

@zero-24 you are right. I did not think about the "Not tested" option. May be it is ok to post comment also for "Not tested" because it is not used a lot? And if it is used then joomler, please explain why "Not tested"? :smile:

avatar zero-24
zero-24 - comment - 2 Dec 2014

@b2z

And if it is used then joomler, please explain why "Not tested"? :smile:

hehe I'm wrong. You need Not tested only if you what to remove your test (successful or unsccessful).

May be it is ok to post comment also for "Not tested" because it is not used a lot?

Yes. This can only happen if someone was added by a JBS Member and or use the false vote radio :smile:

@b2z I have not tested jet but do we force the users to enter a test result? Maybe someone only would leave a comment without any testing.

avatar b2z
b2z - comment - 2 Dec 2014

do we force the users to enter a test result

I coded that we do not force.

The model should return null if no test result was submitted.

Then I check it:

{% if (item.userTest is defined and item.userTest == 0) %}
    {% set checked = ' checked="checked"' %}
{% else %}
    {% set checked = '' %}
{% endif %}

When I was testing locally it was working. If you did not submit any test results then the radio buttons should do not be checked. But now I see on the test website that it is not working :confused: I will look into it one more time.

avatar b2z
b2z - comment - 2 Dec 2014

So all issues have been solved. @elkuku or @mbabker please review.

And we should decide will we remove tests module or not?

avatar b2z
b2z - comment - 8 Dec 2014

Hey guys! What would be the final decision?

avatar zero-24
zero-24 - comment - 8 Dec 2014

For me we can remove it. As we don't force the user to send a result. But i think @roland-d should / can make a final decision here. Or others from PLT.

avatar mbabker
mbabker - comment - 8 Dec 2014

I'll look at it tonight.

avatar roland-d
roland-d - comment - 8 Dec 2014

@zero-24 makes a very valid point that users need 2 posts to reset a test result, this is undesired in my opinion. So let's keep the test module and just add the test results to the bottom of the comment box.

avatar b2z
b2z - comment - 9 Dec 2014

Great. Than it needs only code review ;)

avatar roland-d
roland-d - comment - 10 Dec 2014

@mbabker Did you get a chance to look at this?

avatar mbabker
mbabker - comment - 10 Dec 2014

Crap, this is what I forgot LOL

With 2.5 done today, I should be able to get to it tonight, promise :-)

avatar b2z
b2z - comment - 16 Dec 2014

Well @mbabker :tongue:

avatar mbabker
mbabker - comment - 16 Dec 2014

OK, I'm mildly lost here. What exactly should I be testing/reviewing? I cloned the live database into my local and checked this branch out, not seeing anything obvious related to logging test results.

avatar mbabker
mbabker - comment - 16 Dec 2014

Oh, silly me, the item wasn't a pull request :blush:

IMO, it looks fine as it is now. No need to drop the full test results module right now, it's a good quick reference spot for that info.

avatar b2z
b2z - comment - 16 Dec 2014

:smile: @mbabker if code is ok then good to merge ;)

avatar mbabker mbabker - close - 19 Dec 2014
avatar mbabker mbabker - reference | - 19 Dec 14
avatar mbabker mbabker - merge - 19 Dec 2014
avatar mbabker mbabker - close - 19 Dec 2014
avatar mbabker mbabker - change - 19 Dec 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-12-19 18:48:14
avatar mbabker mbabker - head_ref_deleted - 19 Dec 2014
avatar b2z
b2z - comment - 20 Dec 2014

Thanks @mbabker for review

Add a Comment

Login with GitHub to post a comment