Skip to content

Latest commit

 

History

History
1207 lines (1182 loc) · 46.9 KB

gpos-patch-3-release-v1.5.3-alpha.md

File metadata and controls

1207 lines (1182 loc) · 46.9 KB

GPOS Patch 3, release v1.5.3-alpha

Release Notes: https://github.com/peerplays-network/peerplays-core-gui/releases/tag/v1.5.3-alpha

{% hint style="info" %} copy of GPOS GUI - Power Up/Power Down : https://peerplays.atlassian.net/wiki/spaces/PROJECTS/pages/328270030/GPOS+GUI+-+Power+Up+Power+Down {% endhint %}

Sanity Testing

Pres-requisite : new wallet account and existing account with GPOS balance

Description Expected Result QA
Testing Notes
Pass/Fail Build
Login to PeerPlays Wallet dApp with new wallet account created

Should login successfully and display home page

Validate GPOS Panel exists in right side of the wallet home page

Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate content of the GPOS Panel

GPOS Panel should contain

  • GPOS description "Gamified Proof of Stake (GPOS) enables you to earn rewards of multiple cryptocurrencies supported in Peerplays by helping secure the network. Learn More" note: ‘Learn More’ is a text button that will open the GPOS FAQ
  • A button with text "GET STARTED" and background color green and is clickable
  • Verify following parameters are displayed
    • GPOS Balance
    • Voting Performance
    • Quality Reward %
    • Estimated rake reward %

"GET STARTED" Button is not Green

Pass Peerplays-Core-GUI- 1.5.1-alpha
Click on "GET STARTED" button in the GPOS Panel Peerplays GPOS Wizard will open with Power Up, Power Down and Cancel buttons Pass Peerplays-Core-GUI- 1.5.1-alpha

Click on "GET STARTED" button in the GPOS Panel and then Power Up

Add amount 50 TEST to vest

GPOS Panel should display GPOS Balance 50 TEST Pass Peerplays-Core-GUI- 1.5.1-alpha
Click on CANCEL and Logout Pass Peerplays-Core-GUI- 1.5.1-alpha
Login to PeerPlays Wallet dApp with existing account with GPOS balance

Should login successfully and display home page

Validate GPOS Panel exists in right side of the wallet home page

Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate content of the GPOS Panel

GPOS Panel should contain

  • GPOS description "Gamified Proof of Stake (GPOS) enables you to earn rewards of multiple cryptocurrencies supported in Peerplays by helping secure the network. Learn More" note: ‘Learn More’ is a text button that will open the GPOS FAQ
  • A button with text "PARTICIPATE"and background color blue and is clickable
  • Verify following parameters are displayed
    • GPOS Balance
    • Voting Performance
    • Quality Reward %
    • Estimated rake reward %
Pass Peerplays-Core-GUI- 1.5.1-alpha
Click on "PARTICIPATE" button in the GPOS Panel Peerplays GPOS Wizard will open with Power Up, Power Down and Cancel buttons No Cancel Button. Vote button instead of cancel. Pass 1.0.28
Click on CANCEL and Logout Should logout successfully No Cancel Button. Done button used Pass 1.0.28

Functional Testing

Validate content of GPOS Panel

Pre-requisite : two wallet accounts user1 with vesting balance and user2 with zero vesting balance

Description Expected Result QA
Testing Notes
Pass/Fail Build
Login to PeerPlays Wallet dApp with user2 and password Should login successfully and display home page Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate GPOS Panel exists in right side of the wallet home page Pass Peerplays-Core-GUI- 1.5.1-alpha

Validate content of the GPOS Panel

If GPOS Balance <= 0

GPOS Panel should contain

  • GPOS description "Gamified Proof of Stake (GPOS) enables you to earn rewards of multiple cryptocurrencies supported in Peerplays by helping secure the network. Learn More" note: ‘Learn More’ is a text button that will open the GPOS FAQ
  • A button with text "GET STARTED" and background color green and is clickable
Pass Peerplays-Core-GUI- 1.5.1-alpha
  • Verify following parameter names are displayed (letter case should match)
    • GPOS Balance
    • Voting Performance
    • Quality Reward %
    • Estimated Rake Reward %

Click on 'Lean More' will open Help modal displaying GPOS section with Header GAMIFIED PROOF OF STAKE and content:

