Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all 12134 articles
Browse latest View live

Re: Web Click and Script protocol usage and process

$
0
0

Hi,

What about the memory requirement on the load generator for the AJAX and Click & Script protocol?

One of my salesforce application web scripts has more corelation taking very long time to complete the scripts.

Can I use AJAX Truclient instead of Web for the Salesforce application?

Thanks,

Natraj


VUgen /AJAX Tru ClientFirefox script Compiling

$
0
0

Starting after the weekend the compiling process in Dev Mode never finishing on any previosly working script.

What should I do?   I guess one option whould  be to run the repair installation, but may be someone had similar situation and has smarter suggestion?

 

Thank you 

how can i select the radio button randomly in truclient?

$
0
0

Hi

i want to select the radio button randomly below are the xpath and javascript values

Id Method: XPath

Xpath:   //input[@type="radio" and ="seatPref" and @value="Window"]

and

/html/body/blockquote/form/table/tbody/tr[5]/td[1]/label[2]/input

Id Method: JavaScript

JavaScript: evalXPath("//div[@id=\"radioContentWrapper\" and =\"seatPref\" and @value=\"Window"]");

 

Re: Vus thrown out into Error column

Re: VUgen /AJAX Tru ClientFirefox script Compiling

$
0
0

Hi,

 

The description is vauge. TruClient script is not being compiled


Can you please be more specific about the issue you experience?

 

Thanks,


Shlomi

Re: how can i select the radio button randomly in truclient?

$
0
0

Hi Somu210, 

Please find  step by step instructions in the following knowledge document which explains how to select a random checkbox value. 

https://softwaresupport.hp.com/group/softwaresupport/search-result/-/facetsearch/document/KM01788615

The idea is that you need to:

1. Record a few steps clicking on different elements from the group.
2. Open the steps and change the ID Method to JavaScript in the step object section.3. Find the difference in the the evalXPath

for example 

/html/body/blockquote/form/table/tbody/tr[5]/td[1]/label[2]/input

/html/body/blockquote/form/table/tbody/tr[4]/td[1]/label[2]/input

4. Substitute the difference with a parameter for example idr which contains a random value, calculated with formula for calculating a random value in not exceeding the number of the available radion buttons.

Please check the sample code in the snapshot below: 

RandomRadioButton.png

 Kind regards, 

Vesela 

 

Re: eIndex was out of range.Must be non-negative and less the size of the collection

$
0
0

Hi jp150683

Can you please be more specific when does the error message appear: when you start recording, during the recording, when the script is being generated etc. 

Is it a Vugen or an application error message?  

Can you please provide a snapshot? 

Thank you in advance. 

Kind regards, 

Vesela 

Re: how can i select the radio button randomly in truclient?

$
0
0

Hi vmanolova

Thank you for giving reply

i used your code but the problem is by default it is selecting the first value and it is not chaqnging randomly 

please help me

Thanks in Advance

 

 

 


Re: how can i select the radio button randomly in truclient?

$
0
0

Hi,

 

Please look in the code in the snapshot in the JavaScript editor.

There is as sample how to:

  1. select all radio buttons
  2. check the number of the radio buttons
  3. use this number in the formula for calculating a random value idr.
  4. Then you need to substitute the changing number in the xpath with the idr.

You should follow the sample and adjust it to the specific xpath for your radio buttons. 

Kind regards,

Vesela

Vugen replay error Error -205177: SyntaxError: JSON.parse for TruClient script

$
0
0

Upgraded from LR12.02 to LR12.5.  A TruClient script that was working prior to the upgrade shows this error during load test mode replay:

