Libraries & Frameworks

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

I have setup eclipse, sdk, path, configuration selendroid -standaloe-0.17.0-with-dependencies.jar file and selenium server.jar file but with command prompt want to run server with this command java -jar selendroid-standalone-0.17.0-with-dependencies.jar -aut testapp.apk but in command prompt it displayed error like unable to access jar file..”

I am trying to send a message as input to chatbot to check the response but when I am trying to send a message to a chatbot, I need to click on the input box where one can enter a message. But it is showing ‘element not found error’ (In the code I am throwing NoSuchElement exception)
I think this is happening because of the driver not being able to switch control from the base webpage to the chatbot after we click on the chatbot.

Following is the snippet:

driver.find_element_by_xpath(‘/html/body/div/div’).click()

time.sleep(2)

try:
driver.find_element_by_xpath(‘/html/body/div/div[3]/div[1]/div[1]/textarea’).click().send_keys(‘hi’)except NoSuchElementException:print(‘Input element not found’)

I think remember reading this somewhere but cannot remember if it is true or not. Is there a VS Code extension that will let you visually see on the web page (or in VS Code) where exactly the mouse.click event is happening and what element is therefore receiving the click?
I’m using Selenium WebDriver and JavaScript

Vulnerability Assessment and Penetration Testing (VAPT) is crucial for securing businesses against increasing cyber threats in today’s digital landscape. This blog details why organizations, regardless of size, need VAPT to shield against potential cyberattacks. From strengthening IT infrastructure to meeting compliance with regulatory standards, VAPT enhances security protocols, boosts stakeholder confidence, and prevents financial losses due to cyber incidents.
The post Understanding VAPT: What it is and Why You Need It first appeared on TestingXperts.

I want to measure the response time of the page level elements of a web page during load testing using IBM Rational Performance Tester.

For example, suppose I have clicked a submit button after filling a form on a web page. I want to measure the response time of this transaction ( i.e. clicking on submitting button and getting its response back). In a simple sense, I want to track response time for individual elements of a web page to know which part is taking more time to respond.

How can I do this using RPT?

I get a timeout error after clicking a button (not a page load) in Selenium for Java. The button triggers a recalculation and causes the cursor to spin and be unavailable for the 5-6 minutes until the calculation has completed.
I have added these lines to try and extend the wait time, but it has not helped:
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(300));
driver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(300));
driver.manage().timeouts().scriptTimeout(Duration.ofSeconds(300));

These should give me 5 minutes before triggering the error, but I get a time out at 3 minutes.
I have seen other answers that suggest adding a wait statement after the click statement, however, this will not work because the test fails before it could get to and execute that wait (the click statement still is active, and the test fails).
I believe that since it is failing at 3 minutes (and the wait statements are set at 5), this is unrelated to the standard wait strategies, and there must be some other method to adjust the timeout for longer running processes within tests. Please help me out, thanks.

How can we avoid mistakes while doing testing specifically black box testing of application?
I test a financial web application that deals with lot of funds moving around and financial data in different files.. that application is used by lot of large banks which move to transfer financial data of thousands of customers in many files I have been making lot of mistakes lately and bugs have been slipping in production.
I am a very senior test analyst of the team, I am not a junior test engineer but somehow I test just once and I am quite familiar with the application and have lot of domain knowledge over the years but I usually Test the functionality once and test 1 or 2 regression areas and pass it. one issue is that senior team members are not testing much on Staging area as they have the own work to do.. what can I do as I am doing lot of mistakes and if this continues I will lose my job soon

What is Microservices Architecture? Benefits of Microservices Architecture When to Use Microservices Architecture? Challenges of Using Microservices Architecture Why Choose Tx for Your Microservices Architecture Needs? Summary Have you wondered how brands like Netflix, Amazon, and Uber perfectly manage their huge data and user requests? The answer lies in implementing microservices, which allows them to … Continue reading “Microservices Architecture: The Key to Scalable, Maintainable Applications”
The post Microservices Architecture: The Key to Scalable, Maintainable Applications first appeared on TestingXperts.

Just to put the question at top:

How can I ‘break’ into the Software Test Lead or Software Test
Automation world from being a tester?

Is there any suggestions for what to study to advance within the Software Test world?

I am looking for a position in Northwest Florida (Essentially, an IT void). I am currently in QA but I need to move. I am looking for a position there and having very little luck. I was curious as to what others have had luck with and what would make me stand out.

My background in the field is limited but I have done amazing work at my company. My skill set is closer to a developer but I have a strong passion for testing. I have developed several testing applications for my current company. I am finding jobs for Software Test Lead and Software Automation but, while I feel I am qualified, my resume isn’t up to par and I know very little for these positions.

So, what can I learn, where can I study and what should I know when applying for a test lead or test automation position?

Is there any certifications or communities that could be of assistance with developing and furthering my career and skill set?

I want to open an xml webpage and after opening the webpage,
I want to save the xml content displayed in the webpage as file1.xml file.

What I tried:

from selenium import webdriver
import os
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys

chromedriver = “/home/dipankar/Desktop/chromedriver”
os.environ[“webdriver.chrome.driver”] = chromedriver
driver = webdriver.Chrome(chromedriver)

#driver = webdriver.Firefox()

driver.get(“http://www.example.com”)

saveas = ActionChains(driver).key_down(Keys.CONTROL).send_keys(‘S’).key_up(Keys.CONTROL)
saveas.perform()

I tried the following code, but it downloads the html tags also. I want to download only the content displayed in the web page. Not the page source.

content = driver.page_source
print content

Here I attached screen shot of the sample webpage.

I am new to Selenium Webdriver , I have an application build in angular 2 and trying to select values in drop down which are mandatory.

1) Select a value from a dropdown; initially the dropdown is red in color (red is the requirement).

2) As soon as a value is selected from the dropdown the border color of the dropdown should be blue.

I am able to select values successfully from dropdown however the color is still remaining red and not changing to blue please suggest why?

Select Speciality_dd = new Select(driver.findElement(By.name(“boardCertificationSpeciality0”)));
Speciality_dd.selectByVisibleText(“Addiction Medicine”);
Thread.sleep(1000);