The Peerplays blockchain uses Gamified Proof of Stake (GPOS) as the means to maintaining blockchain security while incorporating the human design element necessary for effective voting mechanics.

By participating in GPOS you are staking your PPY for a period of 30 days. After the 30 day time period, you may request to withdraw the staked PPY.

During the staking period, you will be capable of participating in the voting of node operators and other important functions within the Peerplays ecosystem. Advisors, Witnesses, new Proposals, SONs, and other types of nodes and providers that make up the Peerplays ecosystem will benefit from your votes.

For your contribution in helping secure the blockchain, you will receive Participation Rewards. These rewards are based on the amount of PPY you have staked relative to the rest of the network distribution. Participation Rewards are given out each month and are based on the collective activity (i.e.: blockchain fees) on the Peerplays blockchain. As more value comes into the network, this is sent to you as a reward for helping make it happen.
For more detailed help please visit https://www.peerplays.com/ppy-tokens/#peerplays-core-wallet

Pass Peerplays-Core-GUI- 1.5.1-alpha
Verify GPOS Balance should be 0 Pass Peerplays-Core-GUI- 1.5.1-alpha
Verify Voting Performance No Rewards in Dark Red Pass Peerplays-Core-GUI- 1.5.1-alpha
Verify Quality Reward % should be 0% Pass Peerplays-Core-GUI- 1.5.1-alpha
Verify Estimated rake reward % should be 0% Pass Peerplays-Core-GUI- 1.5.1-alpha
Logout and Login to PeerPlays Wallet dApp with user1 and password Should login successfully and display home page Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate GPOS Panel exists in right side of the wallet home page Pass Peerplays-Core-GUI- 1.5.1-alpha

Validate content of the GPOS Panel

If GPOS Balance > 0

GPOS Panel should contain

  • GPOS description "Gamified Proof of Stake (GPOS) enables you to earn rewards of multiple cryptocurrencies supported in Peerplays by helping secure the network. Learn More" note: ‘Learn More’ is a text button that will open the GPOS FAQ
  • A button with text "PARTICIPATE"and background color blue and is clickable
Pass Peerplays-Core-GUI- 1.5.1-alpha
Verify GPOS Balance should be total amount vested of type GPOS Pass Peerplays-Core-GUI- 1.5.1-alpha
Verify Voting Performance

Expected values is based on Vesting Factor

Please refer to the table in next cell for expected text to display

Note: This could be text that gives feedback on the user's voting performance ( vesting_factor ). Pass Peerplays-Core-GUI- 1.5.1-alpha
Quality Reward % = vesting factor * 100 Note: if there decimal places it should display only first two decimals Pass Peerplays-Core-GUI- 1.5.1-alpha
Verify Estimated rake reward %

Estimated rake reward % = (b / TB) * p

where

b = User GPOS balance
TB = Total GPOS balance on blockchain
p = Reward %

Pass Peerplays-Core-GUI- 1.5.1-alpha

Getting Started/Power Up

Pre-requisite : new wallet account or account without GPOS vesting balance

Description Expected Result QA
Testing Notes
Pass/Fail Build
Login to PeerPlays Wallet dApp with a valid username and password and with 0 GPOS balance

Should login successfully and display home page

In GPOS Panel, Only Get Started button should exist

Pass Peerplays-Core-GUI- 1.5.1-alpha
In GPOS Panel, Click on Get Started button

Peerplays GPOS Wizard dialog will open and verify below content.

Description: "Join GPOS by transferring your PPY to your GPOS balance.

Consistently participate in voting for the best Witnesses, Advisors, Proposals, and SONs.

Share the exciting news and DApps available on Peerplays with others.

The more value that comes into Peerplays blockchain through its operations, the more those that participate to help make it secure will earn!

If you want to increase your participation rewards you can do it two ways:

  1. Transfer more PPY into your GPOS balance
  2. Share Peerplays with others

Together as a Decentralized Autonomous Cooperative (DAC), we can ensure Peerplays remains the most secure provably fair blockchain globally."

POWER UP, POWER DOWN , VOTE and CANCEL buttons should exist

POWER UP button should be enabled

POWER DOWN button should be disabled

VOTE button should be disabled

CANCEL button should be enabled

