Selenium IDE, path of file to be uploaded is to be made relative.

前端 未结 1 632
迷失自我
迷失自我 2021-01-14 08:07

I am using selenium IDE to make automated test cases for my webapp.

scenario - to test file upload.

Directory structure :-

myapp/ 
      test         


        
相关标签:
1条回答
  • 2021-01-14 08:49

    Plugin-free solution:

    <tr>
        <td>storeEval</td>
        <td>Preferences.getString(TestSuite.TEST_SUITE_DIRECTORY_PREF);</td>
        <td>testSuiteFolder</td>
    </tr>
    <tr>
        <td>type</td>
        <td>id=QuestionUpload_file</td>
        <td>${testSuiteFolder}/resources/question_upload.csv</td>
    </tr>
    

    No config necessary.

    0 讨论(0)
提交回复
热议问题