These manual tests walk through Trace Metrics behavior so that we catch issues as we update the code.
For automated tests run gradle test
.
Given that we have a single project configured with New Relic AppID and key.
- Find a metrics pane line with a busy (high count) metric. Hit "Refresh", watch the "working" animation, and see the number change.
- Use "View -> Tool Windows -> Trace Metrics" to make the metrics pane disappear and reappear.
- Navigate from a
@Trace
annotation in project source to the corresponding line in the metrics pane. - Navigate from a metrics pane line to the corresponding line in project source.
- Scroll the metrics pane. Resize the metrics pane. Select lines and see a single row highlighted.
- Navigate from a metrics pane line to the New Relic Web UI, signing in if necessary. (Does the SAML response lose the original page?)
- Open two projects in IntelliJ. Click "New Window" when asked whether to open the second project in a new window or this window.
- Navigate to the Trace Metrics preferences pane while focused on the first project window.
- Observe the application name.
- Switch to the second project window and navigate to the Trace Metrics preferences pane.
- Observe the application name. It should be different than the first project's application name.
Given a new IntelliJ instance without the plugin installed.
- Install the plugin.
- Observe the metrics pane populated with trace metrics but no metrics.
- Configure the New Relic AppID and key. See the metrics pane refresh and fill in.