Development

I’m using Jmeter in remote env.(1manager server, 3-5 querying servers, 1 target server).
I have fixed EPS/QPS and threads(gradually increasing up to a certain value). I want to know if there is any parameter/plug-in that I can use to get the total number of requests sent to target server and the total number of requests (actually)received by the target server.

PS: If anyone has any other such comments/situations related to this, please share.

import pandas as pd
import selenium
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
import pandas as pd
import time
driver = webdriver.Chrome(r”C:Program Files (x86)chromedriver.exe”)
driver.get(‘https://www.amazon.in/’)
search_item = driver.find_element_by_xpath(“//input[@id =’twotabsearchtextbox’]”)
search_item.send_keys(“Laptop”)

serch_btn = driver.find_element_by_xpath(“//input[@id=’nav-search-submit-button’]”)
serch_btn.click()

cpu_filter = driver.find_element_by_link_text(‘Intel Core i7’).click()
cpu2_filter = driver.find_element_by_link_text(‘Intel Core i9′).click()

href = []
lnks1=driver.find_elements_by_xpath(“//a[@class=’a-link-normal a-text-normal’]”)
for lnk in lnks1:
href.append(lnk.get_attribute(‘href’))
href = href[0:10]
print(len(href))

Rating = []
for i in href:
driver.get(i)
try:
rating = driver.find_elements_by_xpath(“//*[@id=’reviewsMedley’]/div/div[1]/div[2]/div[1]/div/div[2]/div/span/span”)
for i in rating:
print(i.text)
except:
print(‘-‘)

I’ve tried the above code, but because the 10th element doesn’t have any rating, I used try and except. However, it’s not working. It’s not reverting back the dash(-) and it is just printing the 9 elements.
I want 10th element as dash(-) so that I could match up with at the time of creating dataframe.
I am not getting any idea what to do next. Please help me out with this.

I wanted to apply Pacing in jmeter for 120- 180 Seconds for all my samplers , I know i can do it with Through put Timers is there anyother way to apply pacing , i think we can use Beanshell Scripting but not sure of how to implement that .
This is the sample Beanshell that i reffered from internet a i tried , i used the random function to get a random pacing beetween 120 to 180 seconds and subracting it with Previous sample time . I think this implementation is wrong . could some of you suggest on this please . Thankyou .
Long pacing =${__Random(120000,180000)} – prev.getTime();
if (pacing > 0) {
Integer iPacing = pacing != null ? pacing.intValue() : null;
log.info(String.valueOf(iPacing));
vars.put(“mydelay”, String.valueOf(iPacing));
return iPacing;
} else {
vars.put(“mydelay”, “0”);
return 0;
}

Test Guild – Automation Testing Tools Community
Top 8 Open Source DevOps Tools for Quality 2024
Having a robust Continuous Integration and Continuous Deployment (CI/CD) pipeline is crucial. Open source tools have emerged as powerful allies in building effective DevOps workflows. With all the options out there, which ones should you try first? I recently spoke with Javier Alejandro Re is the CEO at Crowdar and Founder of Lippia.io and he
You’re reading Top 8 Open Source DevOps Tools for Quality 2024, originally posted on Test Guild – Automation Testing Tools Community – and copyrighted by Joe Colantonio

The behind-the-scenes activity of a modern website and the systems that make it dynamically responsive are designed, programmed and constantly…

Despite heightened efforts to address workplace diversity, equity and inclusion, many workers are still experiencing discrimination at work. Discrimination undermines…

Smashing Magazine invited me to sit down for a one-on-one with “Uncle” Dave Rupert to discuss web components, yes, but…

Discover some of the interesting features that have landed in stable and beta web browsers during July 2024. Source: web.dev:…