robotframework - Set relative Path to access Directory of Robot Suite dynamically -


my project designed below   robotframework |_api    |_resources- keywords.robot    |    |    |_testdir         |_testdir1         |     |_testcase1         |     |          |_data1.py         |     |          |_data2.py            |     |_testcase2          |     |          |_data3.py         |     |          |_data4.py         |     |          |     |___testdir1_integration_suite.robot         |         |_testdir2...         .         . 

and on

testdir1_integration_suite.robot suite has both testcase1 , testcase2, when run suite, runs cases within testdir1.

within testdir1_integration_suite.robot looks this:

*** testcases ***  testcase1 start test [documentation]     send request  ${conf}     check response  ${conf}  testcase2 start test [documentation]     send request  ${conf}     check response  ${conf} 

i want define keyword start test in resources file keywords.robot. not able specify directory testdir1, testdir2 dynamically in relative path. not sure how it.

in keywords.robot file how specify path ${conf}, integration_suite this:

*** testcases ***  testcase1 start test  testcase2 start test 

if define start test keyword within integration_suite, can dynamically want define path in resource file. please


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -