Cybersecurity
DevOps Cloud
IT Operations Cloud
This article shows a sample script to parameterize XPath values in the Truclient protocol
LoadRunner Professional Truclient protocol
When using LoadRunner Truclient, if there are several objects with similar XPath values like below:
xpath="//div[@id=\"sampleContainer\"]/div/div[2]/div[9]/div/div[1]/table/tbody/tr[1]/td[1]/table/tbody[2]/tr/td/div[2]/table/tbody/tr[1]/td[5]/img";
xpath="//div[@id=\"sampleContainer\"]/div/div[2]/div[9]/div/div[1]/table/tbody/tr[1]/td[1]/table/tbody[2]/tr/td/div[2]/table/tbody/tr[2]/td[5]/img";
xpath="//div[@id=\"sampleContainer\"]/div/div[2]/div[9]/div/div[1]/table/tbody/tr[1]/td[1]/table/tbody[2]/tr/td/div[2]/table/tbody/tr[3]/td[5]/img";
Those XPatch values can be parameterized to optimize and increase the flexibility of the script