Skip to content

Latest commit

 

History

History
54 lines (49 loc) · 2.69 KB

Translator-Statistics.asciidoc

File metadata and controls

54 lines (49 loc) · 2.69 KB

1. Test Basis

  • Contribution stats only consists of translated, needReview, approved, rejected.

  • When Person A update translation X, contribution stats should +1 on whichever state Person A last save translation X as.

  • When a reviewer Person B approve or reject a translation of Person A, statistic count goes to Person A. (only translation statistic)

  • When a reviewer Person B starts to translate an empty translation, and save as approved/rejected, statistic count goes to Person B. (Person B translated a string).

  • When a reviewer Person B change a not empty translation done by Person A, and save as approved/rejected, statistic count goes to Person A. Person B count should not be affected. (We are assuming reviewer should not make any changes on translation while in review process)

2. Decision Table

Definitions:

THIS USER

The user that is current login and do the action

LAST USER

The user who made the latest change before THIS USER.

Credit for THIS USER

The new statistics THIS USER should obtain.

Credit for LAST USER

The new statistics LAST USER should obtain.

N/A

Not applicable, means the combination is not possible.

The decision table is for the each text flow (string).

Original State New State Same with LAST USER String Change Credit for THIS USER

Credit for LAST USER

-

Untrans

-

-

All stats reset to 0

-

Untrans

NeedWork

T

+Trans,reset other stat

-

Untrans

NeedWork

F

N/A

N/A

NeedWork

NeedWork

T

+NeedWork,reset other stat

-

NeedWork

NeedWork

F

-

-

Translated

NeedWork

-

+NeedWork,reset other stat

-

Approved

NeedWork

-

+NeedWork,reset other stat

-

Reject

NeedWork

-

+NeedWork,reset other stat

-

Untrans

Trans

-

+Trans,reset other stat

-

NeedWork

Trans

-

+Trans,reset other stat

-

Trans

Trans

F

N/A

N/A

Trans

Trans

T

+Trans,reset other stat

-

Approved

Trans

-

+Trans,reset other stat

-

Reject

Trans

-

+Trans,reset other stat

-

Untrans

Approved

-

+Approved,reset other stat

-

NeedWork

Approved

-

-

+Approved,reset other stat

Trans

Approved

-

-

+Approved,reset other stat

Approved

Approved

-

+Approved,reset other stat

-

Reject

Approved

-

-

+Approved,reset other stat

Untrans

Reject

-

N/A

N/A

NeedWork

Reject

T

N/A

N/A

NeedWork

Reject

F

-

+Reject,reset other stat

Translated

Reject

T

N/A

N/A

Translated

Reject

F

-

+Reject,reset other stat

Approved

Reject

T

N/A

N/A

Approved

Reject

F

-

+Reject,reset other stat

Reject

Reject

-