New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 787183 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Task

Blocked on:
issue 876573



Sign in to add a comment

Investigate removing EarlGrey helpers that Assert

Project Member Reported by baxley@chromium.org, Nov 21 2017

Issue description

When an EarlGrey helper method (ChromeEarlGrey) asserts, it is hard to find the call stack.

When an assert is in a test method, that line shows up in the log. When an assert is in a helper, all you know is the test method that called the helper. If it is called multiple items in a test (e.g. waitForWebViewContainingText) you can't debug the test via logs.
 

Comment 1 by baxley@chromium.org, Nov 21 2017

would it help if there was a way to get the line numbers in the call stack of the failure?
Labels: -Type-Bug Type-Task
Yes, so if we could make ChromeEarlGrey a macro which prints the line number, and ChromeEarlGreyImpl a real class, that would work.

Comment 3 by baxley@chromium.org, Nov 21 2017

As an FYI, I looked at EarlGrey's verbose logging, but that didn't provide much test context. It provided more information about what idling resources and animations were doing. I don't think it would help for this case. It is enabled via NSUserDefaults:
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:kGREYAllowVerboseLogging];
Project Member

Comment 4 by sheriffbot@chromium.org, Nov 21

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: -liaoyuke@chromium.org -huangml@chromium.org yzjr@chromium.org
Labels: -Pri-2 Pri-3
Status: Available (was: Untriaged)
Yang, is this something that your team can tackle?
Blockedon: 876573

Sign in to add a comment