I am recording a script using truclient protocol.In my script ,i need to externally call an API which generates the Password. The password is fetched using the co-relation,which is used as an input for Login. I am however unable to call the external API using the true client protocol. Could anybody please suggest how to call an external API in true client protocol.
How to call an external API in truclient protocol of loadrunner
1.4k Views Asked by Vishal At
1
There are 1 best solutions below
Related Questions in JMETER
- i have extracted some values using regex in beanshell postprocessor now i have to pick a random value and store it into a varaible?
- Jmeter Java DSL - getting issues when using rpsThreadGroup
- How to configure api http request with load testing
- Jmeter resolution variable with remote
- Need to read different line from different files using CSV read function in JMeter
- How to enter user input in jmeter console (without doing parameterization)
- Optimal way to replace different parts of a structured string(XML) with random string values of different lengths in a JMeter JSR223 Samper (groovy)
- Jmeter query about script recording
- In Jmeter, for ISO8583 Sampler, how can I read the data from CSV file?
- Use JMeter to simulate receiving websocket broadcasts similar to okhttp3
- is their any industry standard for performing 300K load test (Thermostat->HVAC system)?
- How to perform multiple HTTP requests with unique IP addresses from my local
- Jmeter => How to add a jmx file in the transaction controller
- How to send huge JSON with PDF encoded over HTTPS in JMeter?
- How can I create a random(seed) function using a custom seed for Jmeter?
Related Questions in PERFORMANCE-TESTING
- How to enter user input in jmeter console (without doing parameterization)
- Error:Vuser failed to initialize java_int.dll (Vugen/Loadrunner)
- Convert Neoload script to LoadRunner script
- is their any industry standard for performing 300K load test (Thermostat->HVAC system)?
- Performance degradation in Asynchronous paging
- JMeter parallel mq publishing request messages with unique sequence ID which needs to be validated against external system before being sent
- Extracting 3 values using json extractor
- correlate multiple values using json extractor
- Want to capture the response from the first validated sampler within a Random Order Controller
- How to decode the UTF-8 response into text in JMeter
- fbprophet how to adapt the date of my data to the prediction date and cross-validation
- How to boost the data distribution speed of stream tables in DolphinDB?
- How can I save reference Id In Jmeter? and generate it new in each iteration
- HTML Dashboard Throughput, Response Times and User Load
- K6 each VU with own test data
Related Questions in LOADRUNNER
- Error:Vuser failed to initialize java_int.dll (Vugen/Loadrunner)
- Convert Neoload script to LoadRunner script
- Want to capture the response from the first validated sampler within a Random Order Controller
- How to record Oracle FSAL Form Based Application in loadrunner
- Is it possible to do Load testing on a Simulator?
- Execute Load Runner test integration in Azure pipeline unable to read test scenario file
- Extract JSON data using JSON path
- how to capture the value from request body in vugen?
- Parallel calls response time in loadrunner
- LoadRunner SMTP - Sends Email to BCC instead TO
- LoadRunner script to send mail and add attachment
- How to handle Token expiration and regeneration during load test in Loadrunner?
- Getting as Network Error while recording via JMeter
- VUGEN Search for a specific value in a JSON file on Object1 and then return Object2 if criteria matches
- java.net.URISyntaxException: Illegal character in query at index 323
Related Questions in TRUCLIENT
- Why chromium does not display objects while running load test for Truclient script but objects displayed perfectly fine while running script in local?
- Wait For Object Clickable in Truclient Vugen script
- How can I simulate Tab Key and Enter Key press, using JavaScript for TruClient
- TruClient - Evaluate JS on Object to return array
- How to write Dynamic Transaction names with loop count in truclient
- How to set a custom download path in Chromium in Truclient protocol of Loadrunner
- How to call an external API in truclient protocol of loadrunner
- Loadrunner TC protocol
- Truclient object identification
- Press Space key inside a text box field using trueclient vugen Tool?
- Click on a link beside text in TruClient
- What could be the possible reason behind huge difference between response time of a page in chrome and same in chromium?
- replay failed to start see vugen log for more details - error when replayed vugen
- Need a way to close browser instance through truclient
- Is there any way to read what was printed to console programatically in JS? (For testing)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Have you tried the evaluate JavaScript step? You can post the message to the server and get the generated password during the runtime. XHR and fetch API should be supported in Chrome and Firefox, TCIE should support XHR.
Sure. Please check the detail steps:
Drag and drop an evaluate JS step from TruClient
Open the script editor
Add these code, make sure use the sync XHR to ensure the password is returned before the end step started:
var xhr = new XMLHttpRequest(); xhr.open("POST", '/server', false);
//Send the proper header information along with the request xhr.setRequestHeader("xxx", "value"); xhr.send();
if (this.status === 200) { // Request finished. Do processing here. } var password = xhr.response;
Change the login password step from plain text to JS and use
ArgsContext.password
to reference the previous received password.
If you have another questions please let me know. How to use the argument context you could reference this link.
BTW. the window and document object of the page can be referenced with AUT.window, AUT.document in TruClient.
Please check the help document from here.