How to randomly select links in e-tester and how to get VU# in e-load

1. How to randomly select one from links in a webpage in e-tester?
For example: there is a root-page. On it, there are about 2000 links to its subpages. They all have the following pattern:
<pre>
multiline<TD width="50%"><NOBR>
<img src="/images/tfold.gif" border="0" alt="GXC_.+?" align="texttop">
{a href="(.+?)"}<font class="titleorimageid1siteid0">GXC_.+?</font>{a} </NOBR>
</TD>
</pre>
So how can randomly select one link and then navigate to it?
2.how to get VU# in e-load?
For example: we launch 4000 VU to load-stress our server. But we want to use different user names to login for different VU#. such as VU#1's username is ADF1, VU#2's username is ADF2, VU#100's username is ADF100 and so on. How can we implement the feature?
Thanks a lot.
Edited by: user783927 on Dec 1, 2008 5:57 AM
Edited by: user783927 on Dec 1, 2008 5:59 AM

Thanks a lot for VU#. Also i got an idea about how to randomly select a link:
Private Sub RSWVBAPage_afterPlay()
Dim objReg As New RegExp
Dim objMatchCol As MatchCollection
Dim objMatch As Match
Dim objSubMatch As SubMatches
Dim doc As String
Dim str As String
Dim rNumb As Integer
RSWApp.GetHtml doc
With objReg
.Global = True
.IgnoreCase = True
'the kind of urls have the following special pattern
.Pattern = "pageid=34,([\d]{5})"
End With
Set objMatchCol = objReg.execute(doc)
Randomize
rNumb = objMatchCol.Count * Rnd
If objMatchCol.Count >= 1 Then
If rNumb = objMatchCol.Count Then
rNumb = objMatchCol.Count - 1
End If
End If
Set objMatch = objMatchCol.Item(rNumb)
Set objSubMatch = objMatch.SubMatches
str = objSubMatch.Item(0)
Call RSWApp.setCustomVariable("var_url", str)
RSWApp.WriteToLog str
Set objMatchCol = Nothing
Set objMatch = Nothing
End Sub

Similar Messages

  • How to write select statement before the loop and how to use read statemnt

    Hi,
    Recently our system has changed from 4.6 to ECC6.
    As its migrated its showing lots of errors like in between loop and endloop there should be no select statemnt........
    Can any one please tell how to write that coding in ECC6 , how can i change the code......
    In between loop and endloop i am having lots of select statemnts.....ple tell thye coding how can i select before the loop starts and
    how to read that internal table in loop.

    Hi Deepthi,
    You can do as per below:
    1) Select the required entries from the tables you need (VBAK, VBAP, KNA1, etc)
    SELECT VBELN ERDAT KUNNR
        into table it_vbak
        from VBAK
    where VBELN = S_VBELN. "Selection criteria
    If sy-subrc = 0.
    SELECT VBELN POSNR MATNR
        into table it_vbap
        from VBAP
    for all entries in it_vbak
    where VBELN = it_vbak-vbeln
    SELECT KUNNR NAME1
        into table it_vbak
        from VBAK
    where VBELN = it_vbak-vbeln.
    endif.
    2) Loop at the entries, and read internal table it-kna1 for customer info.
    Loop at it_vbak into wa_vbak.
    read table it_kna1 into wa_kna1 with key kunnr = wa_vbak-kunnr.
    if sy-subrc = 0.
    endif.
    loop at it_vbap into wa_vbap where vbeln = wa_vbak-vbeln.
    endloop.
    endloop.
    This is the basic idea and short example of how to extract entries and read internal table.
    Hope this helps.
    Regards,
    Patrick

  • How to create database link between oracle9i database and oracle10g

    How to create database link between oracle9i database and oracle10g
    oracle9i database name "Prod" windows server 2003 ( 172.x.x.x)
    oracle10g database name "TEST" sun solaris 9 (165.x.x.x.x)
    Please help me on this

    For connections between 10.2 and 9.2 the 9.2 end MUST be at 9.2.0.4 or higher. Connections between 10.2 and 9.2.0.1, 9.2.0.2 or 9.2.0.3 are not supported.
    Connections between 10.2 and 9.0.1 was never been supported.
    Cheers !!!!
    Bhupinder

  • How can i create link between ipad(xcode) and webserver?

    Hi, I'm a new to iPad development and i need help,
    i'm not good with english but i try to explain my question:
    how can i create link between ipad(xcode) and webserver?
    (the webserver ".NET" with driver odbc is connected with DB Oracle)
    so, how can my ipad application access to the Oracle DB?
    Create a webservice (.NET) to be place between iPad and DB, is this correct?
    how can i do it?
    which are libraries to include in the xcode's framework?
    thx

    I think the following URL will be your best answer:
    http://stackoverflow.com/questions/3510468/connecting-iphone-to-an-odbc-database

  • TS4436 How do I select more than one picture and send them all to Facebook on my iPhone 4s with iso7?

    How do I select more than one picture and send them all to Facebook on my iPhone 4s with iso7?

    Hi, I want to thank you for all your information regarding my questions about sending more than one photo to Facebook. I did have to stop in at Verizon (where I bought my iPhone) to find out why I did not have a choice to choose Facebook with the export icon. The tech had to go into my setting and enable Facebook to recognize my iPhone. When I upgraded to iso7 somehow it could not recognize Facebook. Once he did this for me I was able to follow your advice and your answer solved my question. Thank you

  • I have an 8500a how, once I select the apps I want and add to the printer. How do i get them to wor

    I have an 8500a how, once I select the apps I want and add to the printer.  How do i get them to work? And is it always this slow....

    Hey jmknights!
    While I can't speak to how quickly the apps will work, I may be able to help you with how they work. Once you have the apps added to the printer you would select the app you want to print from on the printer's front panel. Once inside the app, select what you want to print and if all goes as it should, the printer should begin printing the requested information within a few seconds.
    Hope this helps!
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • How can I add links to open xml and csv files stored in another location? Please advice how to place links in my frame maker document?

    Hi,
    I would like to know as to how can I add links to open xml and csv files stored in another location? Please advice how to place links in my frame maker document?
    Kindly advice.
    Thanks
    Priya

    Special > Hypertext > Command "open document" will do its best to open the target document inside FrameMaker, which may not be much help; Special > Hypertext > Command "message …" will use the application you specify. The user guide for 7.0 says this about absolute links, and I don't think anything has changed since:
    For example, to start PaintBrush and open the Ship.pcx file on drive C you would use the command message system pbrush.exe C:/Ship.pcx
    I've not often used a relative link, and not recently: the same source says
    folder levels are separated by a slash / even in Windows and Mac
    [relative links] FrameMaker searches for a relative pathname beginning in the folder that contains the current document
    [absolute links] FrameMaker searches for an absolute pathname beginning at the top of the file system. In Windows, the absolute pathname begins with the drive specifier, a colon and a slash.

  • How do I select a midi input device and record midi?

    I have several midi input devices connected to my computer. I use them regularly with Digital Performer. I am trying to record a single midi track in Garage Band using an Oxygen 8 keyboard. In the preferences GB says that it sees 7 midi devices. How do I route midi with Garage Band and how do I tell Garage band which midi device to record from? When I create a midi track (well...I think that it is a midi track) and I try to record I do not see any midi notes being recorded.
    Searching the help file for midi provided surprisingly little information. I am sure that this is simple stuff...perhaps so simple that I am missing something obvious.

    Yes, if the controller sends the right MIDI messages
    What do you mean by "the right midi messages"?
    I have a virtual instrument (with for example) a delay effect knob. I would like to turn a knob on my midi controller and adjust the delay in the virtual instrument (as I can in just about any other sequencer). Can GarageBand do this, if so, how?

  • How to view the planned orders in mass and how to delete in mass

    Hi gurus,
    How to view the planned orders in mass and how to delete in mass.
    Regards
    R.Rajakarthik

    Hi,
    Use the collective display of planned orders, transaction code MD16.
    You can select the data by different options and choose which ones or all that you need to delete.
    Click the Delete button to trash them.
    This will delete planned orders without deleting the planned independent requirements and sales orders.
    Hope it helps

  • How to know the model of my Dv6 and how to install switchable graphics driver

    hi,
    I have a HP pavilion dv6 but I don't know what model is to download the drivers.
    Here are the specs:
    (this was purchase in Europe Portugal)
    - Intel core I5 M480 2.67Ghz
    - 500GB HDD 5600rpm
    - HD 6650
    - 4GB RAM
    - Finger print reader
    - 3x USB
    -Dvd Rom
    - x1 SD CARD reader
    - x1 esata
    - x1 HDMI
    - x1 Vga port
    - Camera HP trueVision
    - Dobly Advance Audio ALTEC lansing
    - Win7 Home Prem 64bit
    I need to install the AMD 6650 Driver with the switchable drivers options currently it only detects the Intel HD Graphics, installing the latest driver from AMD for the mobil 6650 will not work it doesn't dettect the graphics card.
    How can I know my laptop model ? and how to install the switchable and AMD drivers.. the laptop came with no CDs.
    Thank you,
    Arthur

    Get your full Model number or Product number from the Service Tag attached to bottom of laptop (may be under battery)
    How Do I Find My Model Number or Product Number
     Once you have the info, use the button at top of this page titled "Support", then click "Download drivers" from the menu. Enter your Product Number. After entering PN click 'Go". On the next page use the dropdown menu to select your Operating System, click Next. A list will populate with drivers/software.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • How does the URL of DataSocket constitute?And how to use it in LabWindows/CVI ?

    Hi !
    There's a problem puzzled me some days.How does the URL of DataSocket constitute ? And how to use it in LabWindow/CVI ?
    For example.I have downloaded a code in http://zone.ni.com/devzone/cda/epd/p/id/3787.I want to make it work properly.So I configure my DataSocket Server Manger according to the URL of this statement.
    DS_Open ("dstp://weather.natinst.com/weather/current",
    DSConst_ReadAutoUpdate, DSCurrentCallback, NULL,
    &dsCurrentHandle);
     My DateSockket Server Manger is configured as:
    However,it could not work properly when I debug it.
    There's a introduction at the top of the code."You may need to replace the references to weather.natinst.com to 130.164.140.10 if the DNS isn't working properly."So,I modified the statement into
    DS_Open ("dstp://130.164.140.10/weather/current",
    DSConst_ReadAutoUpdate, DSCurrentCallback, NULL,
    &dsCurrentHandle);
    but,it did work properly.
    We want to communicate with other computers via the URL of  DataSocket in LabWindows/CVI.Whereas,how could we make it ia the URL ?
    If anyone could help me solve this problem,I would appreciate it very much !
    Best regards.
                     xiepei
    I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.

    Hi !
    Thank you very much for your reply! I will accept your advice.
    Besides,I have another question.If I want to visit other computers or other websites,how does the URL of DataSocket  I constitute ? Does the URL has any relation with the DataSocket Server Manger ?If does,how to configure the DataSocket Server Manager to let them connected.If they have no relation,how to use the DataSocket Server Manger ?
    After all,I want to know how to use it in LabWinows/CVI ?
    Thank you very much !
    Best regards!
    I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.

  • How to start weblogic in debug mode ? and how to set the eclipse in the deb

    how to start weblogic in debug mode ? and how to set the eclipse in the debug

    Put this in JAVA_OPTIONS :
    Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=3999,suspend=y,server=y
    After restarted weblogic, in eclipse set your breakpoint , open debug perspective then choose Remote Java Appliction and configure Connection Properties (host=localhost and port=3999)

  • I downloaded Mac OS X Lion and when I go to install, it says file cannot be verified, may have been corrupted during download.  How do I determine if it is corrupt and how do I get a clean copy of Lion, since I have already paid for it?

    I downloaded Mac OS X Lion and when I go to install, it says file cannot be verified, may have been corrupted during download.  How do I determine if it is corrupt and how do I get a clean copy of Lion, since I have already paid for it?

    Download again, move the existing file out of the applications folder first.

  • How to create a hierarchy in Regional Structure and how to use it

    Hi,
    Please guide me how to create a Political Region Structure hierarchy and how to use it.
    Thanks and Regards

    Hi,
    Thanks for reply please.
    I request you to please copy paste all the possible information here. It will be a great help.
    I hope you understand why we can not provide our id on this forum.
    Please guide.
    Thanks and Regards
    Edited by: MP Vashishth on May 18, 2009 7:14 AM

  • Hello! My name is Vadim. I'm from Russia. I'd like to buy two iPhones 5, 64 GB: for my wife and myself. But I have a question to you. Will it work in Russia? How much will it cost for me? And how much will delivery cost to Russia? Thank you very much.

    Dear Sir or Madame,
    My name is Vadim. I'm from Russia. I'd like to buy two iPhones 5, 64 GB online, from your official website Apple: for my wife and myself. But I've a question to you. Will it (iPhone 5, 64 GB) work in Russia? How much will they cost for me? And how much will the delivery from America to Russia cost?
    Yours sincerely,
    Vadim Fedotov.

    iPhone 5 is not available unlocked in US  and
    Apple Store online does not ship outside the Country it operates
    You are best served waiting for the iPhone 5 to be announced in Russia
    through your Apple Approved carriers

Maybe you are looking for

  • Accounts Payable Aging

    Dear All,          I am in need to develop customized report on Vendor Accounts payable - Aging for given slab. I can find the open items for the given key date in the table BSIK.          if we want to calculate due on past date( for cleared item),

  • Effort estimate (ABAP) during Unicode Conversion project

    Hi , I am working on a CU&UC (Combined Upgrade and Unicode Conversion) project from 46C to ECC6. We are having 8 different codepages (MDMP SYSTEM) and around 10000 custom objects. Does anyone have any experince in doing such kind of project ? I am lo

  • Facebook and Twitter not able to post in Notification Center

    Hey everyone, I just noticed this today and I think it's either a currupt setting, preference file or user profile. When I go to post in NC, I am unable to. Both share buttons are there, but when clicked, nothing happens. Also having issues with Shar

  • I can't get any audio recording to work in Logic X.

    I got a new Imac, an Apogee duet and Logic X. I just got Logic X and I really love everything about it accept I can't record any audio recordings on it. I can use my old Logic and garageband files and play around and mix them with no problem. The mid

  • I give up: How do you send an invitation or to-do to a Windows participant?

    Half the people on one iCal business calendar I keep are Windows users. How can they read the event or to-do when I send email? All they see is an .ics file. Please tell me this is possible....or is this another one of Apple's 'Let's make our product