Is there any way to send arguments/values to Robot test cases from jenkins? -


i have automated test takes input user , runs test. idea on if can give argument jenkins robot testcase , run test?

ex: scenario: test if lighting device works or not. steps: 1. ssh login light device, 2. run predefined set of commands, 3. verify lighting_flag set 0 or 1, 4. ssh logout device

in case, need take light device username , password input user. possible jenkins (build parameters) , run robot test case?

please let me know. thanks, sthuthi

you can use variables. example, user keyword connecting , logging in might like:

connect device        [arguments]    ${host}     open connection     ${host}     login    ${username}    ${password} 

now, provided jenkins parameters username , password, can use execute shell task this:

 pybot --variable username:[username] --variable password:[password] <path/to/tests> 

this sets global variables ${username} , ${password} test execution.

more info in user guide.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -