51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 1257|回复: 0
打印 上一主题 下一主题

WinRunner:Execution Errors Due to SAP Timing

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-10-25 13:42:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Description

      Correcting errors that are caused by creating a transaction then immediately trying to query that item.


Solution

      We had run into problems with scripts that created transaction such as purchase order, and then immediately did something with that transaction such as posting a goods receipt. Our test environment had not fully processed the newly created transaction prior to trying to update it. We would get an error that said "document XXXXX doesn't exist" even though we just saw it get saved and we output the document number. If we went to the SAP screen and hit enter manually, the document number was accepted. We realized that we were trying to use that document too quickly after it was created. The first solution we tried was changing the testcase settings to allow a longer minimum think time for the script. This solution just slowed the entire script down and was not entirely satisfying. Looking at it further, we realized that we could either wait a little longer to hit enter, or we could just hit enter repeatedly until the system recognized the document number as existing, and displayed the next screen. You can use a GUI object loop to repeat this step until the next screen appears, but by far the easiest way to handle this is to use the step properties for that 'Enter' or 'Post' command. Within Properties is a tab called "Retry". The Retry tab has two settings, Retry and Delay. The Retry parameter indicates how many times the script should retry this step before failing. The delay indicates how many seconds to wait between each retry. By changing the Retry setting to 5, and the Delay setting to 1 second, we were able to solve our timing problem.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-5-8 01:18 , Processed in 0.061067 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表