很好的问题…。我会说这有点令人困惑。…但是会尝试用简单的方式回答。
MaxInstances 这表示....可以在远程系统上运行多少个相同版本的浏览器实例。
For example, i have a FF12,IE and i declared the command as follows-browser browserName=firefox,version=12,maxInstances=5,platform=LINUX-browser browserName=InternetExplorer,version=9.0,maxInstances=5,platform=LINUX
因此,我可以在远程计算机上同时运行5个Firefox 12实例和IE9的5个实例。因此,总用户可以并行运行10个不同浏览器(FF12和IE9)的实例。
MaxSession 这表示…。在远程系统中,一次可以并行运行多少个浏览器( 任何浏览器和任何版本
)。因此,这将覆盖“最大实例数”设置,并且可以限制可以并行运行的浏览器实例的数量。
For above example, when maxSession=1 forces that you never have more than 1 browser running.With maxSession=2 you can have 2 Firefox tests at the same time, or 1 Internet Explorer and 1 Firefox test).
无论您定义了什么MaxInstances。
有关更清晰的信息,请访问-https:
//seleniumhq.github.io/docs/grid.html



