Barley Test Cases

From BiblePay Wiki
Revision as of 15:37, 31 August 2021 by Admin (talk | contribs)
Jump to: navigation, search

Welcome to BiblePay Q4 2021 - Barley - Test Cases!

Please refer to the testnet thread and its OP Post for other startup information:

https://forum.biblepay.org/index.php?topic=788.new#new



Test Case #1 - Download the Wallet, Install the Wallet, Verify TestNet & Verify Chain is Synced


  • Depending on your OS, download the biblepaycore Wallet:
Windows 64-bit:      https://biblepay.org/biblepaydevelop.exe
Linux 64 bits II (QT/biblepayd/biblepay-cli) zip:  https://biblepay.org/bbp-lin-develop-64.zip
MacOS QT: https://biblepay.org/biblepay-harvest-develop.dmg
Install it in a specific place (not on top of production), for example on windows:  c:\Program files\BiblePayDev 

You can do this by changing the last few characters of the 'Default Installation Location' when you start the wallet. This will let you run biblepay side-by-side your other biblepay production node and not interfere with it.

Launch the wallet the following way to enter testnet:


Option A - Linux:

./biblepaycore -testnet=1 

Option B - Windows:

Go to windows Command Prompt | cd c:\program files\biblepaydev | biblepay-qt -testnet=1 

Option C - Windows:

Look for the BiblePay Develop Shortcut to TestNet in Start | Program Files | All Programs | BiblePayDevelop | TESTNET | Launch the program

Option D - Config File:

Create a configuration file located at "~/.biblepay/biblepaytest.conf" and add the following line in it:
testnet=1
Launch the wallet with "./biblepay -conf=biblepaytest.conf" 


Now that the wallet has launched, lets verify you are in testnet first:

Click Tools | Info | Read "Network":Name | Verify this is TESTNET

Q1. Is your network Name TestNET?


Next, let the wallet sync to the height of 117037+, then check your blockhash.

Go to the RPC Console: Click Tools | Console | Type: getblockhash 117037 The response should be: da2e08e39dcc9e9df42182abb194b393e617cee03974e71cffa9596011b3c817

Q2. Is your hash matching 117037's hash?

Next, lets check the version. From the rpc console, type getnetworkinfo. Read the Build Version.

Q3. The Build version should be 0.17.0.5 or higher. What is your build version?


Verify that you have connections: Click Tools | Info Read "Number of Connections":

Q3. How many connections do you have?


This concludes Test case #1.





Test Case #2 - Send BIBLEPAY back and forth from your wallet to Unchained and back to yourself


  • If you don't have an account at unchained set up, follow this: Navigate to
https://unchained.biblepay.org

When you arrive at the site, it is in MAINNET by default, but we need to be in testnet.

From the left menu, expand Account, and click on My User Record. Click TESTNET.

Now you need a wallet:

Click on the Wallet icon in the upper left corner.

Click Generate New Address.


Copy the 10 seed words to your personal notepad (you can use NOTEPAD in windows for example to paste these in), and keep them for future use in testnet. We may need them.

Click OK.


Now you have an unchained TestNet address, but you still need a nickname in Unchained (this is reqd for Saving Data).


From unchained, click the Left Menu | Expand Account | Click My User Record

Now Populate your Nickname | then Click "SAVE".


Now you can participate in unchained testnet voting, social media, etc IN TESTNET.


  • Now we want to Send biblepay currency from biblepaycore to Unchained.

If you do not have any tBBP in your core wallet (this is TestNet Biblepay), please post something on the forum testnet thread (link is at the top) asking for free tBBP to be sent to you, and paste your receiving address which you can find in "File | Receiving Addresses | Copy one to the clipboard".


Next, lets fund our Unchained wallet.

From BiblePayCore, click Send Money.  Now switch over to Unchained: From Unchained, click the wallet icon, then copy your Unchained receive address to your clipboard.
Paste this address into biblepay core as the SENDING ADDRESS.  Choose an amount, for example 1000 bbp.  Click SEND.


Now we need to wait 1 block for the funds to appear in Unchained.

After 1 block, click around on unchained (IE click a video or anything) and the balance should update.

Q1. Did your transaction successfully flow from BiblePay into Unchained, and were you credited in Unchained the proper amount?


Next, lets send a smaller amount of biblepay back to the core wallet.

From unchained, click the wallet icon. From biblepaycore, copy one of your receiving addresses to the clipboard (you can find these in File | Receiving Addresses).

Paste the address in unchained in the WALLET Send To Address field.

Send a smaller amount back to your core wallet (so that you still have funds in testnet to play around later in future test cases).

Wait 1 block, and verify your BiblePay Core balance has increased (take note of the balance and write it down first etc).


Q2. Did your biblepaycore balance successfully increase, and your unchained balance decrease by the correct amount?


---