Virtual User Script started at : 2015-11-11 15:43:19
t=00003447ms: Error -205177: SyntaxError: JSON.parse: unexpected character at line 4 column 10 of the JSON data
undefined
Exception in JSON.parse in TC_NS.Ident cons , text:
{
"primaryScore":0,
"implData":{
"value":undefined
}
} [MsgId: MERR-205177]
t=00004551ms: Error -205177: SyntaxError: JSON.parse: unexpected character at line 4 column 10 of the JSON data
undefined
Exception in JSON.parse in TC_NS.Ident cons , text:
{
"primaryScore":0,
"implData":{
"value":undefined
}
} [MsgId: MERR-205177]
t=00004573ms: Error -205177: SyntaxError: JSON.parse: unexpected character at line 4 column 10 of the JSON data
undefined
Exception in JSON.parse in TC_NS.Ident cons , text:
{
"primaryScore":0,
"implData":{
"value":undefined
}
} [MsgId: MERR-205177]
Starting action Init.
TruClient Replay for LoadRunner 12.50.0, build 1096. OS: Windows 2008 R2, Browser: Firefox, initialized on 2015/11/11 at 15:43:16 (0000.000s)

The script continues to run, but I am concerned about this message.  No idea where this is coming from or why.  Is it because LR12.02 used a different TruClient protocol version?  Is it associated with the script itself (e.g. config)?

web services script with web_service_set_security

$
0
0

Hello All,

I am having an issue gettting a web services script going with loadrunner 12.x.

Can someone tell me looking at the output below if my security setup for the webservice is looking or if it even hitting the end point or not

Specifically when i set up the web_service_set_security and run the web service without any parameters i get the below output result ...

