简体   繁体   English

使用QTP / UFT对JavaSlider对象进行的拖动操作可以在断点上运行,但是如果没有

[英]Drag operation on JavaSlider object using QTP/UFT works with breakpoint but fails without

I use Drag method on a Java Slider with some number as argument. 我在Java Slider上使用Drag方法,并使用一些数字作为参数。 It fails to work during execution. 它在执行期间无法工作。 But always works with breakpoint. 但始终与断点一起使用。 Any setting to make QTP simulate execution behavior of breakpoint. 使QTP能够模拟断点执行行为的任何设置。 Please note that application is thick client Java. 请注意,该应用程序是胖客户端Java。

I've come across this problem in the past and I found it was because QTP/UFT was getting ahead of its self. 我过去曾遇到过这个问题,发现这是因为QTP / UFT超越了自己。 This might seem primitive but I had a sync (to ensure that your application has displayed the expected page), put a couple of second wait, check that 'Slider' exists and then attempt an action on it. 这看似原始,但我进行了同步(以确保您的应用程序已显示预期的页面),稍等片刻,检查“ Slider”是否存在,然后尝试对其进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM