Advertisement
Guest User

Untitled

a guest
Feb 5th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. *** Settings ***
  2. Library ../framework/tests/Box.py
  3.  
  4. Documentation Tests Login to BOX.com
  5.  
  6. *** Variables ***
  7. ${user} XXXX
  8. ${userpass} XXXX
  9. ${forum_name} Getting Started
  10. ${thread_name} Call Ajax function
  11.  
  12. *** Test Cases ***
  13. Log into AspNet using valid credentials and create a new thread
  14. When I log into asp.net as my ${user} with ${userpass} and create a new thread as ${thread_name} under ${forum_name}
  15.  
  16. from framework.unit.box_unittest import BoxTestCase
  17. from robot.api.deco import keyword
  18.  
  19. class Box(BoxTestCase):
  20. @keyword(name='I log into asp.net as my ${user} with ${userpass} and create a new thread as ${thread_name} under ${forum_name}')
  21. def test_create_thread(self, user=None, password=None, forum_name=None, thread_name=None):
  22. print 'user is '+user
  23.  
  24. pybot Box.robot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement