Libraries & Frameworks

I have customized UI calendar attached in screenshot having date and time slots to book some test drive. actually the booked slot div contains some class and available slot contains some class name.
Please give suggestion to click next available slot containing div.

Unavailable slots are marked as grey and booked slot are mentioned with comment and available are white.

Attached code also for locator.

I have used soft assertion in my test cases, but it stops the execution of all the next test cases. what I know if we are adding soft assertion then particular test case should fail and it should jump to the next test case successfully. Below is

my code:

public static boolean verifySelectEquipmentDivision1(){
try{
int count=0;
String[] eqipDiv={“A”,”A&B”,”CE”};
WebElement eqipDivdDropdown=Driver.getDriver().findElement(By.xpath(PageUtility.SELECT_EQUIPMENT_DIVISION));
Select selectTimePeriod=new Select(eqipDivdDropdown);

List<WebElement> eqipDivOptions=selectTimePeriod.getOptions();
for(WebElement we:eqipDivOptions){
for(int i=0;i<eqipDiv.length;i++){
if(we.getText().equalsIgnoreCase(eqipDiv[i])){
count++;
}
}
}

if(count==eqipDiv.length){
System.out.println(“matched”);
}
else{
System.out.println(“not matched”);
}
}

catch(Exception e){
System.out.println(“not selected”);

}
return false;

}

If am not adding assertAll(); it successfully execute my test cases, but to show this test case fail, I have added asserall() method and it stop execution of next test cases;

public void verifyEqiDiv()
SoftAssert ssoftassert=new SoftAssert();

@Test
softAssert.assertTrue(CommonAssertion.verifySelectEquipmentDivision1(), “selected eqip div not found”);
// softAssert.assertAll();
createNewReport.selectEquipmentDivision();

}

I am able to input the username, the password, and then click on the login button, but after clicking on the login button it displays nothing on webpage in IE11 but works fine with Chrome and Firefox.

Could you please help me what might have gone wrong?

I’m working with an automated script for multiple checkboxes that has dependent permissions.

Given there are multiple checkboxes

Checkbox A
Checkbox B
Checkbox C
Checkbox D
Checkbox E

When I select Checkbox A
Then Checkbox C and Checkbox E is selected

I’ve handled this using a switch statement because there are multiple combinations but its kind of messy because certain checkbox(es) are not only selected but disabled as well due to the dependent permissions:

e.g.

public boolean multipleCheckboxVerification(String roleName) {
switch (roleName) {
case CheckboxA:
return permissionPage.isSelectedChkA() && permissionPage.isSelectedChkC()
&& permissionPage.isSelectedChkE() && !permissionPage.isEnabledChkC() && !permissionPage.isEnabledChk();}

May I kindly know if there is a cleaner way to return which checkbox isn’t as expected?

I’m currently just using assertTrue from TestNG but the output seems to be vague of which checkbox is actually failing.

I was looking for an output where the error message would display “Checkbox E is enabled where it should be disabled”

I’ve been using Selenium for a while but with a slightly different scope (actually constraints). Instead of running a test for a particular site, I’m interested for instance in filling in a web form from a third party site and get some result, for instance downloading a file, to ensure its quality. So, I’m mainly interested in using Selenium to interact with a browser. So far, so good. I’ve been able to achieve what I wanted.
So, as I’m not interested in “testing” using a Unit Testing Framework like MSTest, I started to use Selenium in a normal C# console application. That worked great!
Afterwards, instead of launching Selenium from a Console I tried to do it from: 1) a WCF Application; and also from 2) an ASP.NET Web Application.
Those 2 approaches worked fine while being launched from within Visual Studio.
However, when I deployed and tried to run those 2 different approaches the Seleniumn InternetExplorerDriver server (the same with chromedriver) was never launched as opposed to what happened when being run from the Console Application.
I’m getting the following error:
OpenQA.Selenium.WebDriverException: A exception with a null response was thrown
sending an HTTP request to the remote WebDriver server for URL
http://localhost:3227/session//window. The status of the exception was ConnectFailure,
and the message was: Unable to connect to the remote server —> System.Net.WebException:
Unable to connect to the remote server —> System.Net.Sockets.SocketException:
No connection could be made because the target machine actively refused it 127.0.0.1:3227
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
— End of inner exception stack trace —

I’m stuck there. I guess it may have to do with who is the Host from where the Selenium Web Server is being run and their privileges. That’s whether it is a Console, a WCF App or an ASP.NET Web App (hosted in IIS) but I don’t know what to do or where to look to sort this out.

