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 246025 - [801cat] Test Spec run corrupted - should disable Pause button writing when no data is present
Summary: [801cat] Test Spec run corrupted - should disable Pause button writing when n...
Status: VERIFIED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Synergy (show other bugs)
Version: 8.0.1
Hardware: PC Windows 8
: P1 normal (vote)
Assignee: Vladimir Riha
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-26 19:04 UTC by Lou Dasaro
Modified: 2014-07-27 15:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lou Dasaro 2014-07-26 19:04:07 UTC
Test run corrupted, test case now shows "No Cases to test", was previously around 34%. Stupid me - I was impatient and pressed "Pause" when the Test case failed to load. Thought I was saving what remained...

See http://services.netbeans.org/synergy/client/app/#/run/13/v/2
The Test Spec/run in question is #4: "Lou Dasaro, JavaFX - Create Projects"

I think (?) pressing Pause in some cases causes an empty Test Spec/run to overwrite whatever was previously written, in some cases obliterating the results of the last attempt. Please include a check to see if any cases have been completed before writing an "empty set".

Marked as P1 due to "lost data".

Environment: As of 26-JUL-2014 approximately 19:45 UMT, 
using Google Chrome Version 36.0.1985.125 m
and Test Case http://services.netbeans.org/synergy/client/app/#/specification/268
Comment 1 Vladimir Riha 2014-07-26 20:09:33 UTC
I'm sorry for the troubles.

I can see in log that the assignment was updated with following:

completed cases: 0; time taken 1; total cases 0

I'm working on a fix but it is a bit complicated to "fine-tune it"
Comment 2 Vladimir Riha 2014-07-26 20:28:25 UTC
Should be fixed and changes will be live in a 10 minutes.

What the fix does:
 - Pause button is disabled when no test case is finished (so at least 1 must be skipped/passed/failed)
 - server checks the received data and if it either contains 0 completed case or no test cases at all, it won't save the data

This should prevent saving "nothing".
Comment 3 Jiri Kovalsky 2014-07-27 13:17:31 UTC
Lou, please verify the bug fix when you find some time. Thanks!
Comment 4 Lou Dasaro 2014-07-27 15:55:06 UTC
I have used the Pause button on several occasions, and it works fine for typical use cases.

However, a proper verification of this fix would require Synergy to be in a very slow state, and it hasn't been slow since I filed the bug.

Therefore, I will mark this Verified, and reopen if necessary.