Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

how to access uri from beforeFeature() after version 1.1.1 #155

Open
gaurist opened this issue Nov 14, 2018 · 2 comments
Open

how to access uri from beforeFeature() after version 1.1.1 #155

gaurist opened this issue Nov 14, 2018 · 2 comments

Comments

@gaurist
Copy link

gaurist commented Nov 14, 2018

No description provided.

@wswebcreation
Copy link
Contributor

Hi @gaurist

Can you please provide more information like:

  • Which version of wdio-cucumber-framework you are on
  • have you tried to debug the response from the beforeFeature

Have you also checked the CucumberJS docs. They changed a lot in the structure of the response of CucumberJS.

@gaurist
Copy link
Author

gaurist commented Nov 14, 2018

Hi @wswebcreation : wdio-cucumber-framework : 2.2.8 , following is the response from beforeFeature.
with version 1.1.0, uri was included in the response.

{  
   "type":"Feature",
   "tags":[  

   ],
   "location":{  
      "line":1,
      "column":1
   },
   "language":"en",
   "keyword":"Feature",
   "name":"Testing feature file path",
   "children":[  
      {  
         "type":"ScenarioOutline",
         "tags":[  
            {  
               "type":"Tag",
               "location":{  
                  "line":3,
                  "column":3
               },
               "name":"@id=test"
            }
         ],
         "location":{  
            "line":4,
            "column":3
         },
         "keyword":"Scenario Outline",
         "name":"Verify the  Google Elements",
         "steps":[  
            {  
               "type":"Step",
               "location":{  
                  "line":5,
                  "column":5
               },
               "keyword":"Given ",
               "text":"I open the <path> page"
            },
            {  
               "type":"Step",
               "location":{  
                  "line":6,
                  "column":5
               },
               "keyword":"When ",
               "text":"I visit the google page"
            },
            {  
               "type":"Step",
               "location":{  
                  "line":7,
                  "column":5
               },
               "keyword":"And ",
               "text":"I expect element \"googlebox\" to be present"
            }
         ],
         "examples":[  
            {  
               "type":"Examples",
               "tags":[  

               ],
               "location":{  
                  "line":10,
                  "column":5
               },
               "keyword":"Examples",
               "name":"",
               "tableHeader":{  
                  "type":"TableRow",
                  "location":{  
                     "line":11,
                     "column":7
                  },
                  "cells":[  
                     {  
                        "type":"TableCell",
                        "location":{  
                           "line":11,
                           "column":9
                        },
                        "value":"path"
                     }
                  ]
               },
               "tableBody":[  
                  {  
                     "type":"TableRow",
                     "location":{  
                        "line":12,
                        "column":7
                     },
                     "cells":[  
                        {  
                           "type":"TableCell",
                           "location":{  
                              "line":12,
                              "column":9
                           },
                           "value":"wwww.google.com"
                        }
                     ]
                  }
               ]
            }
         ]
      }
   ]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants