简体   繁体   English

Webdriver使用电子表格中的测试数据并行执行

[英]Webdriver parallel execution using test data from spreadsheet

I am using spreadsheet (MS Excel) to provide test data for my test suite. 我正在使用电子表格(MS Excel)为我的测试套件提供测试数据。

I tried to execute my selenium webdriver test suite in parallel grid. 我试图在并行网格中执行我的Selenium Webdriver测试套件。 But, out of 5 parallel instances, only one gets the test data from spreadsheet. 但是,在5个并行实例中,只有一个从电子表格中获取测试数据。

I don't understand the possible cause that would led to such behaviour. 我不了解可能导致此类行为的可能原因。

Please help me. 请帮我。

Possible cause can be; 可能的原因可能是;

  • Use of static methods to read the excel. 使用静态方法读取Excel。
  • Use of same instance of excel reader class in test classes. 在测试类中使用excel读者类的相同实例。

Please provide more information. 请提供更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM