Ask a Question

Invalid file format while uploading cucumber JSON file in Zephyr Squard

VinayQA
New Member

Invalid file format while uploading cucumber JSON file in Zephyr Squard

Invalid file format while uploading cucumber JSON file. I even removed special characters from "name" attribute 

JSON file:

 

[
{
"line": 2,
"elements": [
{
"start_timestamp": "2022-05-23T13:55:34.753Z",
"line": 16,
"name": "New user registration with all details",
"description": "",
"id": "register-to-the-demo-application;new-user-registration-with-all-details;;2",
"type": "scenario",
"keyword": "Scenario Outline",
"steps": [
{
"result": {
"duration": 12617520700,
"status": "passed"
},
"line": 7,
"name": "User naviagtes to demo website",
"match": {
"location": "CucumberFramework.stepDefinitions.RegistrationSteps.user_naviagtes_to_demo_website()"
},
"keyword": "Given "
},
{
"result": {
"duration": 4312481400,
"status": "passed"
},
"line": 8,
"name": "Click on Registration tab",
"match": {
"location": "CucumberFramework.stepDefinitions.RegistrationSteps.click_on_registration_tab()"
},
"keyword": "Then "
},
{
"result": {
"duration": 1103884000,
"status": "passed"
},
"line": 9,
"name": "Verify registration form page is displayed",
"match": {
"location": "CucumberFramework.stepDefinitions.RegistrationSteps.verify_registration_form_page_is_displayed()"
},
"keyword": "Then "
},
{
"result": {
"duration": 7246493400,
"status": "passed"
},
"line": 10,
"name": "Enter TestUser1 details for registration",
"match": {
"arguments": [
{
"val": "TestUser1",
"offset": 7
}
],
"location": "CucumberFramework.stepDefinitions.RegistrationSteps.enter_required_details_for_registration(java.lang.String)"
},
"keyword": "When "
},
{
"result": {
"duration": 3286022600,
"status": "passed"
},
"line": 11,
"name": "Click on Submit button",
"match": {
"location": "CucumberFramework.stepDefinitions.RegistrationSteps.click_on_submit_button()"
},
"keyword": "Then "
},
{
"result": {
"duration": 1045800,
"status": "passed"
},
"line": 12,
"name": "Verify submitted message",
"match": {
"location": "CucumberFramework.stepDefinitions.RegistrationSteps.verify_submitted_message()"
},
"keyword": "And "
}
],
"tags": [
{
"name": "@SmokeTest"
}
]
},
{
"start_timestamp": "2022-05-23T13:56:03.425Z",
"line": 17,
"name": "New user registration with all details",
"description": "",
"id": "register-to-the-demo-application;new-user-registration-with-all-details;;3",
"type": "scenario",
"keyword": "Scenario Outline",
"steps": [
{
"result": {
"duration": 3026974300,
"status": "passed"
},
"line": 7,
"name": "User naviagtes to demo website",
"match": {
"location": "CucumberFramework.stepDefinitions.RegistrationSteps.user_naviagtes_to_demo_website()"
},
"keyword": "Given "
},
{
"result": {
"duration": 4380457900,
"status": "passed"
},
"line": 8,
"name": "Click on Registration tab",
"match": {
"location": "CucumberFramework.stepDefinitions.RegistrationSteps.click_on_registration_tab()"
},
"keyword": "Then "
},
{
"result": {
"duration": 1077321900,
"status": "passed"
},
"line": 9,
"name": "Verify registration form page is displayed",
"match": {
"location": "CucumberFramework.stepDefinitions.RegistrationSteps.verify_registration_form_page_is_displayed()"
},
"keyword": "Then "
},
{
"result": {
"duration": 7471261100,
"status": "passed"
},
"line": 10,
"name": "Enter TestUser2 details for registration",
"match": {
"arguments": [
{
"val": "TestUser2",
"offset": 7
}
],
"location": "CucumberFramework.stepDefinitions.RegistrationSteps.enter_required_details_for_registration(java.lang.String)"
},
"keyword": "When "
},
{
"result": {
"duration": 3287733300,
"status": "passed"
},
"line": 11,
"name": "Click on Submit button",
"match": {
"location": "CucumberFramework.stepDefinitions.RegistrationSteps.click_on_submit_button()"
},
"keyword": "Then "
},
{
"result": {
"status": "passed"
},
"line": 12,
"name": "Verify submitted message",
"match": {
"location": "CucumberFramework.stepDefinitions.RegistrationSteps.verify_submitted_message()"
},
"keyword": "And "
}
],
"tags": [
{
"name": "@SmokeTest"
}
]
}
],
"name": "Register to the demo application",
"description": " New user should be able to register with required details",
"id": "register-to-the-demo-application",
"keyword": "Feature",
"uri": "file:src/test/java/CucumberFramework/features/Registration.feature",
"tags": []
}
]

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: