I am working on an automation project using Selenium and java in Cucumber framework and Gherkins. I actually want to pass test datas from an excel so as to test the scenarios multiple times with the test datas. I am able to execute the script for one set of data. But for multiple set I can't. Also we are using page object concept. Is there any way to make my code capable of accessing multiple set of data from excel so as to test the application with different data sets?
我正在做一個使用Selenium和java在Cucumber框架和Gherkins中的自動化項目。實際上,我想從excel中傳遞測試數據,以便多次使用測試數據來測試場景。我能夠為一組數據執行腳本。但對於多重集合,我不能。我們還使用頁面對象概念。是否有辦法使我的代碼能夠訪問excel中的多個數據集,以便用不同的數據集測試應用程序?
Please note I am using java and not ruby..
請注意我使用的是java而不是ruby。
1
You can simply use Cucumber "Scenario Outline" feature here without using excel.
在這里,您可以使用Cucumber“Scenario Outline”特性,而無需使用excel。
本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2014/09/14/720ef937873d7696900d03d285b80c91.html。