Development

I’m trying to get the scroll time of a carousel. I tried to take time when 1st element is selected and time when 2nd element is selected, then deduct 2nd time from 1st time and get the duration.
Below is my code.
//list of carousel button
List<WebElement> button = driver.findElements(By.xpath(“//ul/li/button”));

//calendar instance
Calendar calendar = Calendar.getInstance();

//start time
int scrollStartTime = 0 ;

//end time
int scrollEndTime = 0 ;

for(int btn=0;btn<button.size();btn++) {

if(button.get(0).isSelected()) {

//get start time in mill seconds
long startTime = calendar.getTimeInMillis();

//convert to int
scrollStartTime = (int)startTime;

System.out.println(startTime);

}if(button.get(1).isSelected()) {

//get end time
long endTime = calendar.getTimeInMillis();

//convert to int
scrollEndTime = (int)endTime;

System.out.println(endTime);
}
}

//get the time gap take to change images
int scrollerTime = scrollEndTime – scrollStartTime ;

System.out.println(scrollerTime);

I am not getting any out put. There are no errors. Can some one guide me to get the out put?

We have developed a Windows application using Winforms. Now we are trying to convert it to Universal Windows Platform (UWP) using desktop to appx bridge.

I have to test this app and I’m new to UWP. I know I have to test all the app functions and make sure they work the same way as the original application, but I need to know what to look for that is specific to UWP.

Are there any test scenarios that only happen with UWP, and if there are, how do I test for them?

Businesses are moving to the cloud, a smart way to experience many advantages like agility, scalability, and overall competitiveness. Cloud platforms offer the necessary infrastructure to support integration and continuous delivery continuously (CI/CD) pipelines.
The post Cloud Based Test Automation – Supporting Agile and DevOps Practices first appeared on TestingXperts.

Don’t let your valuable corporate assets and proprietary information walk out the door when an employee leaves the company. This…

Recorder (also known as KRecorder) is a simple, Qt-based, cross-platform open source audio recording application. The post Recorder – audio…