<i id='Kbc4t'><tr id='Kbc4t'><dt id='Kbc4t'><q id='Kbc4t'><span id='Kbc4t'><b id='Kbc4t'><form id='Kbc4t'><ins id='Kbc4t'></ins><ul id='Kbc4t'></ul><sub id='Kbc4t'></sub></form><legend id='Kbc4t'></legend><bdo id='Kbc4t'><pre id='Kbc4t'><center id='Kbc4t'></center></pre></bdo></b><th id='Kbc4t'></th></span></q></dt></tr></i><div id='Kbc4t'><tfoot id='Kbc4t'></tfoot><dl id='Kbc4t'><fieldset id='Kbc4t'></fieldset></dl></div>
<legend id='Kbc4t'><style id='Kbc4t'><dir id='Kbc4t'><q id='Kbc4t'></q></dir></style></legend>
  • <small id='Kbc4t'></small><noframes id='Kbc4t'>

    • <bdo id='Kbc4t'></bdo><ul id='Kbc4t'></ul>

      1. <tfoot id='Kbc4t'></tfoot>

        没有 RDC 的 Windows 和 GUI 测试上的 Jenkins

        Jenkins on Windows and GUI Tests without RDC(没有 RDC 的 Windows 和 GUI 测试上的 Jenkins)
      2. <legend id='sGdh3'><style id='sGdh3'><dir id='sGdh3'><q id='sGdh3'></q></dir></style></legend>

          <small id='sGdh3'></small><noframes id='sGdh3'>

            <tbody id='sGdh3'></tbody>

            • <bdo id='sGdh3'></bdo><ul id='sGdh3'></ul>
              <tfoot id='sGdh3'></tfoot>
                <i id='sGdh3'><tr id='sGdh3'><dt id='sGdh3'><q id='sGdh3'><span id='sGdh3'><b id='sGdh3'><form id='sGdh3'><ins id='sGdh3'></ins><ul id='sGdh3'></ul><sub id='sGdh3'></sub></form><legend id='sGdh3'></legend><bdo id='sGdh3'><pre id='sGdh3'><center id='sGdh3'></center></pre></bdo></b><th id='sGdh3'></th></span></q></dt></tr></i><div id='sGdh3'><tfoot id='sGdh3'></tfoot><dl id='sGdh3'><fieldset id='sGdh3'></fieldset></dl></div>
                • 本文介绍了没有 RDC 的 Windows 和 GUI 测试上的 Jenkins的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我们有 Jenkins 的主从配置.我们的 .NET 项目是由在 Windows 上运行的从属 Jenkins 实例构建的.

                  We have a master-slave configuration for Jenkins. Our .NET project is built by a slave Jenkins instance running on Windows.

                  有很多 GUI 测试,但它们似乎只有在远程桌面连接 (RDC) 会话打开时才会运行.

                  There are a bunch of GUI tests, however they only seem to run if there's a remote desktop connection (RDC) session open.

                  当尝试在没有 RDC 的情况下运行测试时,Jenkins 没有显示任何测试进度.但是,然后我连接到 Slave 的桌面,可以看到启动的应用程序的主窗口,但是 UI 测试框架(白色)无法执行任何操作.

                  When trying to run the tests with no RDC, Jenkins doesn't show any progress in testing. Then, however, I connect to the Slave's desktop and can see the main window of the application launched, however the UI testing framework (White) cannot perform any actions.

                  Jenkins slave 通过 Java Web Start 启动.

                  The Jenkins slave is launched via Java Web Start.

                  我在几个网站上读到,不幸的是,没有 RDC 会话就无法运行 GUI 测试.

                  I read on several websites that unfortunately it is not possible to run GUI tests without RDC session.

                  我只是想确认这是真的,想知道是否有任何解决方法.

                  I just want to confirm that it is true and wonder if there is any workaround.

                  推荐答案

                  你的从机必须在桌面上才能正常运行测试.我们遇到了同样的问题.

                  Your slave machines have to be at a desktop before the test can run properly. We had the same problem.

                  解决方案是让测试机器启动并自动登录到桌面.为了确保测试仅在桌面可用后开始,我们添加了一个计划任务,设置为在用户登录时运行,这将通过 Java Web Start 启动 Jenkins 从站.这样,Jenkins 只会在桌面运行时看到从属服务器.之后,一切正常.

                  Solution was to have the test machine start up and auto-logon to the desktop. To ensure that the test would ONLY start after the desktop was available, we added a scheduled task, set to run at user login, that would launch the Jenkins slave via Java Web Start. That way, Jenkins would only see the slave once the desktop was running. After that, everything worked fine.

                  这篇关于没有 RDC 的 Windows 和 GUI 测试上的 Jenkins的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Force JsonConvert.SerializeXmlNode to serialize node value as an Integer or a Boolean(强制 JsonConvert.SerializeXmlNode 将节点值序列化为整数或布尔值)
                  Using JSON to Serialize/Deserialize TimeSpan(使用 JSON 序列化/反序列化 TimeSpan)
                  Could not determine JSON object type for type quot;Classquot;(无法确定类型“Class的 JSON 对象类型.)
                  How to deserialize a JSONP response (preferably with JsonTextReader and not a string)?(如何反序列化 JSONP 响应(最好使用 JsonTextReader 而不是字符串)?)
                  how to de-serialize JSON data in which Timestamp it-self contains fields?(如何反序列化时间戳本身包含字段的JSON数据?)
                  JSON.Net custom contract serialization and Collections(JSON.Net 自定义合约序列化和集合)
                • <i id='kFpcX'><tr id='kFpcX'><dt id='kFpcX'><q id='kFpcX'><span id='kFpcX'><b id='kFpcX'><form id='kFpcX'><ins id='kFpcX'></ins><ul id='kFpcX'></ul><sub id='kFpcX'></sub></form><legend id='kFpcX'></legend><bdo id='kFpcX'><pre id='kFpcX'><center id='kFpcX'></center></pre></bdo></b><th id='kFpcX'></th></span></q></dt></tr></i><div id='kFpcX'><tfoot id='kFpcX'></tfoot><dl id='kFpcX'><fieldset id='kFpcX'></fieldset></dl></div>
                    <tbody id='kFpcX'></tbody>
                  <legend id='kFpcX'><style id='kFpcX'><dir id='kFpcX'><q id='kFpcX'></q></dir></style></legend>

                    <small id='kFpcX'></small><noframes id='kFpcX'>

                  1. <tfoot id='kFpcX'></tfoot>

                            <bdo id='kFpcX'></bdo><ul id='kFpcX'></ul>