LoadRuner12.53教程(三)

教训1:建立一个Vuser Script

jiào教   xùn训   1   :   jiàn建   立   一   个   V   u   s   e   r   S   c   r   i   p   t  

To generate a load on your system, you first build a Vuser script that you can run to emulate real user behavior. You use VuGen to create and build Vuser scripts.

生成你的系统上的负载,你首先建立一个虚拟用户脚本可以运行模拟真实的用户行为。你使用VuGen创建Vuser脚本。

shēng生   chéng成   你   de的   系   tǒng统   shàng上   de的   负   zài载   ,   你   shǒu首   xiān先   jiàn建   立   一   个   虚   拟   yòng用   户   jiǎo脚   běn本   可   以   yùn运   xíng行   模   拟   zhēn真   shí实   de的   yòng用   户   xíng行   wéi为   。   你   shǐ使   yòng用   V   u   G   e   n   chuàng创   jiàn建   V   u   s   e   r   jiǎo脚   běn本   。  

In this lesson you will cover the following topics:

在本课中,您将讨论以下主题:

zài在   běn本   课   zhōng中   ,   nín您   jiāng将   tǎo讨   lùn论   以   xià下   zhǔ主   题   :  

•Introducing VuGen - the Virtual User Generator

•介绍VuGen的虚拟用户生成器

•   jiè介   shào绍   V   u   G   e   n   de的   虚   拟   yòng用   户   shēng生   chéng成   器  

•Creating a Blank Vuser Script

•创造Blank Vuser Script

•   chuàng创   zào造   B   l   a   n   k   V   u   s   e   r   S   c   r   i   p   t  

•Recording a Vuser script

•记录一个虚拟用户脚本

•   记   录   一   个   虚   拟   yòng用   户   jiǎo脚   běn本  

•Viewing the Vuser script

•查看Vuser的剧本

 

将打开的虚拟用户生成器

jiāng将   打   kāi开   de的   虚   拟   yòng用   户   shēng生   chéng成   器  

In a performance testing environment, LoadRunner replaces human users with virtual users, also known as Vusers. Vusers generate a load on a system by emulating actions of typical users - in a repeatable and predictable manner.

在性能测试环境,LoadRunner代替人类用户与虚拟用户,也被称为虚拟。用户通过模拟典型用户的行为在一个可重复的和可预测的方式产生一个系统负载。

zài在   xìng性   néng能   测   shì试   huán环   jìng境   ,   L   o   a   d   R   u   n   n   e   r   dài代   替   rén人   lèi类   yòng用   户   与   虚   拟   yòng用   户   ,   也   bèi被   chēng称   wéi为   虚   拟   。   yòng用   户   tōng通   guò过   模   拟   diǎn典   xíng型   yòng用   户   de的   xíng行   wéi为   zài在   一   个   可   chóng重   复   de的   和   可   预   测   de的   fāng方   shì式   chǎn产   shēng生   一   个   系   tǒng统   负   zài载   。  

