Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refs #3210] Replace realm reads for chats with app-db reads #3225

Merged
merged 1 commit into from
Feb 21, 2018

Conversation

dmitryn
Copy link
Contributor

@dmitryn dmitryn commented Feb 6, 2018

Addresses #3210
This second part of ongoing work, part 1 is here #3212

Summary:

Replace realm read for chats data with app-db read as we don't need to touch realm since data is already in app-db.

Review notes:

This is part of further work at #3210

Testing notes:

App behavior should not change. Code changed related to interactions with the chats:

  • chat created
  • member invited
  • member removed
  • member left
  • chat removed

status: ready

@dmitryn
Copy link
Contributor Author

dmitryn commented Feb 6, 2018

Let me first resolve the conflicts.

@@ -477,8 +477,7 @@
(handlers/register-handler-fx
:send-current-message
[(re-frame/inject-cofx :random-id)
(re-frame/inject-cofx :get-last-clock-value)
(re-frame/inject-cofx :get-stored-chat)]
(re-frame/inject-cofx :get-last-clock-value)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i thought we removed :get-last-clock-value, @janherich ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flexsurfer it will be removed after i merge develop

@dmitryn
Copy link
Contributor Author

dmitryn commented Feb 6, 2018

Found bug with public chats - create new pub chat, send message to it, got:

02-06 07:31:47.127  7087  7128 I ReactNativeJS: NAME: "Error"
02-06 07:31:47.127  7087  7128 I ReactNativeJS: MESSAGE: chat.contacts must be of type 'chat-contact[]', got 'null' (null)
02-06 07:31:47.127  7087  7128 I ReactNativeJS:
02-06 07:31:47.127  7087  7128 I ReactNativeJS: create@[native code]
02-06 07:31:47.127  7087  7128 I ReactNativeJS: cljs$core$IFn$_invoke$arity$4
02-06 07:31:47.127  7087  7128 I ReactNativeJS: status_im$data_store$realm$core$create
02-06 07:31:47.127  7087  7128 I ReactNativeJS:
02-06 07:31:47.127  7087  7128 I ReactNativeJS: write@[native code]
02-06 07:31:47.127  7087  7128 I ReactNativeJS: status_im$data_store$realm$core$write
02-06 07:31:47.127  7087  7128 I ReactNativeJS: cljs$core$IFn$_invoke$arity$4
02-06 07:31:47.127  7087  7128 I ReactNativeJS: status_im$data_store$realm$core$save
02-06 07:31:47.127  7087  7128 I ReactNativeJS: status_im$data_store$realm$chats$save
02-06 07:31:47.127  7087  7128 I ReactNativeJS: status_im$data_store$chats$save

UPD: it only happens in this PR, not in current develop.

@janherich
Copy link
Contributor

@dmitryn That bug should not happen on develop

@dmitryn
Copy link
Contributor Author

dmitryn commented Feb 6, 2018

That bug should not happen on develop

@janherich right, i'm just logging it here to remember myself to fix it.

@dmitryn
Copy link
Contributor Author

dmitryn commented Feb 6, 2018

Re-opening, was accidentally closed while merging conflicts with develop branch

@dmitryn dmitryn reopened this Feb 6, 2018
@dmitryn
Copy link
Contributor Author

dmitryn commented Feb 6, 2018

@janherich @flexsurfer it's ready for review after develop has been merged. Please take a look.

@@ -172,14 +172,15 @@
:added-to-at timestamp
:timestamp timestamp
:is-active true}
exists? (chats/exists? group-id)]
(when (or (not exists?) (chats/new-update? timestamp group-id))
exists? (not (nil? chat))]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, (nil? chat) is not necessary and (not chat) will work just as good, but minor point.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janherich ok, i'll get rid of exists? binding at all, because (if chat) reads as clear as (if exists?)

set
(set/intersection identities)
seq
boolean)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems quite complicated for simple membership test, won't fn signature [contacts identity] and body:

