This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241529 - Continuing test run starts at the first test again
Summary: Continuing test run starts at the first test again
Status: VERIFIED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Synergy (show other bugs)
Version: 8.0
Hardware: PC Windows 8
: P2 normal (vote)
Assignee: Vladimir Riha
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-07 10:20 UTC by mienamoo
Modified: 2014-02-07 16:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot after clicking Start/Continue (36.62 KB, image/png)
2014-02-07 10:55 UTC, mienamoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mienamoo 2014-02-07 10:20:54 UTC
I paused testing of the Maven test spec in Synergy, and it shows 12 tests completed on the list of assigned tests. But when I now click Start/Continue, it starts from the beginning of the test spec again instead of continuing.
Comment 1 Vladimir Riha 2014-02-07 10:23:14 UTC
Could you please try to reload page without cache (e.g. open browser in private mode/clear browsing history/reload page with Ctrl+R couple of times)?
Comment 2 Vladimir Riha 2014-02-07 10:25:43 UTC
I've just tried with one of my assignments and it worked for me. I've made some changes in issue 241424, it is possible that your browser still has cached sources (although I'm trying all I can to prevent this).
Comment 3 mienamoo 2014-02-07 10:34:34 UTC
I cleared my history and cache, refreshed a number of times, and tried an incognito tab, and the same thing still happens.

I am using Chrome, if that provides any additional information. :)
Comment 4 Vladimir Riha 2014-02-07 10:47:39 UTC
Well you can check JavaScript console if there is something logged. Open Chrome Developer Tools using e.g. Ctrl+Shift+J after you clicked on Start/Continue and check Console tab.

Could you please attach screenshot if the page once you pressed Continue? Or if you could tell me: 
 - what is displayed in "minutes to finish" on the right side of page
 - how many cases in % it shows are completed (it is next to the "minutes to finished")

When did you paused the assignment?

Can I take over the assignment (change "owner" to me) so I could debug it myself? I won't submit any data, but without being assignee I cannot have a look it. I've just tried the same with newly created assignment for the same specification and it works as well.
Comment 5 mienamoo 2014-02-07 10:53:59 UTC
In the console, I see just this one warning:

event.returnValue is deprecated. Please use the standard event.preventDefault() instead.

I paused the assignment a few days ago, but can't remember exactly when. Screenshot to follow.

You are most welcome to take over the assignment. :)
Comment 6 mienamoo 2014-02-07 10:55:07 UTC
Created attachment 144903 [details]
Screenshot after clicking Start/Continue
Comment 7 Vladimir Riha 2014-02-07 11:00:11 UTC
(In reply to mienamoo from comment #5)
> event.returnValue is deprecated. Please use the standard
> event.preventDefault() instead.

That's harmless, for now :)

> I paused the assignment a few days ago, but can't remember exactly when.
> Screenshot to follow 
> You are most welcome to take over the assignment. :)

Thank you, I'll look into it.
Comment 8 Vladimir Riha 2014-02-07 11:01:57 UTC
Temporary, you can create a new volunteer assignment [1] for Maven so this won't prevent you from testing

[1] http://services.netbeans.org/synergy/client/app/#/assignment/create/run/8
Comment 9 Vladimir Riha 2014-02-07 11:14:33 UTC
Well the problem here is that the progress for this assignment is not in database and if progress is not found, Synergy returns "empty" progress. The fact the the test run page shows 12 completed is thanks to the fact that number of completed cases is stored independently of the progress as such.

I'm very sorry, the progress is unfortunately lost, I need to find out how this could happen to prevent in the future. I'll keep this assignment and change it back to you so e.g. time spent on testing and number of tested cases by you is still added to your statistics.
Comment 10 mienamoo 2014-02-07 11:18:34 UTC
(In reply to Vladimir Riha from comment #9)
> Well the problem here is that the progress for this assignment is not in
> database and if progress is not found, Synergy returns "empty" progress. The
> fact the the test run page shows 12 completed is thanks to the fact that
> number of completed cases is stored independently of the progress as such.
> 
> I'm very sorry, the progress is unfortunately lost, I need to find out how
> this could happen to prevent in the future. I'll keep this assignment and
> change it back to you so e.g. time spent on testing and number of tested
> cases by you is still added to your statistics.

Thanks for looking into the this issue so quickly! I really appreciate it! And don't stress about the lost progress in this case - it won't take long to redo those first few tests again. :)
Comment 11 Vladimir Riha 2014-02-07 12:44:00 UTC
I introduced it on Monday when I enabled some editing when specification is used in paused assignment (used to be disabled at all) but I left this progress dropping...

Anyway, I removed this progress removal at all as it is no longer needed and improved the case when you are trying to Continue on assignment which progress has not been found. Now it shows error message instead of returning "empty" progres.

Assignment is back yours. Thank you for understanding.
Comment 12 mienamoo 2014-02-07 16:57:45 UTC
Thanks for a very fast fix!