Guest User

Untitled

a guest
Oct 3rd, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. *** Settings ***
  2. Library pabot.PabotLib
  3.  
  4. *** Test Case ***
  5.  
  6.  
  7. Testing PabotLib
  8. Acquire Lock MyLock
  9. Log This part is critical section
  10. Release Lock MyLock
  11. ${valuesetname}= Acquire Value Set
  12. ${host}= Get Value From Set host
  13. ${username}= Get Value From Set username
  14. ${password}= Get Value From Set password
  15. Log Do something with the values (for example access host with username and password)
  16. Release Value Set
  17. Log After value set release others can obtain the variable values
  18.  
  19. [Server1]
  20. HOST=123.123.123.123
  21. USERNAME=user1
  22. PASSWORD=password1
  23.  
  24. [Server2]
  25. HOST=121.121.121.121
  26. USERNAME=user2
  27. PASSWORD=password2
  28.  
  29. pabot --pabotlib --resourcefile valueset.dat test.robot
Add Comment
Please, Sign In to add comment