Pass Peerplays-Core-GUI- 1.5.1-alpha
Click on POWER UP button

Power Up screen will open with

Description:

When you Power Up your PPY on the Peerplays blockchain you are taking your first steps into participating in the Decentralized Autonomous Cooperative (DAC) that is the magic in blockchain tech. This means you will:

  • Become a big part of something special on a global scale
  • Earn participation rewards for your efforts
  • Bragging rights to family and friends
  • Stake your PPY while you participate
  • Help secure the Peerplays blockchain

Opening GPOS Balance

Deposit field

New GPOS Balance

CANCEL button will be enabled

SUBMIT button will be disabled

Pass Peerplays-Core-GUI- 1.5.1-alpha
Click on CANCEL button returns to previous step - "Getting Started" Pass Peerplays-Core-GUI- 1.5.1-alpha
Click on Get Started button Getting Started dialog will open Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate Opening GPOS Balance should be 0 PPY Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate New GPOS Balance same as Opening GPOS Balance Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate Deposit input field

Validate:

  1. Only numbers are permitted
  2. Character limit of 32
  3. Negative numbers not permitted
  4. Numbers larger than available balance not permitted

Comment:

  1. E and e are permitted in deposit field.
  2. Can't check character limit of 32 as don't have so many TEST for same.
Fail Peerplays-Core-GUI- 1.5.1-alpha
Enter valid PPY amount in Deposit field

should not throw any error

New GPOS Balance should display the amount entered in Deposit field

SUBMIT button will be enabled

Pass Peerplays-Core-GUI- 1.5.1-alpha
Click on SUBMIT button

The content where the form exists will be replaced with a loading animation

The "Submit" and "Cancel" buttons will be disabled during this animation.

User should not be able to close the modal/dialog during this animation.

On Success:

  • Loading animation goes away and in its place display a success message.
    • "You have successfully Powered Up!".
    • And a Next button
Pass Peerplays-Core-GUI- 1.5.1-alpha

On Failure:

  • Loading animation goes away and in its place display a failure message.
    • "You have failed to Power Up!"
    • and a "Retry" button
    • click on "Retry" will reset the Power Up form to what it was as if it had never failed

Comment:

  1. No such condition arises

If Power Up was success,

Click on Next button

Should take to Peerplays GPOS Wizad which has Power Up, Power Down , Vote and Done buttons.

All button should be enabled

Comment:

  1. Power Up button is disabled.
  2. If user logout and again login then all button's are enabled.
Fail Peerplays-Core-GUI- 1.5.1-alpha
Click on Done button

GPOS Wizard will close.

In Wallet Main Page

  • Verify GPOS metrics ; GPOS Balance and Estimated Rake Reward % are updated on GPOS Panel
    • GPOS Balance = Power Up Balance
    • Estimated Rake Reward % = (User GPOS Balance/ Network GPOS Balance) * Vesting Factor
    • Get Started button will be replaced with Participate button
  • also main account balance/Available Balances
    • Available Balances = Prev Available Balances - Power Up Balance - Transaction Fee
Pass Peerplays-Core-GUI- 1.5.1-alpha

Participate/Power Up

Pre-requisite : Peerplays account with GPOS vesting balance

Description Expected Result QA
Testing Notes
Pass/Fail Build
Login to PeerPlays Wallet dApp with a valid username and password and with GPOS balance > 0

Should login successfully and display home page

GPOS Panel should contain

  • GPOS description
  • A button with text "Participate" and is clickable
  • GPOS Balance
  • Voting Performance
  • Quality Reward %
  • Estimated Rake Reward %
Pass Peerplays-Core-GUI- 1.5.1-alpha
In GPOS Panel, Click on Participate button

Peerplays GPOS Wizard dialog will open and verify below content.

Description: "Join GPOS by transferring your PPY to your GPOS balance.

Consistently participate in voting for the best Witnesses, Advisors, Proposals, and SONs.

Share the exciting news and DApps available on Peerplays with others.

The more value that comes into Peerplays blockchain through its operations, the more those that participate to help make it secure will earn!

If you want to increase your participation rewards you can do it two ways:

  1. Transfer more PPY into your GPOS balance
  2. Share Peerplays with others

Together as a Decentralized Autonomous Cooperative (DAC), we can ensure Peerplays remains the most secure provably fair blockchain globally."

