0

I've been using Loadrunner for quite a while mainly with the web/http protocol. Our Web application is becoming more Ajaxified so after upgrading to loadrunner 12 I thought I'd give the truclient mode a go but am having issues getting the most basic test to replay.

I create a logon action which navigates to the website and signs in. I put this in the Init Block. I then create a new action for some business process and put this in the Run Block. When replaying, the init block runs fine but before it starts my run block the page returns to "about:blank". Therefore my run action fails as no objects can be found. Surely the page should remain as per the last navigation?

This can be easily recreated using other sites site bbc.co.uk i.e. Navigate to www.bbc.co.uk in the init and then click some links and put this in the Run block. I'm sure I'm missing something simple. Any help much appreciated.

4

1 回答 1

0

您的问题有两种可能的解决方案:

1)如果您使用“新用户模拟”(运行时设置->重播取消选中“每次迭代模拟新用户”(第一个选项))

如果您不想执行 (1),则:

2)将登录名放入操作中。

当检查“为每次迭代的新用户模拟新用户”时,我们就切割了迭代之间的所有连接,但是由于init仅发生一次,在迭代之前,我们在初始化后进行。

于 2015-04-19T07:13:42.837 回答