Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Connect to Database pymssql DBNAME UNAME PWD PORTNO
- ${QueryResult}= Query SelectQuery
- Log ${QueryResult[0]}
- Inputtext id ${QueryResult[0]}
- Log ${QueryResult[0]}
- # the output is
- # (Decimal('2'),)
- # e.g. "a single row, that has only one column" - just one tuple member
- ${value}= Set Variable ${QueryResult[0][0]}
- # if you run Log on it, the output most probably looks like this:
- # Decimal('2')
- ${value}= Convert To String ${value} # now it's no longer Decimal, but plain str type
- Input Text id ${value}
- ${result} Query ${query_string}
- ${first} Set Variable ${result[0][0]}
Add Comment
Please, Sign In to add comment