使用编码的UI执行特定方案时,QTAgent32.exe崩溃并且应用程序变得无响应 [英] QTAgent32.exe crashes and application becomes unresponsive when performing a certain scenario using Coded UI

查看:98
本文介绍了使用编码的UI执行特定方案时,QTAgent32.exe崩溃并且应用程序变得无响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

场景:

我正在一个应用程序上工作,该应用程序需要在弹出窗口中单击一个按钮,然后单击是"按钮,然后在弹出的结果中将所做的更改保存到数据库中(由应用程序保存).将更改保存到SQL之后 数据库,应用程序将显示确认消息,然后单击确定按钮.

I am working on an application where on a pop up window, I need to click a button, then click on a YES button in resulting pop up after which the changes made will be saved to the database (by the application). After the changes have been saved to the SQL database, the application will show a confirmation pop up with OK button after.

面临问题:

当手动执行此任务时,该应用程序运行良好,最后我用2秒钟的OK(确定)按钮弹出了窗口.

When carrying out this task manually, the application works fine and I get the final pop up with OK button withing 2 seconds.

当编码的UI正在执行此任务时,在单击是"按钮后,应用程序将卡住并继续显示旋转的处理中"消息.图标.我们的猜测是,当编码UI执行此任务时,更改未写入SQL数据库 出于某些原因由应用程序决定.

When Coded UI is executing this task, after clicking on YES button, the application gets stuck and keeps showing the spinning "processing" icon. Our guess is, when Coded UI is performing this task, changes are not getting written to SQL database by the application due to some reasons.

进行调试时,单击YES按钮并且应用程序被卡住并不断显示旋转的处理中"消息时,我会收到QTAgent32.exe崩溃异常.图标.

When debugging this, I am getting QTAgent32.exe crash exception as soon as the YES button is clicked and the application gets stuck and keeps showing the spinning "processing" icon.

请建议是否有解决方案.

Please suggest if there is any resolution.

谢谢

Akashdeep

Akashdeep

Akashdeep Srivastava测试工程师Wipro Technologies

Akashdeep Srivastava Test Engineer Wipro Technologies

推荐答案

您好,Akashdeep,

>>>>我们的猜测是,当编码UI执行此任务时,由于某些原因应用程序未将更改写入SQL数据库.

根据您的描述,编码的UI可以识别弹出框并可以识别确定"按钮,但是 更改事件不能由编码用户界面触发.

According to your description, Coded UI could recognize the popup box and could recognize the "OK" button, but the change event could not be triggered by Coded UI.

请参考以下步骤解决此问题:

1).更改事件是在程序中以JS或其他脚本语言发生的.因为编码的UI单击事件可能无法触发其他脚本语言的某些更改事件.因此,您可以使用"Keyboard.SendKeys"功能代替"click"功能 在编码的用户界面中.然后向观察者是否有相同的问题.

1). What's the change event happened in program, in JS or other script language. Because Coded UI click event may be could not trigger some change event in other script language. So you could use "Keyboard.SendKeys" function instead of "click" in coded UI. Then to observer whether has the same issue.

2).您是否使用手工编码或编码的UI测试构建器回放了该记录?我建议您可以使用编码的UI测试生成器"执行此操作,然后观察是否存在相同的问题.

3).如果上述步骤对您不起作用.单击是"按钮时,请从编码的用户界面分享我的错误屏幕截图?   这可以帮助我们进一步解决此问题.

3). If above steps could not work for you. Please share me the error screenshot from coded UI when click the "YES" button?  Which could help us further troubleshoot this issue.

此致

奥斯卡


这篇关于使用编码的UI执行特定方案时,QTAgent32.exe崩溃并且应用程序变得无响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