Virtual User Script started at : 11/11/2015 3:10:04 PM
Starting action vuser_init.
Web Services replay version 12.0.0 for Windows 7; Toolkit: ".Net"; build 2739
Run-Time Settings file: "C:\Users\admin\Documents\VuGen\Scripts\WebServices1\\default.cfg"
Vuser directory: "C:\Users\admin\Documents\VuGen\Scripts\WebServices1"
Vuser output directory: "C:\Users\admin\Documents\VuGen\Scripts\WebServices1\"
LOCAL start date/time: 2015-11-11 15:10:04
vuser_init.c(4): Web service set security started.
vuser_init.c(4): Web set security was successful.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Maximum number of concurrent connections per server: 6 [MsgId: MMSG-26989]
Starting action Action.
Action.c(8): web_set_sockets_option started [MsgId: MMSG-26355]
Action.c(8): web_set_sockets_option was successful [MsgId: MMSG-26392]
Action.c(52): Web service call "GetTransactions_105" started
Action.c(52): Security Helper is ready to process.
Action.c(52): Request envelope before user handler:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"><soap:Header><wsa:Action>http://emma.msrb.org/schemas/subscriber-service/IEmmaSubscriptionService/GetTransactions</wsa:Action><wsa:MessageID>uuid:3f3ae916-2f7b-4486-bb6d-c3e2003d4ec1</wsa:MessageID><wsa:ReplyTo><wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address></wsa:ReplyTo><wsa:To>https://emmaservicesuat3.msrb.org/SubscriberServices/EmmaSubscriptionService.svc/regulator</wsa:To></soap:Header><soap:Body><GetTransactions xmlns="http://emma.msrb.org/schemas/subscriber-service"><submissionType>CD</submissionType><specVersion xsi:nil="true" /></GetTransactions></soap:Body></soap:Envelope>
Action.c(52): Begin creating security elements specified in previous web_service_set_security call.
Action.c(52): X509 token "X509CertificateToken1" created successfully.
Action.c(52): Request envelope after security handler:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"><soap:Header><wsa:Action>http://emma.msrb.org/schemas/subscriber-service/IEmmaSubscriptionService/GetTransactions</wsa:Action><wsa:MessageID>uuid:3f3ae916-2f7b-4486-bb6d-c3e2003d4ec1</wsa:MessageID><wsa:ReplyTo><wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address></wsa:ReplyTo><wsa:To>https://emmaservicesuat3.msrb.org/SubscriberServices/EmmaSubscriptionService.svc/regulator</wsa:To><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp wsu:Id="Timestamp-68d07df9-2cf4-4bbd-b11f-9182f8921354" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsu:Created>2015-11-11T20:10:05Z</wsu:Created><wsu:Expires>2015-11-11T20:15:05Z</wsu:Expires></wsu:Timestamp><wsse:BinarySecurityToken ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" wsu:Id="SecurityToken-61e06da0-b212-4484-87af-360bd9e377e8" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">MIID2TCCA0KgAwIBAgIKEz7NLgACAAAAMzANBgkqhkiG9w0BAQUFADCBhTEcMBoGCSqGSIb3DQEJARYNbXNyYkBtc3JiLm9yZzELMAkGA1UEBhMCVVMxETAPBgNVBAgTCFZpcmdpbmlhMRMwEQYDVQQHEwpBbGV4YW5kcmlhMQ0wCwYDVQQKEwRNU1JCMQwwCgYDVQQLEwNUUlMxEzARBgNVBAMTCk1TUkItQ0EtMDEwHhcNMDkwNTA2MTg1MDQ1WhcNMjQwNTEyMjEzMjEyWjATMREwDwYDVQQDEwhlbW1hdXNlcjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA3p3rrEBAU/ViuCsBXjefLIblZynDGwvLQ3DGvUpDeIwFO1lnA/I/kRAdfRii3Lgs8T6tUhJZ+0PO6i/MBzbwzaYaMjRmzitMShCeOl36LviXCKdTmmt5vqQNStS5HSecds0qmP3bwO2c3JxVVwoMOAS85dtO+wIURnzpGubcD6cCAwEAAaOCAb8wggG7MA4GA1UdDwEB/wQEAwIE8DBEBgkqhkiG9w0BCQ8ENzA1MA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwHQYDVR0OBBYEFOWvlIFRjZsZwwD2cCT/od/VM+NLMBMGA1UdJQQMMAoGCCsGAQUFBwMBMB8GA1UdIwQYMBaAFMvwIRZURi/zuHtxxrwoqQTVP16sMGsGA1UdHwRkMGIwYKBeoFyGK2h0dHA6Ly9tc3JiLWNhLTAxL0NlcnRFbnJvbGwvTVNSQi1DQS0wMS5jcmyGLWZpbGU6Ly9cXG1zcmItY2EtMDFcQ2VydEVucm9sbFxNU1JCLUNBLTAxLmNybDCBoAYIKwYBBQUHAQEEgZMwgZAwRQYIKwYBBQUHMAKGOWh0dHA6Ly9tc3JiLWNhLTAxL0NlcnRFbnJvbGwvbXNyYi1jYS0wMV9NU1JCLUNBLTAxKDIpLmNydDBHBggrBgEFBQcwAoY7ZmlsZTovL1xcbXNyYi1jYS0wMVxDZXJ0RW5yb2xsXG1zcmItY2EtMDFfTVNSQi1DQS0wMSgyKS5jcnQwDQYJKoZIhvcNAQEFBQADgYEAAzG9ijDV0TJUdkANc2/GX06l9WmYv9gT/YUIRdvaAITumPlN3jAsFoUKoWVEbFY4v12ZgUVsZaRhZ9hEszvq5U1+kTQK47Abv8cAhSuay4JmjwOqJh5UTajn6reatX803a1sLUP1V5cHoColvGn681bhmpw/QHDOSVLiXAr6jKg=</wsse:BinarySecurityToken></wsse:Security></soap:Header><soap:Body><GetTransactions xmlns="http://emma.msrb.org/schemas/subscriber-service"><submissionType>CD</submissionType><specVersion xsi:nil="true" /></GetTransactions></soap:Body></soap:Envelope>
Action.c(52): "SOAPAction: "http://emma.msrb.org/schemas/subscriber-service/IEmmaSubscriptionService/GetTransactions"" header registered for adding to requests from the immediately following Action function [MsgId: MMSG-26506]
Action.c(52): "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 1.1.4322.2032)" header registered for adding to requests from the immediately following Action function [MsgId: MMSG-26506]
Action.c(52): "Content-Type: application/soap+xml; charset=utf-8; action="http://emma.msrb.org/schemas/subscriber-service/IEmmaSubscriptionService/GetTransactions"" header registered for adding to requests from the immediately following Action function [MsgId: MMSG-26506]
Action.c(52): t=988ms: Connecting [0] to host 209.135.220.167:443 [MsgId: MMSG-26000]
Action.c(52): t=992ms: Connected socket [0] from 192.168.4.222:34286 to 209.135.220.167:443 in 3 ms [MsgId: MMSG-26000]
Action.c(52): t=2134ms: 573-byte request headers for "https://emmaservicesuat3.msrb.org/SubscriberServices/EmmaSubscriptionService.svc/regulator" (RelFrameId=1, Internal ID=1)
Action.c(52): POST /SubscriberServices/EmmaSubscriptionService.svc/regulator HTTP/1.1\r\n
Action.c(52): Content-Type: application/soap+xml; charset=utf-8; action="http://emma.msrb.org/schemas/su
Action.c(52): bscriber-service/IEmmaSubscriptionService/GetTransactions"\r\n
Action.c(52): Cache-Control: no-cache\r\n
Action.c(52): SOAPAction: "http://emma.msrb.org/schemas/subscriber-service/IEmmaSubscriptionService/GetT
Action.c(52): ransactions"\r\n
Action.c(52): User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 1.1.4322.20
Action.c(52): 32)\r\n
Action.c(52): Accept-Encoding: gzip, deflate\r\n
Action.c(52): Accept: */*\r\n
Action.c(52): Connection: Keep-Alive\r\n
Action.c(52): Host: emmaservicesuat3.msrb.org\r\n
Action.c(52): Content-Length: 3035\r\n
Action.c(52): \r\n
Action.c(52): t=2152ms: 3035-byte request body for "https://emmaservicesuat3.msrb.org/SubscriberServices/EmmaSubscriptionService.svc/regulator" (RelFrameId=1, Internal ID=1)
Action.c(52): <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05
Action.c(52): /soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://ww
Action.c(52): w.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"><soa
Action.c(52): p:Header><wsa:Action>http://emma.msrb.org/schemas/subscriber-service/IEmmaSubscriptionServ
Action.c(52): ice/GetTransactions</wsa:Action><wsa:MessageID>uuid:3f3ae916-2f7b-4486-bb6d-c3e2003d4ec1</
Action.c(52): wsa:MessageID><wsa:ReplyTo><wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/r
Action.c(52): ole/anonymous</wsa:Address></wsa:ReplyTo><wsa:To>https://emmaservicesuat3.msrb.org/Subscri
Action.c(52): berServices/EmmaSubscriptionService.svc/regulator</wsa:To><wsse:Security xmlns:wsse="http:
Action.c(52): //docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timesta
Action.c(52): mp wsu:Id="Timestamp-68d07df9-2cf4-4bbd-b11f-9182f8921354" xmlns:wsu="http://docs.oasis-op
Action.c(52): en.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsu:Created>2015-11-11T20
Action.c(52): :10:05Z</wsu:Created><wsu:Expires>2015-11-11T20:15:05Z</wsu:Expires></wsu:Timestamp><wsse:
Action.c(52): BinarySecurityToken ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x50
Action.c(52): 9-token-profile-1.0#X509v3" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200
Action.c(52): 401-wss-soap-message-security-1.0#Base64Binary" wsu:Id="SecurityToken-61e06da0-b212-4484-8
Action.c(52): 7af-360bd9e377e8" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssec
Action.c(52): urity-utility-1.0.xsd">MIID2TCCA0KgAwIBAgIKEz7NLgACAAAAMzANBgkqhkiG9w0BAQUFADCBhTEcMBoGCSq
Action.c(52): GSIb3DQEJARYNbXNyYkBtc3JiLm9yZzELMAkGA1UEBhMCVVMxETAPBgNVBAgTCFZpcmdpbmlhMRMwEQYDVQQHEwpBb
Action.c(52): GV4YW5kcmlhMQ0wCwYDVQQKEwRNU1JCMQwwCgYDVQQLEwNUUlMxEzARBgNVBAMTCk1TUkItQ0EtMDEwHhcNMDkwNTA
Action.c(52): 2MTg1MDQ1WhcNMjQwNTEyMjEzMjEyWjATMREwDwYDVQQDEwhlbW1hdXNlcjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwg
Action.c(52): YkCgYEA3p3rrEBAU/ViuCsBXjefLIblZynDGwvLQ3DGvUpDeIwFO1lnA/I/kRAdfRii3Lgs8T6tUhJZ+0PO6i/MBzb
Action.c(52): wzaYaMjRmzitMShCeOl36LviXCKdTmmt5vqQNStS5HSecds0qmP3bwO2c3JxVVwoMOAS85dtO+wIURnzpGubcD6cCA
Action.c(52): wEAAaOCAb8wggG7MA4GA1UdDwEB/wQEAwIE8DBEBgkqhkiG9w0BCQ8ENzA1MA4GCCqGSIb3DQMCAgIAgDAOBggqhki
Action.c(52): G9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwHQYDVR0OBBYEFOWvlIFRjZsZwwD2cCT/od/VM+NLMBMGA1UdJ
Action.c(52): QQMMAoGCCsGAQUFBwMBMB8GA1UdIwQYMBaAFMvwIRZURi/zuHtxxrwoqQTVP16sMGsGA1UdHwRkMGIwYKBeoFyGK2h
Action.c(52): 0dHA6Ly9tc3JiLWNhLTAxL0NlcnRFbnJvbGwvTVNSQi1DQS0wMS5jcmyGLWZpbGU6Ly9cXG1zcmItY2EtMDFcQ2Vyd
Action.c(52): EVucm9sbFxNU1JCLUNBLTAxLmNybDCBoAYIKwYBBQUHAQEEgZMwgZAwRQYIKwYBBQUHMAKGOWh0dHA6Ly9tc3JiLWN
Action.c(52): hLTAxL0NlcnRFbnJvbGwvbXNyYi1jYS0wMV9NU1JCLUNBLTAxKDIpLmNydDBHBggrBgEFBQcwAoY7ZmlsZTovL1xcb
Action.c(52): XNyYi1jYS0wMVxDZXJ0RW5yb2xsXG1zcmItY2EtMDFfTVNSQi1DQS0wMSgyKS5jcnQwDQYJKoZIhvcNAQEFBQADgYE
Action.c(52): AAzG9ijDV0TJUdkANc2/GX06l9WmYv9gT/YUIRdvaAITumPlN3jAsFoUKoWVEbFY4v12ZgUVsZaRhZ9hEszvq5U1+k
Action.c(52): TQK47Abv8cAhSuay4JmjwOqJh5UTajn6reatX803a1sLUP1V5cHoColvGn681bhmpw/QHDOSVLiXAr6jKg=</wsse:
Action.c(52): BinarySecurityToken></wsse:Security></soap:Header><soap:Body><GetTransactions xmlns="http:
Action.c(52): //emma.msrb.org/schemas/subscriber-service"><submissionType>CD</submissionType><specVersio
Action.c(52): n xsi:nil="true" /></GetTransactions></soap:Body></soap:Envelope>
Action.c(52): Aborting pending download of URL="https://emmaservicesuat3.msrb.org/SubscriberServices/EmmaSubscriptionService.svc/regulator" (RelFrameId=1, Internal ID=1) [MsgId: MMSG-27654]
Action.c(52): Error Exceptions:
Action.c(52): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ApplicationException: Step download timeout (120 seconds) has expired
at Mercury.LR.WS.ProxyBase.LrWsWebRequest.SyncProcessRequest()
at Mercury.LR.WS.ProxyBase.LrWsWebRequest.OnRequestStreamClosed(MemoryStream stream)
at Mercury.LR.WS.ProxyBase.WSMemoryStream.Close()
at Microsoft.Web.Services2.OutputStream.Close()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Mercury.LR.NETProxy.EmmaSubscriptionService.GetTransactions(String submissionType, DateTime postingDate, Boolean postingDateSpecified, String specVersion)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Mercury.LR.LrWsNetClient.ProxyCreator.InvokeMethod(String sMethod, IWSMethodParameters mParams, String sAsyncEvent)
at Mercury.LR.LrWsNetClient.NetReplay.InvokeMethod(String sMethod, IWSMethodParameters mParams, String sAsyncEvent)
Action.c(52): Error:InvokeMethod failure: Step download timeout (120 seconds) has expired.

Re: ScreenShot Issue in LR12.5 Controller

$
0
0

Hi,

thanks for the reply,

But well that solution is no help, its not even generating Text Log Atleast, when i open the Log file It Displayed "folder is  Empty" ,  i really can't find where the Problem is, when i try to adjust run time settings in Controller then i'm not able to Change Scenario setting in it,  and the Screenshot generation on error issue is found for some Project not for all my projects. 

thanks

Re: Vugen replay error Error -205177: SyntaxError: JSON.parse for TruClient script

$
0
0

It is due to syntax error in your request. Is it manually working? If it is encoded value, make sure that you are using DFE.

Re: web services script with web_service_set_security

$
0
0

Your response has issues. Please share your request XML.

Re: ScreenShot Issue in LR12.5 Controller


Re: how can i select the radio button randomly in truclient?

$
0
0

Hi Vesela

This is my complete code

var radioArray = document.querySelectorAll('input[type="radio"]').length;
//var max = radioArray.length;
var randomID = Math.floor(Math.random() * ((radioArray+1)-1))+1;

by default it is selecting first value suppose if i place 2 in 1 atthat time it is selecting secondn value i am unable to generate random value.

how can i select the generate the random value
//var xpath = "/html/body/blockquote/form/table/tbody/tr[5]/td[1]/label["+randomID+"]/input";
//evalXPath(xpath);

//evalXPath("//div[@id=\"radioContentWrapper\" and =\"seatPref\" and @value=\"Window\"]");
var xpath ="(//input[@type=\"radio\" and =\"seatPref\"])["+randomID+"]";
evalXPath(xpath);

Re: how can i select the radio button randomly in truclient?

$
0
0

Hi Somu210,

The formula for geting the random number in an intervals that do not start with 1 is: 
Math.floor(Math.random() * (max - min)) + min;
It returns a random integer between min (included) and max (excluded)

You should modify it according to your needs. 

The script in the snapshot selects a a random checkbox on each reply in my lab. 

Kind regards, 

Vesela

Re: TruClient transactions slower than Web - HTTP/HTML?

$
0
0

Hello,

Thanks for the explanation.

Web/HTTP and TruClient are different protocols. The transactions in TruClient can measure other things than network round-trip as in Web/HTTP.

What do you mean by other things in your above statement? where can I get the list of all the KPI's both protocols measures? Please let me know.

Regards,

Kartheek

How to record a native app android / Ios ?

$
0
0

Hi all, 

I need to record a native app android/Ios with Vugen. Please, anyone could give me the option that I have to do it and some information to know how to record ?

 

thanks

Re: ScreenShot Issue in LR12.5 Controller

$
0
0

Hi 

Thanks for the Reply , But i found the Solution as , the issue is not with Controller runtime settings , but is due to Lengthy File Path.

Yes exactly i have tested it , and now with lesser File Path i'm able to Get Screenshot when Error occured . i don't know why is it  so. but problem was the result folder path, as of now.

Thank you. 

Viewing all 12134 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>