Let's Go!

loadrunner_用VUG开发测试脚本的经典过程,非常值得一看:Vuser scripts using VuGen.

上一篇 / 下一篇  2009-04-07 15:44:19 / 个人分类:LoadRunner

在LR的Help里刚发现,用VUG开发测试脚本的经典过程

非常值得一看

Getting Started with XXX Vuser Scripts

This section provides an overview of the process of developing XXX  Vuser scripts using VuGen.

To develop a Database Vuser script.

  1. Record the basic script. using VuGen.

    Invoke VuGen and create a new Vuser script. Specify the type of Vuser (Client ServerorERPprotocol types). Choose an application to record and set the recording options. Record typical operations on your application.

    For details, seeRecording with VuGen.

  2. Enhance the script.

    Enhance the Vuser script. by inserting transactions, rendezvous points, and control-flow structures into the script.

    For details, seeEnhancing Vuser Scripts.

 3. Define parameters (optional).

    Define parameters for the fixed-values recorded into your script. By substituting fixed-values with parameters, you can repeat the same query many times using different values.

    For details, seeWorking with VuGen Parameters.

 4. Correlate queries (optional).

    Correlating database statements allows you to use the result of a query in a subsequent one. This feature is useful when working on a database with user constraints.

    For details, seeCorrelating Statements.

 5. Configure the run-time settings.

    The run-time settings control the Vuser script. behavior. during script. execution. These settings include loop, log, and timing information.

    For details, seeConfiguring Run-Time Settings.

 6. Run the script. from VuGen.

    Save and run the script. from VuGen to verify that it runs correctly.

    For details, seeRunning Vuser Scripts in Stand-Alone Mode.

After you create a script, you integrate it into your environment: a LoadRunner scenario, Performance Center load test, or Business Process Monitor profile. For more information, refer to theHP LoadRunner Controller,Performance Center, orHP Business Availability Centerdocumentation.

以前没注意啊,LR的帮助文档还真不赖哦


TAG:

 

评分:0

我来说两句

Open Toolbar