Feature: test soap end point
Background:
* def randomString = function(){
return Math.floor(100000000 + Math.random() * 900000000);}
***方案:
@smoke@sanity
Feature: test soap end poin
Background:
* url 'URL of the API'
* call read('JavascriptUtil.feature')
Scenario: Test
* def temp = randomPhoneString()
* print temp
我得到的错误是:
原因:gherkin.lexer.LexingError:第6行出现Lexing错误:“返回Math.floor(100000000 + Math.random()* 900000000);}
答案 0 :(得分:1)
请删除换行符,或使用"""
“ doc_string”语法-refer documentation。
* def randomString = function(){ return Math.floor(100000000 + Math.random() * 900000000) }