我是QAF的新手。在application.properties中设置路径的格式是什么?我需要包括双引号吗?单斜杠还是双斜杠?
#set 1 to suppress success log, when 0 it will also show verification success message
report.log.skip.success=0
webdriver.chrome.driver = ??发布于 2018-10-10 23:37:10
当您在本地运行时,webdriver要求使用基础驱动程序指定的相应属性提供驱动程序可执行路径。大多数情况下,该属性是webdriver.<drivername>.driver。对于chrome,该属性为webdriver.chrome.driver。它需要设置为系统属性。当您使用qaf时,它提供了通过属性文件设置该属性的方法。因此,该值将是chrome驱动程序可执行文件的路径。例如:
webdriver.chrome.driver=c:/downloads/chromedriver.exe如果您在项目目录中的某个位置放置了驱动程序可执行文件,则可以提供相对路径。例如,驱动程序可执行文件位于/servers/chromedriver.exe下,则可以按如下方式设置相对路径:
webdriver.chrome.driver=servers/chromedriver.exe注意:通过属性文件为chrome以外的驱动设置驱动可执行路径时,需要添加system前缀。例如:
system.webdriver.gecko.driver=<gecko-driver-executable-path>
system.webdriver.ie.driver=<ie-driver-executable-path>
system.webdriver.edge.driver=<edge-driver-executable-path>编辑:
QAF 3.0.1b具有集成的web驱动程序管理器,因此使用3.0.1b以后的驱动程序可执行文件将自动处理,您不需要为驱动程序可执行文件设置任何属性。
https://stackoverflow.com/questions/52733289
复制相似问题