POWER UP, POWER DOWN , VOTE and CANCEL buttons should exist

POWER UP button should be enabled

POWER DOWN button should be enabled

VOTE button should be enabled

CANCEL button should be enabled

Comment:

  1. If user logout and again login then all button's are enabled.

Pass Peerplays-Core-GUI- 1.5.1-alpha
Click on POWER UP button

Power Up screen will open with

Description:

When you Power Up your PPY on the Peerplays blockchain you are taking your first steps into participating in the Decentralized Autonomous Cooperative (DAC) that is the magic in blockchain tech. This means you will:

  • Become a big part of something special on a global scale
  • Earn participation rewards for your efforts
  • Bragging rights to family and friends
  • Stake your PPY while you participate
  • Help secure the Peerplays blockchain

Opening GPOS Balance

Deposit field

New GPOS Balance

CANCEL button will be enabled

SUBMIT button will be disabled

Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate Opening GPOS Balance should be current gpos balance of the user say X PPY/TEST Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate Current GPOS Balance should be same Opening GPOS Balance Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate Deposit input field

Validate:

  1. Only numbers are permitted
  2. Character limit of 32
  3. Negative numbers not permitted
  4. Numbers larger than available balance not permitted

Comment:

  1. E and e are permitted in deposit field.
  2. Can't check character limit of 32 as don't have so many TEST for same.
Fail Peerplays-Core-GUI- 1.5.1-alpha
Enter valid PPY amount in Deposit input field

should not throw any error

New GPOS Balance = Deposit Amount + Opening GPOS balance(X)

SUBMIT button will be enabled

Pass Peerplays-Core-GUI- 1.5.1-alpha
Click on SUBMIT button

The content where the form exists will be replaced with a loading animation

The "Submit" and "Cancel" buttons will be disabled during this animation.

User should not be able to close the modal/dialog during this animation.

On Success:

  • Loading animation goes away and in its place display a success message.
    • "You have successfully Powered Up!".
    • And a Next button
Pass Peerplays-Core-GUI- 1.5.1-alpha

On Failure:

  • Loading animation goes away and in its place display a failure message.
    • "You have failed to Power Up!"
    • and a "Retry" button
    • click on "Retry" will reset the Power Up form to what it was as if it had never failed

Comment:

  1. No such condition arises

If Power Up was success,

Click on Next button

Should take to Peerplays GPOS Wizad which has Power Up, Power Down , Vote and Done buttons.

All button should be enabled

Comment:

  1. Power Up button is disabled.
  2. If user logout and again login then all button's are enabled.
Fail Peerplays-Core-GUI- 1.5.1-alpha
Click on Done button

GPOS Wizard will close.

In Wallet Main Page

  • Verify GPOS metrics - GPOS Balance and Estimated Rake Reward % are updated on GPOS Panel
    • GPOS Balance = Previous GPOS Balance + New Power Up Balance
    • Estimated Rake Reward % = (User GPOS Balance/ Network GPOS Balance) * Vesting Factor
  • also main account balance/Available Balances
    • Available Balances = Prev Available Balances - Power Up Balance - Transaction Fee
Pass Peerplays-Core-GUI- 1.5.1-alpha

Participate/Power Down

Pre-requisite : Peerplays account with GPOS vesting balance

Note: This testcase should be executed for the following cases:

  1. User has made single vesting, it has passed lockin period and available for withdrawal → withdraw partial amount and then remaining amount
  2. User has made multiple vesting, atleast first vesting has passed lockin period → withdraw first vesting balance
  3. User has made multiple vesting, two or more vesting have passed lockin period → make a withdraw where withdraw amount = sum of more 2 or more vesting balances
  4. Note: withdraw transaction fee should be same for all the scenarios mentioned above
Description Expected Result QA
Testing Notes
Pass/Fail Build
Login to PeerPlays Wallet dApp with a valid username and password and with GPOS balance > 0

Should login successfully and display home page

GPOS Panel should contain

  • A button with text "Participate" and is clickable
Pass Peerplays-Core-GUI- 1.5.1-alpha
In GPOS Panel, Click on Participate button

Peerplays GPOS Wizard dialog will open and verify below content.

Description: "Join GPOS by transferring your PPY to your GPOS balance.