I am currently having issues with locating an pseudo element for a web page. I have checked other articles to use javascript and tried but it still isnt getting it. Below is a screenshot of what the html is like and the code I wrote to get property and to be able to click on it. Your help will be needed guys
enter image description here
<div class=”article-actions” xpath=”1″><app-article-meta><div class=”article-meta”><a href=”/profile/test1234″><img src=”https://static.productionready.io/images/smiley-cyrus.jpg”></a><div class=”info”><a class=”author” href=”/profile/test1234″> test1234 </a><span class=”date”> June 29, 2021 </span></div><span><a class=”btn btn-sm btn-outline-secondary” href=”/editor/sdsd-r6g7gi”><i class=”ion-edit”></i> Edit Article </a><button class=”btn btn-sm btn-outline-danger disabled”><i class=”ion-trash-a”></i> Delete Article </button></span><span hidden=””><app-follow-button><button class=”btn btn-sm action-btn btn-outline-secondary”><i class=”ion-plus-round”></i> &nbsp; Follow test1234
</button></app-follow-button><app-favorite-button><button class=”btn btn-sm btn-outline-primary”><i class=”ion-heart”></i> Favorite Article <span class=”counter”>(0)</span></button></app-favorite-button></span></div></app-article-meta></div>

WebElement pseudoEle = driver.findElement(By.xpath(“//button//i[@class=”ion-trash-a”]/parent::button”));
String display = ((JavascriptExecutor)driver).executeScript(“return window.getComputedStyle(arguments[0], ‘:before’).getPropertyValue(‘content’);”,pseudoEle).toString();
System.out.println(display);

I also need to be able to click on the element. Note the xpath returns two of the pseudo element that are identical on the page.

I used JMeter to record an ASP.Net application.
Most of the recording part are works perfectly fine. There is no error and the contents display correctly.
However, there are some test steps which cause the contents on the landing page to display incorrectly.
I turn off the proxy and execute the same test steps, there is no error and the content displays correctly. It happened for every browser; IE, Edge, Google chrome and Firefox.
Please help.
using JMeter 5.4.1.

I am trying to run a test with 11 steps, and I want to define a curve of how frequently tests will be sent. That is, I want to start off with one request per second, then graduate that until I hit a maximum of 15 requests per second, sustain that for a period of time (say, 10 minutes), and then end the test. Is this possible or is the only way to start at that number of requests immediately?

I have a Windows 10 UWP app that runs in kiosk mode in production, and I’m wondering what the best practice would be if I want to create automated UI tests for it. Like, how necessary would it be to run the app itself in kiosk mode in order to do UI tests? It seems like I’d want to, as running it in kiosk mode would be much more realistic than just firing it up as a .exe and having it run as a normal desktop app-but I don’t know if that’s even really possible to do that in kiosk mode.

I want to recreate the loadrunner scenario in Jmeter using ultimate thread group But iam Lost .
This is the Load runner scenario

Attached the schedule Graph below

Below is the formation of ultimate thread group jmeter scenario that i tried which did not work (it is incomplete iam not able to complete it )

As Part of Jmeter Integration With Azure Pipeline and after execution of test getting as below errors:
1.Error generating the report: org.apache.jmeter.report.dashboard.GenerationException: Error while processing samples: Consumer failed with message :Consumer failed with message :Consumer failed with message :Consumer failed with message :Begin size 3 is not equal to fixed size 5

2.Html report is not getting generated.

Could anyone please help me to resolve the issue.

Importance of RPA in Banking Industry Top 10 RPA Use Cases in Banking Business Benefits of RPA Implementation in Banking Why Partner with Tx for RPA Testing? Summary Over the past few years, the banking and financial industry has witnessed exponential growth with the implementation of tech innovations. The result? Much faster, more secure, and … Continue reading “Top 10 Use Cases of RPA in Banking Industry”
The post Top 10 Use Cases of RPA in Banking Industry first appeared on TestingXperts.

This post picks up on a small LinkedIn essay from a few months back. There’s a fair amount of preamble here before I talk about regression testing as such. Be careful; you might have heard about testing and checking from people who don’t talk about it the ways we do in Rapid Software Testing (RST). If you’re familiar with RST, maybe you’re fine jumping here. If you’re not so familiar … Read more

This blog discusses Agile Scrum methodology, emphasizing its utility in rapid, incremental software development. It covers how Scrum enhances productivity, reduces project risks, and benefits diverse stakeholders, from development teams to customers. With a focus on practical application over extensive documentation, Agile Scrum streamlines processes promotes continuous testing and ensures high-quality software production, ultimately boosting business outcomes and ROI.
The post A Comprehensive Guide to Agile Scrum Methodology first appeared on TestingXperts.

Large Language Model (LLM) software testing requires a different approach compared to conventional mobile, web, and API testing. This is due to the fact that the output of such LLM or AI applications is unpredictable. A simple example is that even if you give the same prompt twice, you will receive unique outputs from the
The post Comprehensive LLM Software Testing Guide appeared first on Codoid.

The Current State of Cybersecurity in the Healthcare Sector Key Factors Driving Cyber Security in Healthcare 7 Cyber Threats in the Healthcare Sector How can Tx help Secure Your Healthcare Assets? Summary Among all industries, healthcare has been the 5th most affected industry in terms of data breaches and the losses that come with them. … Continue reading “How does Cyber Security in Healthcare Navigate the Threat Landscape?”
The post How does Cyber Security in Healthcare Navigate the Threat Landscape? first appeared on TestingXperts.