All of a sudden cucumber execution import API is failing with bad request. No changes were made to our suite. Authentication is working and I can get the access token. I can confirm that the JSON file is valid as well.
POST https://xray.cloud.getxray.app/api/v2/import/execution/cucumber
Body:
[
{
"line": 2,
"elements": [
{
"start_timestamp": "2024-03-20T00:53:33.158Z",
"before": [
{
"result": {
"duration": 3172000,
"status": "passed"
},
"match": {
"location": "au.com.target.testing.cucumber.glue.ContextLoader.setup()"
}
}
],
"line": 46,
"name": "Place a CNC order as existing user using Credit Card",
"description": "",
"id": "target-order-placement-scenarios-for-card-payment;place-a-cnc-order-as-existing-user-using-credit-card",
"type": "scenario",
"keyword": "Scenario",
"steps": [
{
"result": {
"duration": 154137807000,
"status": "passed"
},
"line": 47,
"name": "I login to Target storefront as \"targetuiautomation+authcncexistinguser@gmail.com\" user with password \"Target@123\"",
"match": {
"arguments": [
{
"val": "targetuiautomation+authcncexistinguser@gmail.com",
"offset": 33
},
{
"val": "Target@123",
"offset": 103
}
],
"location": "au.com.target.testing.step.CreateAccountSteps.i_login_to_Target_storefront_as_user_with_password(java.lang.String,java.lang.String)"
},
"keyword": "Given "
},
{
"result": {
"duration": 352799000,
"status": "passed"
},
"line": 48,
"name": "I goto My Payment Details in My Accounts",
"match": {
"location": "au.com.target.testing.step.CreateAccountSteps.i_goto_My_Payment_Details_in_My_Accounts()"
},
"keyword": "And "
},
{
"result": {
"duration": 13830657000,
"status": "passed"
},
"line": 49,
"name": "I check and remove saved Credit Card details if present",
"match": {
"location": "au.com.target.testing.step.CreateAccountSteps.i_check_and_remove_saved_credit_card_details_if_present()"
},
"keyword": "Then "
},
{
"result": {
"duration": 6983841000,
"status": "passed"
},
"line": 50,
"name": "I Go to Basket page",
"match": {
"location": "au.com.target.testing.step.CustomerCartSteps.i_Go_to_Basket_page()"
},
"keyword": "And "
},
{
"result": {
"duration": 31182685000,
"status": "passed"
},
"line": 51,
"name": "empty the cart",
"match": {
"location": "au.com.target.testing.step.CustomerCartSteps.empty_the_cart()"
},
"keyword": "And "
},
{
"result": {
"duration": 26723749000,
"status": "passed"
},
"line": 52,
"name": "I enter a search key term \"56961171\" in the search textbox",
"match": {
"arguments": [
{
"val": "56961171",
"offset": 27
}
],
"location": "au.com.target.testing.step.HomePageSteps.i_enter_a_search_key_term_in_the_search_textbox(java.lang.String)"
},
"keyword": "When "
},
{
"result": {
"duration": 4229115000,
"status": "passed"
},
"line": 53,
"name": "I add the product to Basket from PDP page",
"match": {
"location": "au.com.target.testing.step.ProductPageSteps.i_add_the_product_to_Basket_from_PDP_page()"
},
"keyword": "And "
},
{
"result": {
"duration": 76991000,
"status": "passed"
},
"line": 54,
"name": "I check my preferred store in PDP",
"match": {
"location": "au.com.target.testing.step.CustomerCartSteps.i_check_my_preferred_store_in_PDP()"
},
"keyword": "And "
},
{
"result": {
"duration": 8791544000,
"status": "passed"
},
"line": 55,
"name": "I Go to Basket page",
"match": {
"location": "au.com.target.testing.step.CustomerCartSteps.i_Go_to_Basket_page()"
},
"keyword": "And "
},
{
"result": {
"duration": 247131000,
"status": "passed"
},
"line": 56,
"name": "I see product \"Automation - Target Active Resistance Tube\" on Basket page",
"match": {
"arguments": [
{
"val": "Automation - Target Active Resistance Tube",
"offset": 15
}
],
"location": "au.com.target.testing.step.CustomerCartSteps.i_see_product_on_Basket_page(java.lang.String)"
},
"keyword": "And "
},
{
"result": {
"duration": 1908378000,
"status": "passed"
},
"line": 57,
"name": "I click on the Checkout Securely Button",
"match": {
"location": "au.com.target.testing.step.CustomerCartSteps.i_click_on_the_Checkout_Securely_Button()"
},
"keyword": "When "
},
{
"result": {
"duration": 40586050000,
"status": "passed"
},
"line": 58,
"name": "I select \"Click (\\+|&|\\w+) Collect\" delivery mode option on checkout",
"match": {
"arguments": [
{
"val": "Click (\\+|&|\\w+) Collect",
"offset": 10
}
],
"location": "au.com.target.testing.step.CustomerCartSteps.i_select_delivery_mode_option_on_checkout(java.lang.String)"
},
"keyword": "When "
},
{
"result": {
"duration": 24008860000,
"status": "passed"
},
"line": 59,
"name": "I enter Pick up store on checkout at \"Werribee\" store",
"match": {
"arguments": [
{
"val": "Werribee",
"offset": 38
}
],
"location": "au.com.target.testing.step.CustomerCartSteps.i_enter_Pick_up_store_on_checkout_at_store(java.lang.String)"
},
"keyword": "And "
},
{
"result": {
"duration": 105034000,
"status": "passed"
},
"line": 60,
"name": "I enter Click and Collect details on checkout",
"match": {
"location": "au.com.target.testing.step.CustomerCartSteps.i_enter_Click_and_Collect_details_on_checkout()"
},
"keyword": "And "
},
{
"result": {
"duration": 530363000,
"status": "passed"
},
"line": 61,
"name": "I select \"Credit card\" payment method",
"match": {
"arguments": [
{
"val": "Credit card",
"offset": 10
}
],
"location": "au.com.target.testing.step.CustomerCartSteps.i_select_payment_method(java.lang.String)"
},
"keyword": "And "
},
{
"result": {
"error_message": "org.opentest4j.AssertionFailedError: \nExpecting value to be true but was false\n\tat java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\n\tat au.com.target.testing.step.OrdersCardPaymentSteps.i_verify_payment_method_is_selected(OrdersCardPaymentSteps.java:118)\n\tat ✽.I verify \"Credit card\" payment method is selected(classpath:features/uiautomation/OrdersCardPayment.feature:62)\n",
"duration": 30474459000,
"status": "failed"
},
"line": 62,
"name": "I verify \"Credit card\" payment method is selected",
"match": {
"arguments": [
{
"val": "Credit card",
"offset": 10
}
],
"location": "au.com.target.testing.step.OrdersCardPaymentSteps.i_verify_payment_method_is_selected(java.lang.String)"
},
"keyword": "Then "
},
{
"result": {
"duration": 389000,
"status": "skipped"
},
"line": 63,
"name": "I click on Pay now button",
"match": {
"location": "au.com.target.testing.step.OrdersCardPaymentSteps.i_click_on_Pay_now_button()"
},
"keyword": "And "
},
{
"result": {
"duration": 267000,
"status": "skipped"
},
"line": 64,
"name": "I see that the order is placed successfully",
"match": {
"location": "au.com.target.testing.step.CustomerCartSteps.i_see_that_the_order_is_placed_successfully()"
},
"keyword": "Then "
},
{
"result": {
"duration": 241000,
"status": "skipped"
},
"line": 65,
"name": "I click on the order id on Order Confirmation page",
"match": {
"location": "au.com.target.testing.step.CustomerCartSteps.i_click_on_the_order_id_on_Order_Confirmation_page()"
},
"keyword": "And "
}
],
"tags": [
{
"name": "@ordersCardPayment"
},
{
"name": "@OST-47"
},
{
"name": "@sanity"
}
]
}
],
"name": "Target Order placement scenarios for Card Payment",
"description": "",
"id": "target-order-placement-scenarios-for-card-payment",
"keyword": "Feature",
"uri": "classpath:features/uiautomation/OrdersCardPayment.feature",
"tags": [
{
"name": "@ordersCardPayment",
"line": 1,
"location": {
"line": 1,
"column": 1
}
}
]
}
]
Response:
400 - Bad Request
{
"error": "Error creating Test Execution - Issue create failed!"
}