((into #{} (map :identity) contacts) identity)

Work just as well ?
Also because it's a simple helper function used just in the protocol.handlers ns, I would define it there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janherich good point. Set is indeed can be used as function for membership test. Will change that.

@dmitryn dmitryn requested a review from yenda February 7, 2018 08:19
@dmitryn
Copy link
Contributor Author

dmitryn commented Feb 7, 2018

@janherich i'm also thinking if chats/new-update? really belongs to data-store.chats namespace as it doesn't deal with data-store anymore.

It's being used in 2 other namespaces: chat/handlers and protocol/handlers so i cannot simply move it to both. Maybe move it to chat.models, not sure what's the best place for it.

@janherich
Copy link
Contributor

janherich commented Feb 7, 2018

@dmitryn I think chat.models is the best place for it, we already have similar "checker" functions concerned with message entities (like add-to-chat?) in chat.models.message namespace

@antdanchenko
Copy link
Contributor

please, ignore e2e tests failures above, all of them are using old 'add contact flow', new flow will be added today

@dmitryn
Copy link
Contributor Author

dmitryn commented Feb 7, 2018

Commits have been squashed.

@goranjovic
Copy link
Contributor

@flexsurfer Are you happy with the changes? Can we move it forward?

@flexsurfer
Copy link
Member

@goranjovic sure

@status-im status-im deleted a comment from statustestbot Feb 9, 2018
@status-im status-im deleted a comment from statustestbot Feb 9, 2018
@status-im status-im deleted a comment from statustestbot Feb 9, 2018
@status-im status-im deleted a comment from statustestbot Feb 9, 2018
@goranjovic
Copy link
Contributor

@dmitryn conflicts :)

@dmitryn dmitryn force-pushed the 3146-realm-reads-part-2 branch 2 times, most recently from f711b4e to 6e95026 Compare February 15, 2018 16:26
@dmitryn
Copy link
Contributor Author

dmitryn commented Feb 15, 2018

Conflicts have been resolved.

@lukaszfryc
Copy link
Contributor

@dmitryn I've tested it and so far it looks good. Could you rebase this branch so I could run end-end tests on the most up to date version of the build?

@statustestbot
Copy link

Automated test results:

test_send_eth_from_wallet_sign_now:x:

Test Steps & Error message:
Looking for ContinueButtonAPK
Looking for RecoverButton

E selenium.common.exceptions.NoSuchElementException: Message: 'RecoverButton' is not found on screen, using: 'xpath://*[@text='Recover']'


test_browse_link_entering_url_in_dapp_view:white_check_mark::

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RequestPasswordIcon
Tap on RequestPasswordIcon
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for full text: 'Here is your signing phrase. You will use it to verify your transactions. Write it down and keep it safe!'
Looking for BackButton
Tap on BackButton
Looking for PlusButton
Tap on PlusButton
Looking for OpenDAapButton
Tap on OpenDAapButton
Looking for EnterUrlEditbox
Type 'status.im' to EnterUrlEditbox
Tap 'Confirm' on native keyboard
Wait for ProgressBarIcon
Wait for ProgressBarIcon
Wait for ProgressBarIcon
Wait for ProgressBarIcon
Wait for ProgressBarIcon
Looking for BackToHomeButton
Tap on BackToHomeButton
Looking for FirstChatElementTitle
FirstChatElementTitle is Status | The Mobile Ethereum Client

test_contact_profile_view:x:

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RequestPasswordIcon
Tap on RequestPasswordIcon
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for full text: 'Here is your signing phrase. You will use it to verify your transactions. Write it down and keep it safe!'
Looking for BackButton
Tap on BackButton
Looking for PlusButton
Tap on PlusButton
Looking for AddNewContactButton
Tap on AddNewContactButton
Looking for PublicKeyEditBox
Type '0x0448243ea6adfd2f825f083a02a1fea11e323a3ba32c9dc9992d3d465e93296438792f11380e14c6700f598e89bafaddd2579823f4273358f9f66828fcac7dd465' to PublicKeyEditBox
Tap 'Confirm' on native keyboard
Looking for ChatOptions
Tap on ChatOptions
Looking for ViewProfileButton

E selenium.common.exceptions.NoSuchElementException: Message: 'ViewProfileButton' is not found on screen, using: 'xpath://*[@text="View profile"]'


test_one_to_one_chat_messages_and_delete_chat:x:

Test Steps & Error message:


E selenium.common.exceptions.WebDriverException: Message: Invalid message: ERROR Internal Server Error


test_transaction_send_command_wrong_password:white_check_mark::

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RecoverButton
Tap on RecoverButton
Looking for PassphraseInput
Type 'pet letter very ozone shop humor shuffle bounce convince soda hint brave' to PassphraseInput
Looking for PasswordInput
Type 'qwerty' to PasswordInput
Looking for ConfirmRecoverAccess
Tap on ConfirmRecoverAccess
Looking for an element by text: 'Evergreen Handsome Cottontail'
Tap 'Confirm' on native keyboard
Looking for PasswordInput
Type 'qwerty' to PasswordInput
Looking for SignInButton
Tap on SignInButton
Looking for full text: 'Wallet'
Looking for PlusButton
Tap on PlusButton
Looking for AddNewContactButton
Tap on AddNewContactButton
Looking for PublicKeyEditBox
Type '0x0406b17e5cdfadb2a05e84508b1a2916def6395e6295f57e92b85f915d40bca3f4a7e4c6d6b25afa840dd042fac83d3f856181d553f34f1c2b12878e774adde099' to PublicKeyEditBox
Tap 'Confirm' on native keyboard
Looking for ChatElement
Tap on ChatElement
Looking for CommandsButton
Tap on CommandsButton
Looking for SendCommand
Tap on SendCommand
Tap '0' on native keyboard
Tap '.' on native keyboard
Tap '0' on native keyboard
Tap '0' on native keyboard
Tap '1' on native keyboard
Wait for SignTransactionButton
Tap on SendMessageButton
Looking for SendMessageButton
Wait for SignTransactionButton
Wait for EnterPasswordInput
Tap on SignTransactionButton
Looking for SignTransactionButton
Wait for EnterPasswordInput
Looking for EnterPasswordInput
Type 'wrong_password' to EnterPasswordInput
Looking for SignTransactionButton
Tap on SignTransactionButton
Looking for full text: 'Wrong password'

test_send_stt_from_wallet_via_enter_recipient_address:white_check_mark::

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RecoverButton
Tap on RecoverButton
Looking for PassphraseInput
Type 'kiss catch paper awesome ecology surface trumpet quit index open stage brave' to PassphraseInput
Looking for PasswordInput
Type 'new_unique_password' to PasswordInput
Looking for ConfirmRecoverAccess
Tap on ConfirmRecoverAccess
Looking for an element by text: 'Impractical Afraid Watermoccasin'
Tap 'Confirm' on native keyboard
Looking for PasswordInput
Type 'new_unique_password' to PasswordInput
Looking for SignInButton
Tap on SignInButton
Looking for full text: 'Wallet'
Looking for PlusButton
Tap on PlusButton
Looking for AddNewContactButton
Tap on AddNewContactButton
Looking for PublicKeyEditBox
Type '0x04cd70746f3df6cae7b45c32c211bd7e9e95ed5a1ec470db8f3b1f244eed1821d4a2053d7671802c5f7ce5b81f5fc2016a8109e1bc83f151ceff21f08c0cdcc6e4' to PublicKeyEditBox
Tap 'Confirm' on native keyboard
Wait for HomeButton
Looking for BackButton
Tap on BackButton
Wait for HomeButton
Wait for TransactionsButton
Tap on WalletButton
Looking for WalletButton
Wait for TransactionsButton
Wait for ManageAssetsButton
Tap on OptionsButton
Looking for OptionsButton
Wait for ManageAssetsButton
Looking for ManageAssetsButton
Tap on ManageAssetsButton
Looking for STTCheckBox
Tap on STTCheckBox
Looking for DoneButton
Tap on DoneButton
Looking for SendButton
Tap on SendButton
Wait for STTButton
Tap on SelectAssetButton
Looking for SelectAssetButton
Wait for STTButton
Looking for STTButton
Tap on STTButton
Looking for AmountEditBox
Tap on AmountEditBox
Looking for AmountEditBox
Type '0.022114421' to AmountEditBox
Tap 'Confirm' on native keyboard
Wait for EnterRecipientAddressButton
Tap on ChooseRecipientButton
Looking for ChooseRecipientButton
Wait for EnterRecipientAddressButton
Looking for EnterRecipientAddressButton
Tap on EnterRecipientAddressButton
Looking for EnterRecipientAddressInput
Type '5261ceba31e3a7204b498b2dd20220a6057738d1' to EnterRecipientAddressInput
Looking for DoneButton
Tap on DoneButton
Looking for SignTransactionButton
Tap on SignTransactionButton
Looking for EnterPasswordInput
Type 'new_unique_password' to EnterPasswordInput
Looking for SignTransactionButton
Tap on SignTransactionButton
Looking for GotItButton
Tap on GotItButton

test_send_eth_from_wallet_sign_later:white_check_mark::

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RecoverButton
Tap on RecoverButton
Looking for PassphraseInput
Type 'twenty engine fitness clay faculty supreme garbage armor broccoli agree end sad' to PassphraseInput
Looking for PasswordInput
Type 'new_unique_password' to PasswordInput
Looking for ConfirmRecoverAccess
Tap on ConfirmRecoverAccess
Looking for an element by text: 'Muffled Purple Milksnake'
Tap 'Confirm' on native keyboard
Looking for PasswordInput
Type 'new_unique_password' to PasswordInput
Looking for SignInButton
Tap on SignInButton
Looking for full text: 'Wallet'
Looking for PlusButton
Tap on PlusButton
Looking for AddNewContactButton
Tap on AddNewContactButton
Looking for PublicKeyEditBox
Type '0x04630e0acd973ad448c7a54e2345d6bacaaa4de5a0ec938f802a0f503bf144e80521833be71d4ddfefacfa571a473ebe4542dde102aca4e90d2abe0bb67ee2f99b' to PublicKeyEditBox
Tap 'Confirm' on native keyboard
Wait for HomeButton
Looking for BackButton
Tap on BackButton
Wait for HomeButton
Wait for TransactionsButton
Tap on WalletButton
Looking for WalletButton
Wait for TransactionsButton
Looking for SendButton
Tap on SendButton
Looking for AmountEditBox
Tap on AmountEditBox
Looking for AmountEditBox
Type '0.0221144134' to AmountEditBox
Tap 'Confirm' on native keyboard
Wait for EnterRecipientAddressButton
Tap on ChooseRecipientButton
Looking for ChooseRecipientButton
Wait for EnterRecipientAddressButton
Looking for EnterRecipientAddressButton
Tap on EnterRecipientAddressButton
Looking for EnterRecipientAddressInput
Type 'a409e5faf758a5739f334bae186d8bc11c98ea4d' to EnterRecipientAddressInput
Looking for DoneButton
Tap on DoneButton
Looking for SignLaterButton
Tap on SignLaterButton
Looking for YesButton
Tap on YesButton
Looking for OkButton
Tap on OkButton
Looking for TransactionsButton
Tap on TransactionsButton
Looking for UnsignedTab
Tap on UnsignedTab
Looking for SignButton
Tap on SignButton
Looking for SignTransactionButton
Tap on SignTransactionButton
Looking for EnterPasswordInput
Type 'new_unique_password' to EnterPasswordInput
Looking for SignTransactionButton
Tap on SignTransactionButton
Looking for GotItButton
Tap on GotItButton
Waiting 10 seconds for funds
Transaction is received
Looking for HistoryTab
Tap on HistoryTab
Looking for TransactionElement
Looking for TransactionElement
Tap on TransactionElement
Looking for DetailsTextElement
DetailsTextElement is 0xa9a90c2ed88458db71556425208d766d315fcdd9bf5464e03892bd4002408cf9

test_send_transaction_from_daap:white_check_mark::

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RecoverButton
Tap on RecoverButton
Looking for PassphraseInput
Type 'resemble soap taxi meat reason inflict dilemma calm warrior key gloom again' to PassphraseInput
Looking for PasswordInput
Type 'qwerty' to PasswordInput
Looking for ConfirmRecoverAccess
Tap on ConfirmRecoverAccess
Looking for an element by text: 'Brief Organic Xenops'
Tap 'Confirm' on native keyboard
Looking for PasswordInput
Type 'qwerty' to PasswordInput
Looking for SignInButton
Tap on SignInButton
Looking for full text: 'Wallet'
Looking for PlusButton
Tap on PlusButton
Looking for OpenDAapButton
Tap on OpenDAapButton
Looking for AuctionHouseButton
Tap on AuctionHouseButton
Looking for OpenButton
Tap on OpenButton
Wait for ProgressBarIcon
Wait for ProgressBarIcon
Wait for ProgressBarIcon
Wait for ProgressBarIcon
Wait for ProgressBarIcon
Wait for ProgressBarIcon
Looking for ToggleNavigationButton
Tap on ToggleNavigationButton
Looking for NewAuctionButton
Tap on NewAuctionButton
Looking for NameToReserveInput
Tap on NameToReserveInput
Tap '2' on native keyboard
Tap '0' on native keyboard
Tap '1' on native keyboard
Tap '8' on native keyboard
Tap '-' on native keyboard
Tap '0' on native keyboard
Tap '2' on native keyboard
Tap '-' on native keyboard
Tap '2' on native keyboard
Tap '1' on native keyboard
Tap '-' on native keyboard
Tap '1' on native keyboard
Tap '4' on native keyboard
Tap '-' on native keyboard
Tap '4' on native keyboard
Tap '1' on native keyboard
Looking for RegisterNameButton
Tap on RegisterNameButton
Wait for EnterPasswordInput
Tap on SignTransactionButton
Looking for SignTransactionButton
Wait for EnterPasswordInput
Looking for EnterPasswordInput
Type 'qwerty' to EnterPasswordInput
Wait for GotItButton
Tap on SignTransactionButton
Looking for SignTransactionButton
Wait for GotItButton
Looking for GotItButton
Tap on GotItButton
Transaction is received

test_network_switch:white_check_mark::

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RequestPasswordIcon
Tap on RequestPasswordIcon
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for full text: 'Here is your signing phrase. You will use it to verify your transactions. Write it down and keep it safe!'
Looking for BackButton
Tap on BackButton
Looking for ProfileButton
Tap on ProfileButton
Looking for NetworkSettingsButton
Looking for NetworkSettingsButton
Tap on NetworkSettingsButton
Looking for NetworkButton
Tap on NetworkButton
Looking for ConnectButton
Tap on ConnectButton
Looking for FirstAccountButton
Tap on FirstAccountButton
Looking for PasswordInput
Type 'qwerty1234' to PasswordInput
Looking for SignInButton
Tap on SignInButton
Looking for ProfileButton
Tap on ProfileButton
Looking for full text: 'RINKEBY WITH UPSTREAM RPC'

test_transaction_send_command_group_chat:white_check_mark::

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RequestPasswordIcon
Tap on RequestPasswordIcon
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for full text: 'Here is your signing phrase. You will use it to verify your transactions. Write it down and keep it safe!'
Looking for BackButton
Tap on BackButton
Looking for ProfileButton
Tap on ProfileButton
Looking for ShareMyContactKeyButton
Tap on ShareMyContactKeyButton
Looking for CrossIcon
Tap on CrossIcon
Looking for HomeButton
Tap on HomeButton
Waiting 10 seconds for donation
Waiting 20 seconds for donation
Waiting 30 seconds for donation
Got 0.1 for 27f118518fac7322e137138c62d2431c3dd7a382
Looking for PlusButton
Tap on PlusButton
Looking for AddNewContactButton
Tap on AddNewContactButton
Looking for PublicKeyEditBox
Type '0x040e016b940e067997be8d91298d893ff2bc3580504b4ccb155ea03d183b85f18e771a763d99f60fec70edf637eb6bad9f96d3e8a544168d3ad144f83b4cf7625c' to PublicKeyEditBox
Tap 'Confirm' on native keyboard
Wait for HomeButton
Looking for BackButton
Tap on BackButton
Wait for HomeButton
Looking for PlusButton
Tap on PlusButton
Looking for NewGroupChatButton
Tap on NewGroupChatButton
Looking for UsernameCheckbox
Looking for UsernameCheckbox
Tap on UsernameCheckbox
Looking for NextButton
Tap on NextButton
Looking for ChatNameEditBox
Type 'trg_221144145' to ChatNameEditBox
Looking for ConfirmButton
Tap on ConfirmButton
Looking for CommandsButton
Tap on CommandsButton
Looking for SendCommand
Tap on SendCommand
Looking for FirstRecipient
Tap on FirstRecipient
Tap '0' on native keyboard
Tap '.' on native keyboard
Tap '0' on native keyboard
Tap '0' on native keyboard
Tap '1' on native keyboard
Wait for SignTransactionButton
Tap on SendMessageButton
Looking for SendMessageButton
Wait for SignTransactionButton
Wait for EnterPasswordInput
Tap on SignTransactionButton
Looking for SignTransactionButton
Wait for EnterPasswordInput
Looking for EnterPasswordInput
Type 'qwerty1234' to EnterPasswordInput
Wait for GotItButton
Tap on SignTransactionButton
Looking for SignTransactionButton
Wait for GotItButton
Looking for GotItButton
Tap on GotItButton
Looking for full text: '0.001'
Looking for full text: 'to  Evergreen Handsome Cottontail'
Waiting 10 seconds for funds
Waiting 20 seconds for funds
Waiting 30 seconds for funds
Waiting 40 seconds for funds
Transaction is received

test_group_chat_messages:white_check_mark::

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for OkButton
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for OkButton
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RequestPasswordIcon
Tap on RequestPasswordIcon
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for full text: 'Here is your signing phrase. You will use it to verify your transactions. Write it down and keep it safe!'
Looking for BackButton
Tap on BackButton
Looking for RequestPasswordIcon
Tap on RequestPasswordIcon
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for full text: 'Here is your signing phrase. You will use it to verify your transactions. Write it down and keep it safe!'
Looking for BackButton
Tap on BackButton
Looking for RequestPasswordIcon
Tap on RequestPasswordIcon
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for full text: 'Here is your signing phrase. You will use it to verify your transactions. Write it down and keep it safe!'
Looking for BackButton
Tap on BackButton
Looking for ProfileButton
Tap on ProfileButton
Looking for ShareMyContactKeyButton
Tap on ShareMyContactKeyButton
Looking for CrossIcon
Tap on CrossIcon
Looking for ProfileButton
Tap on ProfileButton
Looking for ShareMyContactKeyButton
Tap on ShareMyContactKeyButton
Looking for CrossIcon
Tap on CrossIcon
Looking for ProfileButton
Tap on ProfileButton
Looking for UserNameText
UserNameText is Scented Eminent Herald
Looking for UserNameText
UserNameText is Whispered Familiar Smallclawedotter
Looking for UserNameText
UserNameText is Venerated Best Firefly
Looking for HomeButton
Tap on HomeButton
Looking for HomeButton
Tap on HomeButton
Looking for HomeButton
Tap on HomeButton
Looking for PlusButton
Tap on PlusButton
Looking for AddNewContactButton
Tap on AddNewContactButton
Looking for PublicKeyEditBox
Type '0x04e6fe4728ade3b25ca418a98581ac4f96ffbf06de4ecff6919d0eb716f59e9ebbab996bfa37e10415a060ebcc81486c29439c06265da7818c069289d8f08e1bcf' to PublicKeyEditBox
Tap 'Confirm' on native keyboard
Wait for HomeButton
Looking for BackButton
Tap on BackButton
Wait for HomeButton
Looking for PlusButton
Tap on PlusButton
Looking for AddNewContactButton
Tap on AddNewContactButton
Looking for PublicKeyEditBox
Type '0x04780739e526faddd01226860b9db50be03ed133a5cd7606ba5a1c826b34b7f52df5024d38e661e225242d2df0edf801a4632fedf7a8ef2d785e59802b17666051' to PublicKeyEditBox
Tap 'Confirm' on native keyboard
Wait for HomeButton
Looking for BackButton
Tap on BackButton
Wait for HomeButton
Looking for PlusButton
Tap on PlusButton
Looking for NewGroupChatButton
Tap on NewGroupChatButton
Looking for UsernameCheckbox
Looking for UsernameCheckbox
Tap on UsernameCheckbox
Looking for UsernameCheckbox
Looking for UsernameCheckbox
Tap on UsernameCheckbox
Looking for NextButton
Tap on NextButton
Looking for ChatNameEditBox
Type 'super_group_chat' to ChatNameEditBox
Looking for ConfirmButton
Tap on ConfirmButton
Looking for ChatMessageInput
Type 'This is text message!' to ChatMessageInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for an element by text: 'super_group_chat'
Looking for an element by text: 'super_group_chat'
Looking for MessageByUsername
Looking for MessageByUsername
Looking for ChatMessageInput
Type '🕵 🏻' to ChatMessageInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for MessageByUsername
Looking for MessageByUsername
Looking for ChatMessageInput
Type 'message with emoji 🗞' to ChatMessageInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for MessageByUsername
Looking for MessageByUsername
Looking for ChatMessageInput
Type 'ţēšț мεŝšȁǥě' to ChatMessageInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for an element by text: 'super_group_chat'
Looking for an element by text: 'super_group_chat'
Looking for MessageByUsername
Looking for MessageByUsername

test_public_chat:x:

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for OkButton
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RequestPasswordIcon
Tap on RequestPasswordIcon
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for full text: 'Here is your signing phrase. You will use it to verify your transactions. Write it down and keep it safe!'
Looking for BackButton
Tap on BackButton
Looking for ProfileButton
Tap on ProfileButton
Looking for UserNameText
UserNameText is Illustrious Reasonable Newt
Looking for HomeButton
Tap on HomeButton
Looking for PlusButton
Tap on PlusButton
Looking for JoinPublicChatButton
Tap on JoinPublicChatButton
Looking for ChatNameEditBox
Type 'gkexdtj' to ChatNameEditBox
Looking for ConfirmButton
Tap on ConfirmButton
Looking for RequestPasswordIcon
Tap on RequestPasswordIcon
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for full text: 'Here is your signing phrase. You will use it to verify your transactions. Write it down and keep it safe!'
Looking for BackButton
Tap on BackButton
Looking for ProfileButton
Tap on ProfileButton
Looking for UserNameText
UserNameText is Faraway Revolving Ivorybilledwoodpecker
Looking for HomeButton
Tap on HomeButton
Looking for PlusButton
Tap on PlusButton
Looking for JoinPublicChatButton
Tap on JoinPublicChatButton
Looking for ChatNameEditBox
Type 'gkexdtj' to ChatNameEditBox
Looking for ConfirmButton
Tap on ConfirmButton
Looking for ChatMessageInput
Type '/command' to ChatMessageInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatMessageInput
Type 'ţēšț мεŝšȁǥě 犈好' to ChatMessageInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatMessageInput
Type 'This is text message.' to ChatMessageInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for MessageByUsername
Looking for MessageByUsername
Looking for ChatMessageInput
Type '🐢' to ChatMessageInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatMessageInput
Type 'message with emoji 🔏' to ChatMessageInput
Looking for SendMessageButton
Tap on SendMessageButton
Tap 'm' on native keyboard
Tap 'e' on native keyboard
Tap 's' on native keyboard
Tap 's' on native keyboard
Tap 'a' on native keyboard
Tap 'g' on native keyboard
Tap 'e' on native keyboard
Tap '
' on native keyboard
Tap 'w' on native keyboard
Tap 'i' on native keyboard
Tap 't' on native keyboard
Tap 'h' on native keyboard
Tap ' ' on native keyboard
Tap 'n' on native keyboard
Tap 'e' on native keyboard
Tap 'w' on native keyboard
Tap ' ' on native keyboard
Tap 'l' on native keyboard
Tap 'i' on native keyboard
Tap 'n' on native keyboard
Tap 'e' on native keyboard
Looking for SendMessageButton

E selenium.common.exceptions.NoSuchElementException: Message: 'SendMessageButton' is not found on screen, using: 'accessibility id:send-message-button'


test_transaction_send_command_one_to_one_chat:x:

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RequestPasswordIcon
Tap on RequestPasswordIcon
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for ChatRequestInput
Type 'qwerty1234' to ChatRequestInput
Looking for SendMessageButton
Tap on SendMessageButton
Looking for full text: 'Here is your signing phrase. You will use it to verify your transactions. Write it down and keep it safe!'
Looking for BackButton
Tap on BackButton
Looking for ProfileButton
Tap on ProfileButton
Looking for ShareMyContactKeyButton
Tap on ShareMyContactKeyButton
Looking for CrossIcon
Tap on CrossIcon
Looking for HomeButton
Tap on HomeButton
Waiting 10 seconds for donation
Waiting 20 seconds for donation
Waiting 30 seconds for donation
Waiting 40 seconds for donation
Waiting 50 seconds for donation
Waiting 60 seconds for donation
Waiting 70 seconds for donation
Waiting 80 seconds for donation
Waiting 90 seconds for donation
Waiting 100 seconds for donation
Waiting 110 seconds for donation
Waiting 120 seconds for donation
Waiting 130 seconds for donation
Waiting 140 seconds for donation
Waiting 150 seconds for donation
Waiting 160 seconds for donation
Waiting 170 seconds for donation
Waiting 180 seconds for donation
Waiting 190 seconds for donation
Waiting 200 seconds for donation
Waiting 210 seconds for donation
Waiting 220 seconds for donation
Waiting 230 seconds for donation
Waiting 240 seconds for donation
Waiting 250 seconds for donation
Waiting 260 seconds for donation
Waiting 270 seconds for donation
Waiting 280 seconds for donation
Waiting 290 seconds for donation
Waiting 300 seconds for donation

E Failed: Donation was not received during 300 seconds!


test_send_eth_to_request_in_one_to_one_chat:white_check_mark::

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for OkButton
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RecoverButton
Tap on RecoverButton
Looking for PassphraseInput
Type 'resemble soap taxi meat reason inflict dilemma calm warrior key gloom again' to PassphraseInput
Looking for PasswordInput
Type 'qwerty' to PasswordInput
Looking for ConfirmRecoverAccess
Tap on ConfirmRecoverAccess
Looking for an element by text: 'Brief Organic Xenops'
Tap 'Confirm' on native keyboard
Looking for PasswordInput
Type 'qwerty' to PasswordInput
Looking for SignInButton
Tap on SignInButton
Looking for full text: 'Wallet'
Looking for RecoverButton
Tap on RecoverButton
Looking for PassphraseInput
Type 'pet letter very ozone shop humor shuffle bounce convince soda hint brave' to PassphraseInput
Looking for PasswordInput
Type 'qwerty' to PasswordInput
Looking for ConfirmRecoverAccess
Tap on ConfirmRecoverAccess
Looking for an element by text: 'Evergreen Handsome Cottontail'
Tap 'Confirm' on native keyboard
Looking for PasswordInput
Type 'qwerty' to PasswordInput
Looking for SignInButton
Tap on SignInButton
Looking for full text: 'Wallet'
Looking for PlusButton
Tap on PlusButton
Looking for AddNewContactButton
Tap on AddNewContactButton
Looking for PublicKeyEditBox
Type '0x040e016b940e067997be8d91298d893ff2bc3580504b4ccb155ea03d183b85f18e771a763d99f60fec70edf637eb6bad9f96d3e8a544168d3ad144f83b4cf7625c' to PublicKeyEditBox
Tap 'Confirm' on native keyboard
Wait for HomeButton
Looking for BackButton
Tap on BackButton
Wait for HomeButton
Looking for an element by text part: 'Evergreen Handsome Cotton'
Looking for an element by text part: 'Brief Organic Xenops'
Looking for CommandsButton
Tap on CommandsButton
Looking for RequestCommand
Tap on RequestCommand
Tap '0' on native keyboard
Tap '.' on native keyboard
Tap '0' on native keyboard
Tap '2' on native keyboard
Tap '2' on native keyboard
Tap '1' on native keyboard
Tap '1' on native keyboard
Tap '4' on native keyboard
Tap '4' on native keyboard
Tap '3' on native keyboard
Looking for SendMessageButton
Tap on SendMessageButton
Looking for an element by text part: 'Requesting  0.02211443 ETH'
Looking for an element by text part: 'Send transaction'
Wait for SignTransactionButton
Tap on SendMessageButton
Looking for SendMessageButton
Wait for SignTransactionButton
Wait for EnterPasswordInput
Tap on SignTransactionButton
Looking for SignTransactionButton
Wait for EnterPasswordInput
Looking for EnterPasswordInput
Type 'qwerty' to EnterPasswordInput
Wait for GotItButton
Tap on SignTransactionButton
Looking for SignTransactionButton
Wait for GotItButton
Looking for GotItButton
Tap on GotItButton
Transaction is received
Looking for BackButton
Tap on BackButton
Wait for TransactionsButton
Tap on WalletButton
Looking for WalletButton
Wait for TransactionsButton
Looking for TransactionsButton
Tap on TransactionsButton
Looking for TransactionElement

test_send_eth_to_request_in_group_chat:white_check_mark::

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for OkButton
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RecoverButton
Tap on RecoverButton
Looking for PassphraseInput
Type 'pet letter very ozone shop humor shuffle bounce convince soda hint brave' to PassphraseInput
Looking for PasswordInput
Type 'qwerty' to PasswordInput
Looking for ConfirmRecoverAccess
Tap on ConfirmRecoverAccess
Looking for an element by text: 'Evergreen Handsome Cottontail'
Tap 'Confirm' on native keyboard
Looking for PasswordInput
Type 'qwerty' to PasswordInput
Looking for SignInButton
Tap on SignInButton
Looking for full text: 'Wallet'
Looking for RecoverButton
Tap on RecoverButton
Looking for PassphraseInput
Type 'resemble soap taxi meat reason inflict dilemma calm warrior key gloom again' to PassphraseInput
Looking for PasswordInput
Type 'qwerty' to PasswordInput
Looking for ConfirmRecoverAccess
Tap on ConfirmRecoverAccess
Looking for an element by text: 'Brief Organic Xenops'
Tap 'Confirm' on native keyboard
Looking for PasswordInput
Type 'qwerty' to PasswordInput
Looking for SignInButton
Tap on SignInButton
Looking for full text: 'Wallet'
Looking for PlusButton
Tap on PlusButton
Looking for AddNewContactButton
Tap on AddNewContactButton
Looking for PublicKeyEditBox
Type '0x0406b17e5cdfadb2a05e84508b1a2916def6395e6295f57e92b85f915d40bca3f4a7e4c6d6b25afa840dd042fac83d3f856181d553f34f1c2b12878e774adde099' to PublicKeyEditBox
Tap 'Confirm' on native keyboard
Wait for HomeButton
Looking for BackButton
Tap on BackButton
Wait for HomeButton
Looking for PlusButton
Tap on PlusButton
Looking for NewGroupChatButton
Tap on NewGroupChatButton
Looking for UsernameCheckbox
Looking for UsernameCheckbox
Tap on UsernameCheckbox
Looking for NextButton
Tap on NextButton
Looking for ChatNameEditBox
Type 'gtr_221144355' to ChatNameEditBox
Looking for ConfirmButton
Tap on ConfirmButton
Looking for an element by text: 'gtr_221144355'
Looking for CommandsButton
Tap on CommandsButton
Looking for RequestCommand
Tap on RequestCommand
Looking for FirstRecipient
Tap on FirstRecipient
Tap '0' on native keyboard
Tap '.' on native keyboard
Tap '0' on native keyboard
Tap '2' on native keyboard
Tap '2' on native keyboard
Tap '1' on native keyboard
Tap '1' on native keyboard
Tap '4' on native keyboard
Tap '4' on native keyboard
Tap '4' on native keyboard
Tap '1' on native keyboard
Tap '6' on native keyboard
Looking for SendMessageButton
Tap on SendMessageButton
Looking for an element by text part: 'Requesting  0.0221144416 ETH'
Looking for an element by text part: 'Send transaction'
Wait for SignTransactionButton
Tap on SendMessageButton
Looking for SendMessageButton
Wait for SignTransactionButton
Wait for SignTransactionButton
Wait for EnterPasswordInput
Tap on SignTransactionButton
Looking for SignTransactionButton
Wait for EnterPasswordInput
Looking for EnterPasswordInput
Type 'qwerty' to EnterPasswordInput
Wait for GotItButton
Tap on SignTransactionButton
Looking for SignTransactionButton
Wait for GotItButton
Looking for GotItButton
Tap on GotItButton
Transaction is received

test_send_eth_to_request_from_wallet:white_check_mark::

Test Steps & Error message:
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for OkButton
Tap on OkButton
Looking for ContinueButtonAPK
Tap on ContinueButtonAPK
Looking for RecoverButton
Tap on RecoverButton
Looking for PassphraseInput
Type 'twenty engine fitness clay faculty supreme garbage armor broccoli agree end sad' to PassphraseInput
Looking for PasswordInput
Type 'new_unique_password' to PasswordInput
Looking for ConfirmRecoverAccess
Tap on ConfirmRecoverAccess
Looking for an element by text: 'Muffled Purple Milksnake'
Tap 'Confirm' on native keyboard
Looking for PasswordInput
Type 'new_unique_password' to PasswordInput
Looking for SignInButton
Tap on SignInButton
Looking for full text: 'Wallet'
Looking for RecoverButton
Tap on RecoverButton
Looking for PassphraseInput
Type 'kiss catch paper awesome ecology surface trumpet quit index open stage brave' to PassphraseInput
Looking for PasswordInput
Type 'new_unique_password' to PasswordInput
Looking for ConfirmRecoverAccess
Tap on ConfirmRecoverAccess
Looking for an element by text: 'Impractical Afraid Watermoccasin'
Tap 'Confirm' on native keyboard
Looking for PasswordInput
Type 'new_unique_password' to PasswordInput
Looking for SignInButton
Tap on SignInButton
Looking for full text: 'Wallet'
Looking for PlusButton
Tap on PlusButton
Looking for AddNewContactButton
Tap on AddNewContactButton
Looking for PublicKeyEditBox
Type '0x04630e0acd973ad448c7a54e2345d6bacaaa4de5a0ec938f802a0f503bf144e80521833be71d4ddfefacfa571a473ebe4542dde102aca4e90d2abe0bb67ee2f99b' to PublicKeyEditBox
Tap 'Confirm' on native keyboard
Wait for HomeButton
Looking for BackButton
Tap on BackButton
Wait for HomeButton
Wait for TransactionsButton
Tap on WalletButton
Looking for WalletButton
Wait for TransactionsButton
Wait for SendTransactionRequestButton
Tap on RequestButton
Looking for RequestButton
Wait for SendTransactionRequestButton
Looking for SendTransactionRequestButton
Tap on SendTransactionRequestButton
Looking for AmountEditBox
Looking for AmountEditBox
Type '0.0221144324' to AmountEditBox
Tap 'Confirm' on native keyboard
Wait for EnterRecipientAddressButton
Tap on ChooseRecipientButton
Looking for ChooseRecipientButton
Wait for EnterRecipientAddressButton
Wait for EnterRecipientAddressButton
Tap on ChooseRecipientButton
Looking for ChooseRecipientButton
Wait for EnterRecipientAddressButton
Tap on ChooseRecipientButton
Looking for ChooseRecipientButton
Wait for EnterRecipientAddressButton
Tap on ChooseRecipientButton
Looking for ChooseRecipientButton
Wait for EnterRecipientAddressButton
Tap on ChooseRecipientButton
Looking for ChooseRecipientButton
Wait for EnterRecipientAddressButton
Tap on ChooseRecipientButton
Looking for ChooseRecipientButton
Wait for EnterRecipientAddressButton
Looking for an element by text: 'Impractical Afraid Watermoccasin'
Tap on RecentRecipientsButton
Looking for RecentRecipientsButton
Looking for SendRequestButton
Tap on SendRequestButton
Looking for an element by text part: 'Muffled Purple Milksnake'
Looking for an element by text part: 'Requesting  0.0221144324 ETH'
Looking for an element by text part: 'Send transaction'
Wait for SignTransactionButton
Tap on SendMessageButton
Looking for SendMessageButton
Wait for SignTransactionButton
Wait for EnterPasswordInput
Tap on SignTransactionButton
Looking for SignTransactionButton
Wait for EnterPasswordInput
Looking for EnterPasswordInput
Type 'new_unique_password' to EnterPasswordInput
Wait for GotItButton
Tap on SignTransactionButton
Looking for SignTransactionButton
Wait for GotItButton
Looking for GotItButton
Tap on GotItButton
Waiting 10 seconds for funds
Transaction is received

@lukaszfryc lukaszfryc removed their assignment Feb 21, 2018
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
@flexsurfer flexsurfer merged commit 8abdd77 into develop Feb 21, 2018
@rasom rasom deleted the 3146-realm-reads-part-2 branch April 19, 2018 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

7 participants