51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2690|回复: 5
打印 上一主题 下一主题

[原创] 能详细的介绍下 record the application starup 的使用。

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-4-18 16:30:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
请大家能不能详细的介绍下在 start recording  对话框中的 record the application starup 功能的使用,帮助文档中介绍的那三种情况,我不能十分理解是怎么回事。。。
在以下情况中,建议不录制启动:
➤ 录制多个操作时;在这种情况下,只需要在一个操作中执行启动。
➤ 希望在开始录制之前导航到应用程序中特定点的情况下。
➤ 录制到现有脚本中时。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2012-4-18 16:55:32 | 只看该作者
在补充一点,确切的说,我不明白“录制应用程序启动”是什么意思,是指的在录制应用程序时,后台运行的一些进程或是其他吗?
回复 支持 反对

使用道具 举报

  • TA的每日心情
    奋斗
    3 天前
  • 签到天数: 547 天

    连续签到: 1 天

    [LV.9]测试副司令

    3#
    发表于 2012-4-18 17:44:34 | 只看该作者
    First of all let us try to quickly understand the Load Testing:
    While aiming to perform a load test of an application; we use LoadRunner to replace the human users with virtual users (called "Vusers") on the actual machines. These Vusers impose artificially created load on the system by emulating actions of actual human users in a repeatable and predictable manner.

    Virtual User Generator module of LoadRunner commonly known as VuGen creates artificial users for us and records our all actions in the form of automated scripts. VuGen works on the principle of record and playback.

    Systematic steps to record an application using VuGen Module of LoadRunner are as under:

    Step - 1: Starting of the LoadRunner: Select "Start" > "Programs" > "LoadRunner" > "LoadRunner". The LoadRunner launcher window pops up.

    Step - 2: Starting of the VuGen Module of LoadRunner: Click the "Load Testing" tab, In the Launcher window.

    Further, click on the very first option "Create/Edit Scripts" to launch the Start Page of VuGen module.

    Step - 3: Creation of a new Script: Under the "Scripts" tab in the VuGen Start Page, click "New Vuser Script" to open the "New Virtual User" dialog box.

    Step - 4: Making a choice out of single protocol script or Multiple protocol script from the left pane of the dialog box:

    a) Select single protocol script - make a selection from the Category list and select one of the protocols.

    b) Select multiple protocol script - to record more than one protocols in a single recording session. Select the desired protocol from the Available Protocols list. Click the right-pointing arrow to move the selection into the Selected Protocols list. Repeat the step to select all the desired protocols.

    Step - 5: Close the "New Virtual User" dialog box by Clicking "OK".

    Step - 6: Start the process of recording various events into the Vuser script.

    a) Generally VuGen automatically opens the "Start Recording" dialog box when a new script is created.

    b) Alternately click the "Start Record" button in the Toolbar at the top of the page to open the "Start Recording" dialog box. The "Start Recording" dialog box may appear differently a little bit for different protocols.

    Step - 7: Filling up the information pertaining to Non Internet Applications in the Dialog Box

    a) For "Application type": Select Win32 Applications or Internet Applications, e.g. Web and Oracle NCA scripts record Internet Applications, while Windows Socket Vusers records a Win32 application.

    b) For "Program to record": Enter the Win 32 application to record.

    c) For "Program Arguments": Enter the command line arguments for the EXE file specified above; e.g. if we specify "abc32.exe" with the command line options "genius@xyz", it connects the user Genius to the server "xyz" when starting "abc32.exe".

    d) For "Working Directory": This information is needed for some specific applications requiring us to specify a working directory.

    Step - 8: Filling up the information pertaining to Internet Applications in the Dialog Box

    a) For "Application type": Select Internet Applications.

    b) For "Program to record": Select the browser or Internet application to record.

    c) For "URL Address": Specify the starting URL address.

    d) For "Working Directory": This information is needed for some specific applications requiring us to specify a working directory. This information may differ among different types of Vuser scripts.

    Fill up the information of program to record, the working directory, the Action & set the recording options by clicking "Options".

    Step - 9: Filling up the information pertaining to "Record into Action" box: Here we need to select the section where we want to record.

    Sections available here by default are: vuser_init, Action, and vuser_end. However we can add a new section by clicking "Actions" > "Create New Action" and describe a new action name.

    Step - 10: Recording the application startup: This step is not recommended under the following situations:

    a) When recording multiple actions, needing performing the startup in one action only.

    b) When we want to navigate to a specific point in the application before starting to record.

    c) While recording into an existing script.

    d) This step is not applicable to Java type Vuser scripts.

    However when there is a need to record the application startup; Click "Record the application startup". When we do not want VuGen to record the application startup, clear the check box.

    Step - 11: Filling up the information pertaining to Recording Options: Click "Options" button or the Recording Options button to open the "Recording options" dialog box and define the recording options. According to the recorded protocol the available options may differ.

    Step - 12: Defining the scripting options: Click the "Script" tab for selecting the language for code generation and for setting the scripting options.

    Step - 13: Defining the port information: Needed when recording SSL applications on a non-standard port. Review the list of ports. If the port we are using is not in the list, we can specify the information using the Port Mapping options.

    Click the "Port Mapping" tab for setting the port related information.

    Step - 14: Manage Protocols in case of multi-protocol recording: For editing the list of protocols needed to be recorded; click "Protocol" tab. Expand the node and select the desired protocols.

    Step - 15: Click "OK" to close the dialog box and start the recording. VuGen starts the application and the Recording toolbar opens.

    Perform the desired actions within the application, which need to be recorded. VuGen automatically fills in the selected action section of the Vuser script.

    For switching between sections during the recording we can use the floating toolbar.

    In case of recording a password-protected application, VuGen will prompt us to enter a user name and password.

    Step - 16: Completing the recording session:

    a) Switch to the vuser_end section in the floating toolbar.

    b) Click the "Stop Recording" button on the Recording toolbar.

    c) Click "Save" to save the recorded session

    http://www.softwaretestinggenius.com

    Article Source: http://EzineArticles.com/?expert=Yogindernath_Gupta
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
     楼主| 发表于 2012-4-19 09:36:13 | 只看该作者
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    5#
     楼主| 发表于 2012-4-19 09:47:12 | 只看该作者
    还是没能解答“录制应用程序启动”是何含义。
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    6#
    发表于 2012-4-19 15:11:12 | 只看该作者
    意思就是:在启动时开始正式录制
    勾选的话,只要是点了该提示框的确定之后,所有的和服务器交互的数据信息都会被捕获到

    若不透选该项的话,点了该提示框的确定之后,在做一些操作时,不会被录下来,直到你手动点击“开始录制”为止。

    假如你已经有了登录的脚本,现在只想要订票的脚步,不要从新录制登录业务,只需要不勾选该项,手动登录时不会记录事件,当需要订票时,点击“录制”,此时就开始录制脚本了
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-11 16:59 , Processed in 0.095549 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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