Conversation
|
@fcvakintos @sosnovsky @tomholub |
|
I write appium tests in VS Code, as it supports eslint and highlights code issues. |
|
@sosnovsky great, thanks. Will try VS Code. |
|
@Kharchevskyi read steps at https://github.com/FlowCrypt/flowcrypt-ios/tree/master/appium first to get an overview. After that, if the information you needed to know was missing there, please add it (which IDE to use, etc). In general, this kind of basic knowledge shouldn't be passed only person to person - it should be documented for the long term so that new team members, or our own non-ios developers can get involved easily when needed. |
|
@sosnovsky @fcvakintos @tomholub will add this to Readme as well |
|
Your screenshot is missing reason why the test failed. It's supposed to have appium stack trace and show which test method was run and which selector was attempted etc. With that information (missing above) it usually becomes clear. If still not clear, I watch the simulator go through the steps while looking at the source code of the tests. So that it becomes clear where it's getting stuck, and usually also why. Try deleting contents of appium/tmp folder before the run, and then run it and see the files it produces there (else it's hard to find which file to look at). There should be some logs produced by the run, at least. Looks like your test is failing for some fundamental reason, did it ever produce a simulator and run any steps? |
|
I was also able to get more appium logs by changing |
|
You guys should stop hoarding that kind of information 😆 if it's very useful, document it |
|
@tomholub indeed appium stoped even launching a simulator and executing any tests. Only changes from yesterday successfull runs is only installed VS Code. I have pushed latest commit to check whether this issue only locally on my machine, but maybe someone can suggest me where the issue could be? |
|
It doesn't even launch simulator? try the debug log suggested above |
UPD: Removing node_modules and npm install helped once again) |
appium/config/wdio.shared.conf.js
Outdated
| }, | ||
| sync: true, | ||
| logLevel: 'silent', | ||
| logLevel: 'debug', |
There was a problem hiding this comment.
@tomholub are you ok with this log level? it is pretty verbose but easier to debug issues
There was a problem hiding this comment.
Surely there could be some options in between silent and debug. Do they have some sort of "normal" verbosity level?
There was a problem hiding this comment.
debug, info, warn, error
There was a problem hiding this comment.
Let's try info, see if that gives enough clues without being too verbose
…pt-ios into feature/issue-1218-aid
appium/README.md
Outdated
| ## Building app for testing | ||
| For debugging purposes instead of running `bundle exec fastlane build` you can copy `FlowCrypt.app` from `/DerivedData/FlowCrypt-.../Build/Products/Debug-iphonesimulator` (In Xcode open `Products` folder -> `FlowCrypt` -> `Show in Finder`) to appium folder. | ||
|
|
There was a problem hiding this comment.
Please pay attention to the whole document holistically.. documentation must be as clean and orderly as code, if not more so.
|
@tomholub are you ok with changing accessibility ids gradually? or do I need to update all of existed? |
FlowCrypt/Controllers/SideMenu/NavigationController/MainNavigationController.swift
Outdated
Show resolved
Hide resolved
| ## Building app for testing | ||
|
|
||
| Run this in `flowcrypt-ios` folder: `bundle exec fastlane build`. This will produce folder `appium/FlowCrypt.app` that contains the built app. | ||
| 1. Manually compile build from the current code: | ||
| - run `bundle exec fastlane build` in `flowcrypt-ios` folder | ||
| - it will produce `appium/FlowCrypt.app` for testing | ||
| 2. Use the latest simulator build: | ||
| - copy `FlowCrypt.app` from `/DerivedData/FlowCrypt-.../Build/Products/Debug-iphonesimulator` (In Xcode open Products folder -> FlowCrypt -> Show in Finder). |
There was a problem hiding this comment.
This looks like you need to take both step 1 and then step 2 in sequence. Which is not true. These two are two alternative approaches, and should be documented as such.
tomholub
left a comment
There was a problem hiding this comment.
filed a separate issue for the comment above

This PR updates aid to attachments tests
close #1218
Tests:
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):