Consistently participate in voting for the best Witnesses, Advisors, Proposals, and SONs.

Share the exciting news and DApps available on Peerplays with others.

The more value that comes into Peerplays blockchain through its operations, the more those that participate to help make it secure will earn!

If you want to increase your participation rewards you can do it two ways:

  1. Transfer more PPY into your GPOS balance
  2. Share Peerplays with others

Together as a Decentralized Autonomous Cooperative (DAC), we can ensure Peerplays remains the most secure provably fair blockchain globally."

POWER UP, POWER DOWN , VOTE and CANCEL buttons should exist

POWER UP button should be enabled

POWER DOWN button should be enabled

VOTE button should be enabled

CANCEL button should be enabled

Pass Peerplays-Core-GUI- 1.5.1-alpha
Click on POWER DOWN button

Power Down screen will open with following info

Description:

When you Power Down it will take 30 days for you to withdraw your PPY balance in full. You will continue to receive participation rewards during that time so long as you have been participating. After Power Down you can then use your PPY like any other cryptocurrency. This means you will:

  • Still be a part of something special, just not as much
  • No longer helping secure the Peerplays blockchain
  • No longer earn participation rewards
  • Lose bragging rights
  • Stop staking your PPY

Opening GPOS Balance

Available GPOS Balance

Withdraw Field

New GPOS Balance

CANCEL button will be enabled

SUBMIT button will be disabled

Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate Opening GPOS Balance should be current gpos balance of the user say X TEST Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate Available GPOS Balance should be withdrawable gpos balance (Vesting balances which have crossed lock in period) of the user say X TEST Pass Peerplays-Core-GUI- 1.5.1-alpha
Validate Withdraw input field

Validate:

  1. Only numbers are permitted
  2. Character limit of 32
  3. Negative numbers not permitted
  4. Numbers larger than available balance not permitted

Comment:

  1. E and e are permitted in deposit field.

  1. Can't check char limit of 32 as don't have sum for same.
Fail Peerplays-Core-GUI- 1.5.1-alpha
Enter valid PPY/TEST amount in Withdraw input field

should not throw any error

New GPOS Balance = Opening GPOS balance(X) - Withdraw amount

SUBMIT button will be enabled

Pass Peerplays-Core-GUI- 1.5.1-alpha
Click on SUBMIT button

The content where the form exists will be replaced with a loading animation

The "Submit" and "Cancel" buttons will be disabled during this animation.

User should not be able to close the modal/dialog during this animation.

On Success:

  • Loading animation goes away and in its place display a success message.
    • "You have successfully Powered Down!".
    • And a Next button
Pass Peerplays-Core-GUI- 1.5.1-alpha

On Failure:

  • Loading animation goes away and in its place display a failure message.
    • "You have failed to Power Down!"
    • and a "Retry" button
    • click on "Retry" will reset the Power Down form to what it was as if it had never failed

Comment:

  1. No such condition arises
Pass Peerplays-Core-GUI- 1.5.1-alpha

If Power Down was success,

Click on Next button

Should take to Peerplays GPOS Wizad which has Power Up, Power Down , Vote and Done buttons.

If GPOS Balance is 0, then except Power Up and Done button, all others should be disabled

If GPOS Balance > 0, then all button should be enabled

Comment:

Failed case

When GPOS Balance > 0

  1. Power Down button is disabled

Fail Peerplays-Core-GUI- 1.5.1-alpha
Click on Done button

GPOS Wizard will close.

In Wallet Main Page

  • Verify GPOS metrics - GPOS Balance and Estimated Rake Reward % are updated on GPOS Panel
    • GPOS Balance = Previous GPOS Balance - Withdraw Balance
    • Estimated Rake Reward % = (User GPOS Balance/ Network GPOS Balance) * Vesting Factor
    • If GPOS Balance = 0, verify Participate button is replaced with Get Started button
  • also main account balance/Available Balances
    • Available Balances = Prev Available Balances + Withdraw Balance - Transaction Fee
Note: Network/Total GPOS Balance can be fetched using get_gpos_info api call Pass Peerplays-Core-GUI- 1.5.1-alpha
Logout and Login and then navigate to Power Down Modal Verify Opening GPOS Balance and Available GPOS balances up to date Pass Peerplays-Core-GUI- 1.5.1-alpha