You use VuGen (LoadRunner's Virtual User Generator) to create Vuser scripts. VuGen works on a record-and-playback principle. As you walk through a business process on your application, VuGen records your actions and transforms these actions into steps in a Vuser script. These Vuser scripts form the foundation of your load tests.

你使用VuGen(LoadRunner的虚拟用户生成器)创建虚拟用户脚本。打开工作记录和回放的原理。当你走在你的应用程序的业务流程,VuGen记录你的行动和改变这些行为在虚拟用户脚本的步骤。这些虚拟用户脚本的形式负载测试的基础。

 

创造一个Blank Vuser Script

chuàng创   zào造   一   个   B   l   a   n   k   V   u   s   e   r   S   c   r   i   p   t  

To develop a Vuser script, you first open VuGen and create a blank script. Thereafter, you can enhance the blank script by recording events and adding manual enhancements to the script.

开发一个虚拟用户脚本,你第一次打开VuGen和创建一个空白的脚本。此后,您可以通过记录事件和添加脚本的手动增强来增强空白脚本。

kāi开   发   一   个   虚   拟   yòng用   户   jiǎo脚   běn本   ,   你   第   一   次   打   kāi开   V   u   G   e   n   和   chuàng创   jiàn建   一   个   kòng空   bái白   de的   jiǎo脚   běn本   。   此   hòu后   ,   nín您   可   以   tōng通   guò过   记   录   shì事   jiàn件   和   tiān添   jiā加   jiǎo脚   běn本   de的   shǒu手   dòng动   zēng增   qiáng强   lái来   zēng增   qiáng强   kòng空   bái白   jiǎo脚   běn本   。  

In this section, you will open VuGen and create a blank Vuser script that is based on the Web - HTTP/HTML protocol.

在这一部分中,你将打开VuGen并创建一个空白的虚拟用户脚本是基于Web的HTTP / HTML协议。

zài在   zhè这   一   部   fen分   zhōng中   ,   你   jiāng将   打   kāi开   V   u   G   e   n   bìng并   chuàng创   jiàn建   一   个   kòng空   bái白   de的   虚   拟   yòng用   户   jiǎo脚   běn本   shì是   基   于   W   e   b   de的   H   T   T   P   /   H   T   M   L   xié协   议   。  

To create a blank Vuser script:

创建一个空白的虚拟用户脚本:

chuàng创   jiàn建   一   个   kòng空   bái白   de的   虚   拟   yòng用   户   jiǎo脚   běn本   :  

1.On the LoadRunner machine, double-click the Virtual User Generator shortcut icon on the desktop to open VuGen.

1。在LoadRunner的机器,双击虚拟用户生成器的快捷图标放在桌面上打开打开。

1   。   zài在   L   o   a   d   R   u   n   n   e   r   de的   机   器   ,   shuāng双   击   虚   拟   yòng用   户   shēng生   chéng成   器   de的   kuài快   jié捷   图   biāo标   fàng放   zài在   zhuō桌   miàn面   shàng上   打   kāi开   打   kāi开   。  

2.Click File > New Script and Solution or click the Add New Script button  on the VuGen toolbar. The Create a New Script dialog box opens.

2,点击文件>新的脚本和溶液或点击添加的工具栏按钮打开新的脚本。创建一个新的脚本对话框打开。

2   ,   diǎn点   击   wén文   jiàn件   >   xīn新   de的   jiǎo脚   běn本   和   róng溶   液   huò或   diǎn点   击   tiān添   jiā加   de的   gōng工   具   lán栏   àn按   niǔ钮   打   kāi开   xīn新   de的   jiǎo脚   běn本   。   chuàng创   jiàn建   一   个   xīn新   de的   jiǎo脚   běn本   duì对   huà话   kuàng框   打   kāi开   。  

3.Make sure the Category in the left pane is Single Protocol. VuGen displays a list of the protocols that are available for a single-protocol script.

3、确保左侧窗格中的类别是单一协议。打开显示一个列表,可用于单协议脚本的协议。

3   、   què确   bǎo保   zuǒ左   侧   chuāng窗   格   zhōng中   de的   lèi类   bié别   shì是   dān单   一   xié协   议   。   打   kāi开   xiǎn显   shì示   一   个   liè列   biǎo表   ,   可   yòng用   于   dān单   xié协   议   jiǎo脚   běn本   de的   xié协   议   。  

4.From the list of available protocols, select Web - HTTP/HTML and then click Create.

4、从可用的协议列表中,选择Web http / HTML,然后单击“创建”。

4   、   cóng从   可   yòng用   de的   xié协   议   liè列   biǎo表   zhōng中   ,   xuǎn选   择   W   e   b   h   t   t   p   /   H   T   M   L   ,   rán然   hòu后   dān单   击   “   chuàng创   jiàn建   ”   。  

VuGen creates a blank Vuser script and displays the script in the VuGen Editor.

打开创建一个空白的虚拟用户脚本在VuGen编辑器显示脚本。

 

记录一个虚拟用户脚本

记   录   一   个   虚   拟   yòng用   户   jiǎo脚   běn本  

The next step in developing the Vuser script is to record the actions performed by a real user. In the previous section, you created an empty Web - HTTP/HTML Vuser script. Now you can begin to record actions directly into the script. In this section, you will track the actions that a travel agent performs to reserve a flight from Denver to Los Angeles, and check the flight itinerary.

在开发虚拟用户脚本的下一步是记录一个真实的用户执行的操作。在上一节中,您创建了一个空的web HTTP/HTML虚拟用户脚本。现在您可以开始将操作直接记录到脚本中了。在本节中,您将跟踪旅行代理商为预订从丹佛到洛杉矶的航班,并检查航班行程。

zài在   kāi开   发   虚   拟   yòng用   户   jiǎo脚   běn本   de的   xià下   一   步   shì是   记   录   一   个   zhēn真   shí实   de的   yòng用   户   zhí执   xíng行   de的   cāo操   zuò作   。   zài在   shàng上   一   jié节   zhōng中   ,   nín您   chuàng创   jiàn建   le了   一   个   kōng空   de的   w   e   b   H   T   T   P   /   H   T   M   L   虚   拟   yòng用   户   jiǎo脚   běn本   。   xiàn现   zài在   nín您   可   以   kāi开   shǐ始   jiāng将   cāo操   zuò作   zhí直   jiē接   记   录   dào到   jiǎo脚   běn本   zhòng中   le了   。   zài在   běn本   jié节   zhōng中   ,   nín您   jiāng将   gēn跟   zōng踪   旅   xíng行   dài代   理   shāng商   wéi为   预   dìng订   cóng从   dān丹   佛   dào到   luò洛   shān杉   矶   de的   háng航   bān班   ,   bìng并   jiǎn检   chá查   háng航   bān班   xíng行   chéng程   。  

Note: To enable VuGen to record the actions that you perform in the Web Tours application, click Record > Recording Options. In the Recording Options dialog box, select General > Script, and then under Scripting Options, make sure that the Track processes created as COM local servers check box is cleared.

注:为了使VuGen记录你在网络旅游应用执行的操作,点击选项>录音记录。在“录制选项”对话框中,选择“常规>脚本”,然后在“脚本选项”下,确保清除了创建为“COM本地服务器”的跟踪进程复选框。

zhù注   :   wèi为   le了   shǐ使   V   u   G   e   n   记   录   你   zài在   wǎng网   luò络   旅   yóu游   yìng应   yòng用   zhí执   xíng行   de的   cāo操   zuò作   ,   diǎn点   击   xuǎn选   xiàng项   >   录   yīn音   记   录   。   zài在   “   录   zhì制   xuǎn选   xiàng项   ”   duì对   huà话   kuàng框   zhōng中   ,   xuǎn选   择   “   cháng常   guī规   >   jiǎo脚   běn本   ”   ,   rán然   hòu后   zài在   “   jiǎo脚   běn本   xuǎn选   xiàng项   ”   xià下   ,   què确   bǎo保   qīng清   chú除   le了   chuàng创   jiàn建   wéi为   “   C   O   M   běn本   地   服   务   器   ”   de的   gēn跟   zōng踪   jìn进   chéng程   复   xuǎn选   kuàng框   。  

To record the Vuser script:

记录虚拟用户脚本:

记   录   虚   拟   yòng用   户   jiǎo脚   běn本   :  

1.Start recording on the HP Web Tours web site.

1、在HP Web旅游网站上开始录制。

1   、   zài在   H   P   W   e   b   旅   yóu游   wǎng网   zhàn站   shàng上   kāi开   shǐ始   录   zhì制   。  

a.Click Record > Record or click the Record button  on the VuGen toolbar. The Start Recording dialog box opens.

A.点击记录>记录或点击工具栏上的按钮打开记录。“开始录制”对话框打开。

A   .   diǎn点   击   记   录   >   记   录   huò或   diǎn点   击   gōng工   具   lán栏   shàng上   de的   àn按   niǔ钮   打   kāi开   记   录   。   “   kāi开   shǐ始   录   zhì制   ”   duì对   huà话   kuàng框   打   kāi开   。  

b.In the Record into action box, select Action.

B.在“记录到动作”框中,选择动作。

zài在   “   记   录   dào到   dòng动   zuò作   ”   kuàng框   zhōng中   ,   xuǎn选   择   dòng动   zuò作   。  

c.From the Record list, select Web Browser.

C.从记录列表中选择Web浏览器。

cóng从   记   录   liè列   biǎo表   zhōng中   xuǎn选   择   W   e   b   liú浏   lǎn览   器   。  

d.In the Application box, make sure that Microsoft Internet Explorer appears.

D.在应用程序框中,确保微软Internet Explorer出现。

zài在   yìng应   yòng用   chéng程   序   kuàng框   zhōng中   ,   què确   bǎo保   wēi微   ruǎn软   I   n   t   e   r   n   e   t   E   x   p   l   o   r   e   r   chū出   xiàn现   。  

e.In the URL address box, type http://localhost:1080/WebTours.

E.在URL地址”框中,键入HTTP:/ / 1080 / webtours本地。

E   .   zài在   U   R   L   地   zhǐ址   ”   kuàng框   zhōng中   ,   jiàn键   入   H   T   T   P   :   /   /   1   0   8   0   /   w   e   b   t   o   u   r   s   běn本   地   。  

f.Click Start Recording. A new web browser opens and displays the HP Web Tours home page.

F.点击开始录音。一个新的Web浏览器打开并显示HP Web旅游主页。

diǎn点   击   kāi开   shǐ始   录   yīn音   。   一   个   xīn新   de的   W   e   b   liú浏   lǎn览   器   打   kāi开   bìng并   xiǎn显   shì示   H   P   W   e   b   旅   yóu游   zhǔ主   页   。  

Note:  If there is an error opening HP Web Tours, make sure that the Web Tours Server is running. For details, see  Using the HP Web Tours Sample Application.

注意:如果打开HP Web旅行出错,请确保Web漫游服务器正在运行。有关详细信息,请参阅使用HP Web旅行样例应用程序。

zhù注   意   :   如   guǒ果   打   kāi开   H   P   W   e   b   旅   xíng行   chū出   cuò错   ,   qǐng请   què确   bǎo保   W   e   b   màn漫   yóu游   服   务   器   zhèng正   zài在   yùn运   xíng行   。   yǒu有   guān关   xiáng详   细   xìn信   息   ,   qǐng请   cān参   yuè阅   shǐ使   yòng用   H   P   W   e   b   旅   xíng行   yàng样   例   yìng应   yòng用   chéng程   序   。  

VuGen's floating Recording toolbar opens.

打开记录的浮动工具栏打开。

打   kāi开   记   录   de的   浮   dòng动   gōng工   具   lán栏   打   kāi开   。  

2.Log on to HP Web Tours.

2、登录到HP Web旅游。

2   、   dēng登   录   dào到   H   P   W   e   b   旅   yóu游   。  

a.Type in the following information:

输入下列信息:

shū输   入   xià下   liè列   xìn信   息   :  

- User name: jojo

用户名称:JOJO

yòng用   户   míng名   chēng称   :   J   O   J   O  

- Password: bean

-密码:bean

-   密   码   :   b   e   a   n  

b.On the left pane, click Login. HP Web Tours welcomes you to the application.

在左侧窗格中,单击登录。HP Web旅游欢迎您的应用程序。

zài在   zuǒ左   侧   chuāng窗   格   zhōng中   ,   dān单   击   dēng登   录   。   H   P   W   e   b   旅   yóu游   huān欢   yíng迎   nín您   de的   yìng应   yòng用   chéng程   序   。  

3.Enter the flight details.

3、输入航班详细信息。

3   、   shū输   入   háng航   bān班   xiáng详   细   xìn信   息   。  

a.Click Flights. The Find Flight page opens.

点击航班。查找飞行页面打开。

diǎn点   击   háng航   bān班   。   chá查   zhǎo找   fēi飞   xíng行   页   miàn面   打   kāi开   。  

b.From Departure City, select Denver (default).

从出发城市,选择丹佛(默认)。

cóng从   chū出   发   chéng城   shì市   ,   xuǎn选   择   dān丹   佛   (   默   rèn认   )   。  

c.Departure Date: Keep the default date.

C.离开日期:保持默认日期。

C   .   离   kāi开   日   期   :   bǎo保   chí持   默   rèn认   日   期   。  

d.From Arrival City, select Los Angeles.

从抵达城市,选择洛杉矶。

cóng从   抵   达   chéng城   shì市   ,   xuǎn选   择   luò洛   shān杉   矶   。  

e.Return Date: Keep the default date.

E.返回日期:保持默认日期。

E   .   fǎn返   huí回   日   期   :   bǎo保   chí持   默   rèn认   日   期   。  

f.From Seating Preference, select Aisle.

从座位偏好,选择过道。

cóng从   zuò座   wèi位   piān偏   hào好   ,   xuǎn选   择   guò过   dào道   。  

g.Keep the rest of the default settings and click Continue. The Find Flight page opens.

保留其余的默认设置,然后单击继续。查找飞行页面打开。

bǎo保   liú留   其   余   de的   默   rèn认   shè设   zhì置   ,   rán然   hòu后   dān单   击   继   续   。   chá查   zhǎo找   fēi飞   xíng行   页   miàn面   打   kāi开   。  

4.Select a flight.

4、选择航班。

4   、   xuǎn选   择   háng航   bān班   。  

Click Continue to accept the default flight selections. The Payment Details page opens.

单击“继续”接受默认航班选择。付款详细信息页打开。

dān单   击   “   继   续   ”   jiē接   shòu受   默   rèn认   háng航   bān班   xuǎn选   择   。   付   kuǎn款   xiáng详   细   xìn信   息   页   打   kāi开   。  

5.Enter payment information and book the flight.

5、输入付款信息并预订航班。

5   、   shū输   入   付   kuǎn款   xìn信   息   bìng并   预   dìng订   háng航   bān班   。  

a.In the Credit Card box, enter 12345678.

在信用卡框中,输入12345678。

zài在   xìn信   yòng用   卡   kuàng框   zhōng中   ,   shū输   入   1   2   3   4   5   6   7   8   。  

b.In the Exp Date box, enter 06/19.

在“输入日期”框中,输入06 / 19。

zài在   “   shū输   入   日   期   ”   kuàng框   zhōng中   ,   shū输   入   0   6   /   1   9   。  

c.Click Continue. The Invoice page opens, displaying your invoice.

单击“继续”。发票页打开,显示您的发票。

dān单   击   “   继   续   ”   。   发   piào票   页   打   kāi开   ,   xiǎn显   shì示   nín您   de的   发   piào票   。  

6.In the left pane, click Itinerary. The Itinerary page opens.

6、在左侧窗格中单击“行程”。行程页面打开。

6   、   zài在   zuǒ左   侧   chuāng窗   格   zhōng中   dān单   击   “   xíng行   chéng程   ”   。   xíng行   chéng程   页   miàn面   打   kāi开   。  

7.In the left pane, click Sign Off.

7、在左侧面板中单击“关闭”。

7   、   zài在   zuǒ左   侧   miàn面   bǎn板   zhōng中   dān单   击   “   guān关   闭   ”   。  

8.Close the browser, and then click the Stop Recording button  on the VuGen floating toolbar to stop the recording process.

8,关闭浏览器,然后单击“停止录制”按钮,在打开的浮动工具栏停止记录过程。

8   ,   guān关   闭   liú浏   lǎn览   器   ,   rán然   hòu后   dān单   击   “   tíng停   zhǐ止   录   zhì制   ”   àn按   niǔ钮   ,   zài在   打   kāi开   de的   浮   dòng动   gōng工   具   lán栏   tíng停   zhǐ止   记   录   guò过   chéng程   。  

VuGen generates the required code and inserts the code into the Vuser script.

脚本生成器生成所需的代码并将代码插入到虚拟用户脚本。

jiǎo脚   běn本   shēng生   chéng成   器   shēng生   chéng成   suǒ所   需   de的   dài代   码   bìng并   jiāng将   dài代   码   chā插   入   dào到   虚   拟   yòng用   户   jiǎo脚   běn本   。  

If the Design Studio opens, click Close to close the Design Studio.

如果设计工作室打开,单击关闭来关闭设计工作室。

如   guǒ果   shè设   计   gōng工   zuò作   shì室   打   kāi开   ,   dān单   击   guān关   闭   lái来   guān关   闭   shè设   计   gōng工   zuò作   shì室   。  

9.Save the Vuser script.a.Select File > Save Script As.

9。保存虚拟用户script.

a.select文件>保存脚本。

9   。   bǎo保   cún存   虚   拟   yòng用   户   s   c   r   i   p   t   .   a   .   s   e   l   e   c   t   wén文   jiàn件   >   bǎo保   cún存   jiǎo脚   běn本   。  

b.Navigate to <LoadRunner Installation>\tutorial, create a new folder named Scripts, and then navigate to the new Scripts folder.

B.浏览<< LoadRunner安装> \教程,创建一个新文件夹命名为脚本,然后导航到新的脚本文件夹。

B   .   liú浏   lǎn览   <   <   L   o   a   d   R   u   n   n   e   r   ān安   zhuāng装   >   \   jiào教   chéng程   ,   chuàng创   jiàn建   一   个   xīn新   wén文   jiàn件   jiā夹   mìng命   míng名   wéi为   jiǎo脚   běn本   ,   rán然   hòu后   dǎo导   háng航   dào到   xīn新   de的   jiǎo脚   běn本   wén文   jiàn件   jiā夹   。  

c.In the File name box, type basic_tutorial.

C.在“文件名”框中,键入basic_tutorial。

zài在   “   wén文   jiàn件   míng名   ”   kuàng框   zhōng中   ,   jiàn键   入   b   a   s   i   c   _   t   u   t   o   r   i   a   l   。  

d.Click Save. VuGen saves the script and displays the script name in the VuGen title bar.

d.单击保存。打开保存脚本并显示在标题栏中打开脚本名称。

 

看Vuser的脚本

kàn看   V   u   s   e   r   de的   剧   běn本  

You have now recorded the actions of a travel agent logging in, booking a flight, checking the itinerary, and logging off. VuGen recorded your steps from the moment you clicked the Start Recording button to the moment you clicked the Stop Recording button.

现在,您已经记录了旅行代理登录、预订航班、检查行程和注销的操作。VuGen记录你的步当你点击开始记录按钮,当你点击停止录制按钮。

xiàn现   zài在   ,   nín您   已   jīng经   记   录   le了   旅   xíng行   dài代   理   dēng登   录   、   预   dìng订   háng航   bān班   、   jiǎn检   chá查   xíng行   chéng程   和   zhù注   xiāo销   de的   cāo操   zuò作   。   V   u   G   e   n   记   录   你   de的   步   dāng当   你   diǎn点   击   kāi开   shǐ始   记   录   àn按   niǔ钮   ,   dāng当   你   diǎn点   击   tíng停   zhǐ止   录   zhì制   àn按   niǔ钮   。  

You can now use VuGen to view the script. VuGen lets you see the Vuser script in a number of formats:

现在你可以使用VuGen查看脚本。打开让你在一些格式看到虚拟用户脚本:

xiàn现   zài在   你   可   以   shǐ使   yòng用   V   u   G   e   n   chá查   kàn看   jiǎo脚   běn本   。   打   kāi开   ràng让   你   zài在   一   xiē些   格   shì式   kàn看   dào到   虚   拟   yòng用   户   jiǎo脚   běn本   :  

•The Solution Explorer gives you structured access to the various parts of a Vuser script, as well as to a number of files that are associated with the Vuser script.

•解决方案资源管理器给你结构化访问一个虚拟用户脚本的各个部分,以及大量的与Vuser相关的脚本文件。

•   jiě解   jué决   fāng方   àn案   资   yuán源   guǎn管   理   器   gěi给   你   jié结   gòu构   huà化   fǎng访   wèn问   一   个   虚   拟   yòng用   户   jiǎo脚   běn本   de的   各   个   部   fen分   ,   以   及   大   liàng量   de的   与   V   u   s   e   r   xiāng相   guān关   de的   jiǎo脚   běn本   wén文   jiàn件   。  

•The Step Navigator displays an icon-based view of the script that lists the actions of the Vuser as steps. For each action you performed during recording, VuGen generated a corresponding step in the Step Navigator.

•步导航仪显示的图标的脚本,列出Vuser的行动步骤的观点。你在记录的每一个动作,VuGen中产生相应的步步导航仪。

•   步   dǎo导   háng航   仪   xiǎn显   shì示   de的   图   biāo标   de的   jiǎo脚   běn本   ,   liè列   chū出   V   u   s   e   r   de的   xíng行   dòng动   步   zhòu骤   de的   guān观   diǎn点   。   你   zài在   记   录   de的   měi每   一   个   dòng动   zuò作   ,   V   u   G   e   n   zhōng中   chǎn产   shēng生   xiāng相   yìng应   de的   步   步   dǎo导   háng航   仪   。  

The Step Navigator displays a snapshot icon  to indicate that a specific step contains a snapshot.

步骤导航器显示快照图标,以指示特定步骤包含快照。

步   zhòu骤   dǎo导   háng航   器   xiǎn显   shì示   kuài快   zhào照   图   biāo标   ,   以   zhǐ指   shì示   特   dìng定   步   zhòu骤   bāo包   hán含   kuài快   zhào照   。  

To view the script in the Step Navigator, select View > Step Navigator, or click the Step Navigator button  on the VuGen toolbar. Double-click any step in the Step Navigator to display the corresponding function in the Editor.

在Navigator视图的步骤的脚本,选择视图>步导航仪,或单击工具栏上的导航按钮打开一步。双击步骤导航器中的任何步骤以在编辑器中显示相应的函数。

zài在   N   a   v   i   g   a   t   o   r   shì视   图   de的   步   zhòu骤   de的   jiǎo脚   běn本   ,   xuǎn选   择   shì视   图   >   步   dǎo导   háng航   仪   ,   huò或   dān单   击   gōng工   具   lán栏   shàng上   de的   dǎo导   háng航   àn按   niǔ钮   打   kāi开   一   步   。   shuāng双   击   步   zhòu骤   dǎo导   háng航   器   zhōng中   de的   rèn任   何   步   zhòu骤   以   zài在   biān编   辑   器   zhōng中   xiǎn显   shì示   xiāng相   yìng应   de的   hán函   shù数   。  

•The VuGen Editor displays a text-based view of the script. In the Editor, the actions of the Vuser are listed as API functions. In the Editor, VuGen uses color-coding to show the functions and their argument values in the script. You can type C or LoadRunner API functions, as well as control flow statements, directly into the script.

•的VuGen编辑器显示脚本的文本观。在编辑器中,对虚拟用户的行为列为API函数。在编辑器中,VuGen使用颜色代码的脚本显示和参数值的函数。你可以C型或LoadRunner API函数,以及控制流语句,直接进入脚本。

转载于:https://www.cnblogs.com/yogayan/p/7082503.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值