Reputation: 153
Feature: test soap end point
Background:
* def randomString = function(){
return Math.floor(100000000 + Math.random() * 900000000);}
*** Scenario:
@smoke@sanity
Feature: test soap end poin
Background:
* url 'URL of the API'
* call read('JavascriptUtil.feature')
Scenario: Test
* def temp = randomPhoneString()
* print temp
The error I got is:
Caused by: gherkin.lexer.LexingError: Lexing error on line 6: 'return Math.floor(100000000 + Math.random() * 900000000);}
Upvotes: 1
Views: 454
Reputation: 58058
Remove the line feed please or use the """
"doc_string" syntax - refer documentation.
* def randomString = function(){ return Math.floor(100000000 + Math.random() * 900000000) }
Upvotes: 1