Skip to content

Commit 1aff736

Browse files
Merge pull request #376 from bugsnag/tms/step-use
Stop using deprecated Cucumber step
2 parents d760dd6 + a8c9786 commit 1aff736

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

features/instrumentation.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Feature: Automatic creation of spans
4747
Given I run "AppStartScenario"
4848
Then I relaunch the app after shutdown
4949
* I load scenario "AppStartScenario"
50-
And I wait for 6 spans
50+
And I wait to receive at least 6 spans
5151
* a span named "[AppStart/AndroidCold]" contains the attributes:
5252
| attribute | type | value |
5353
| bugsnag.span.category | stringValue | app_start |
@@ -88,7 +88,7 @@ Feature: Automatic creation of spans
8888
Given I run "AppStartScenario"
8989
Then I relaunch the app after shutdown
9090
* I load scenario "AppStartScenario"
91-
And I wait for 2 spans
91+
And I wait to receive at least 2 spans
9292
* a span named "[AppStart/AndroidCold]" contains the attributes:
9393
| attribute | type | value |
9494
| bugsnag.span.category | stringValue | app_start |
@@ -119,7 +119,7 @@ Feature: Automatic creation of spans
119119
@skip_below_android_10
120120
Scenario: Activity load breakdown with full ViewLoad instrumentation
121121
Given I run "ActivityLoadInstrumentationScenario" configured as "FULL"
122-
And I wait for 5 spans
122+
And I wait to receive at least 5 spans
123123
Then a span named "[ViewLoad/Activity]ActivityViewLoadActivity" contains the attributes:
124124
| attribute | type | value |
125125
| bugsnag.span.category | stringValue | view_load |
@@ -153,7 +153,7 @@ Feature: Automatic creation of spans
153153
@skip_below_android_10
154154
Scenario: Activity load breakdown with start-only ViewLoad instrumentation
155155
Given I run "ActivityLoadInstrumentationScenario" configured as "START_ONLY"
156-
And I wait for 5 spans
156+
And I wait to receive at least 5 spans
157157
Then a span named "[ViewLoad/Activity]ActivityViewLoadActivity" contains the attributes:
158158
| attribute | type | value |
159159
| bugsnag.span.category | stringValue | view_load |
@@ -186,7 +186,7 @@ Feature: Automatic creation of spans
186186

187187
Scenario: AppStart/AndroidCold is discarded for background starts
188188
Given I run "BackgroundAppStartScenario"
189-
And I wait for 1 span
189+
And I wait to receive at least 1 span
190190
* a span named "AlarmReceiver" contains the attributes:
191191
| attribute | type | value |
192192
| bugsnag.span.first_class | boolValue | true |
@@ -207,7 +207,7 @@ Feature: Automatic creation of spans
207207
Given I run "AppStartScenario"
208208
Then I relaunch the app after shutdown
209209
* I load scenario "AppStartScenario"
210-
And I wait for 9 spans
210+
And I wait to receive at least 9 spans
211211
* a span named "[AppStart/AndroidCold]" contains the attributes:
212212
| attribute | type | value |
213213
| bugsnag.span.category | stringValue | app_start |

features/manual_spans.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,21 @@ Feature: Manual creation of spans
8686
Scenario: Send on App backgrounded
8787
Given I run "AppBackgroundedScenario"
8888
And I send the app to the background for 5 seconds
89-
And I wait for 1 span
89+
And I wait to receive at least 1 span
9090
Then a span name equals "Span 1"
9191

9292
# Skip pending PLAT-11356
9393
@skip
9494
Scenario: Spans logged in the background
9595
Given I run "BackgroundSpanScenario"
9696
And I send the app to the background for 5 seconds
97-
And I wait for 1 span
97+
And I wait to receive at least 1 span
9898
Then a span name equals "BackgroundSpan"
9999
* the trace payload field "resourceSpans.0.scopeSpans.0.spans.0" boolean attribute "bugsnag.app.in_foreground" is false
100100

101101
Scenario: Span attributes are limited based on config
102102
Given I run "AttributeLimitsScenario"
103-
And I wait for 1 span
103+
And I wait to receive at least 1 span
104104
Then a span name equals "Custom Span"
105105
* the trace payload field "resourceSpans.0.scopeSpans.0.spans.0" string array attribute "arrayAttribute" equals the array:
106106
| this is a *** 68 CHARS TRUNCATED |

features/okhttp_spans.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Feature: OkHttp EventListener
2626

2727
Scenario: Auto-Instrument Network with Callback
2828
Given I run "OkhttpAutoInstrumentNetworkCallbackScenario"
29-
And I wait for 2 spans
29+
And I wait to receive at least 2 spans
3030
Then the trace "Content-Type" header equals "application/json"
3131
* the trace "Bugsnag-Sent-At" header matches the regex "^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\dZ$"
3232
* every span field "name" equals "[HTTP/GET]"
@@ -39,7 +39,7 @@ Feature: OkHttp EventListener
3939

4040
Scenario: Manual-Instrument Network with Callback
4141
Given I run "OkhttpManualNetworkCallbackScenario"
42-
And I wait for 2 spans
42+
And I wait to receive at least 2 spans
4343
Then the trace "Content-Type" header equals "application/json"
4444
* the trace "Bugsnag-Sent-At" header matches the regex "^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\dZ$"
4545
* every span field "name" equals "[HTTP/GET]"

0 commit comments

Comments
 (0)