我正在使用noseframework进行自动化运行。我们已经将它与testlink集成,用于标记通过/失败等。它运行良好。
当我使用线程选项--processes = 10在多个线程中运行它时,不会发生相同的更新。
我想在线程中执行事情并同时更新测试计划。我也很想知道背后发生了什么 线程中的场景阻止它工作。
感谢。
答案 0 :(得分:0)
I'm new to Testlink and Automation testing myself but I believe I encountered the same problem.
Try running this instead:
nosetests --processes=10 --process-timeout=600
I think the reason it wasn't working for you is because you didn't set a timeout. Since you're running multiple processes in parallel, you need to tell nose when to timeout for each test so it doesn't just freeze up when the test lags or put in an infinite loop or whatnot.
Note: The number of processes and the process time is arbitrary to suite your tests and what you're testing. Try to set a high timeout though, like this one is set to 10 minutes.