Development

I am using Gradle 4.6 with testng. My test suite has tests organized something like these.

java class1
{
test 1.1
test 1.2
test 1.3
test 1.4
}

java class2
java class3
java class4
java class5

All these classes have total 100 tests in the suite. When I execute the suite, gradle first executes, tests 1.1 and 1.2 and then goes and executes all the tests in class2 to 5 and finally comes back to class 1 to execute 1.3 and 1.4.

Is there a way we can force all the tests in a class to be executed before going to class? For example, it will be helpful, I get all my tests in class1 completes execution, then goes to next class (in any order) and so on.

I do not want to set dependency as any failures will force the dependent test to skip, these are independent tests, eventhough there is some dependency declared tests within the same class.

For example, there is a thread group named login.

Now this login thread group has 10 request where all requests are parameterized(One API request dependent on other) and time b/w request is 1 secs(Used constant timer)

My question is what is the required ramp up second for thread group?

According to actual calculation read from various sources.If i give thread count 50 and ramp-up seconds as 50 then the time b/w thread is 1 seconds where 50 users will be created in 50 seconds but if i use this scenario how the time b/w request inside the thread will be handled.To run 10 request at least jmeter need 10 seconds since i have used timer

If my scenario is correct then the actual rampup seconds will be dependent on number of request and time b/w request.

Then the Ramp-up-seconds should by calculated as below

Ramp-up-seconds=product of(No of requests,time b/w requests inside thread,No of thread count)

Please make some review on my scenario and provide a answer. If i work with actual Ramp-up-second calculation API paramaratization doesn’t works properly and my jmeter load test script gets failed

Jmeter Test script will be like as below

Make login: Will perform login and extract the authorization token for further requests
create User: Will created user and createduserid will be extracted from response
Fetch User Detail: Will fetch the userdetail for created userid
Logout: Will perform logout

So this should be happen in sequence

and the time b/w request inside thread is 1 seconds used constant timer

I am new in mobile automation and first time trying to launch the app in emulator. Just the mobile screen blinks but My app doesn’t get launched. Can anyone help me..
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;

import org.openqa.selenium.remote.DesiredCapabilities;

import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.remote.MobileCapabilityType;

public class AppTest {

public static AppiumDriver<MobileElement>appium;

public static void main(String[] args) {
// TODO Auto-generated method stub
File app = new File(“C:\Users\User\Desktop\iTest-20.07(43).apk”);
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability(MobileCapabilityType.APP,app.getAbsolutePath());
caps.setCapability(“deviceName”,”emulator-5554″);
caps.setCapability(“platformName”, “Android”);
caps.setCapability(“platformVersion”, “8.0”);
caps.setCapability(“appPackage”, “com.google.android.apps.nexuslaunch”);
caps.setCapability(“appActivity”, “com.google.android.apps.nexuslaunch.NexusLaunchActivity”);
caps.setCapability(“noReset”, “false”);
caps.setCapability(“disableWindowAnimation”, false);

try {
appium = new AndroidDriver<MobileElement>(new URL(“http://0.0.0.0:4723/wd/hub”), caps);
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println(“Application Launched”);
}
}

Result:
io.appium.java_client.remote.AppiumCommandExecutor$1 lambda$0
INFO: Detected dialect: W3C

There is a functionality like in sometimes one of modal pops up and there is a button on it. If the modal pops up user needs to click on that button. This is a continuous process and I need to automate it. How to handle this situation using selenium with java? My code is as below,
public void Orders() throws InterruptedException {
OrdersPage op = new OrdersPage(driver);
WebDriverWait wait = new WebDriverWait(driver, 15);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(“//span[contains(text(),’Reject’)]”)));
//op.clickAccept();
op.clickReject();

How to can I run this one continuously? (may be once a day or until stopped manually)?

Below are the code which I used:
driver.findElement(By.xpath(“//div[@class=’ flag-dropdown’]”)).click();
WebDriverWait wait = new WebDriverWait(driver, 10);
List<WebElement> options = driver.findElements(By.xpath(“//ul[@role=’listbox’]/li”));
By Country1 = By.xpath(“//ul[@role=’listbox’]/li[85]”);
WebElement element1 = driver.findElement(Country1);
Thread.sleep(1000);
for (WebElement opt : options) {
if (opt.equals(element1)) {
WebElement element3 = null;
element3 = wait.until(ExpectedConditions.presenceOfElementLocated(Country1));
element3.click();
}
}

My error is:
Exception in thread “main” org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <li data-flag-key=”flag_no_83″ class=”country” data-dial-code=”1″ tabindex=”0″ data-country-code=”is” role=”option”>…</li> is not clickable at point (746, 276). Other element would receive the click: <input class=”search-box” type=”search” placeholder=”search” autocomplete=”off” value=””>
(Session info: chrome=92.0.4515.159)

and it scrolls to the required country but I’m unable to click it.
Can anyone help me with this?

In my application, there are lot of files that contain financial data and those are sent to different parties. So, I have to automate verification of content of all these files. Now, each file has a different format and structure….those are not .txt files but have custom extenstions like File1.DATA etc..
For Example, this is a file where each record length is say 80 chars, but any record can be 92 or 84 also, depends. So, i read the fileinput stream and then say in line 2, subString(5,19) is 99294329, i will store in a string and verify with pre-defined string.
Now, my automation framework is in Cucumber BDD, Java, Selenium etc..It needs lot of coding like regex validation, then comparing of each line of file, string etc..
Can there be some better approach to read each file and each line, verify contents for quick scripting.
03,Record#1,,992,4328392,234,,040243,352241483,234,2,045,943824677,,/
04,Record#2,,992,4328392,234,,040243,352241483,234,2,045,943824677,,/
16,Record#3,,992,4328392,234,,040243,352241483,234,2,045,943824677,,/
48,Record#4,,992,4328392,234,,040243,352241483,234,2,045,943824677,,/

So I am writing a coding challenge for students where I check their proficiency in the use of ES6 syntax. I wrote one for template strings and I learned from a colleague that its not smart to try to test the implementation of a template string, I would have to test the behavior. I wanted to know if the same applies for fat arrow functions. Do I just write a test for the behavior as opposed to implementation of that fat arrow function?

Garnet is a high-performance cache-store offering strong performance, scalability, storage, recovery, cluster sharding, and more. The post Garnet – remote…

In May, we experienced one incident that resulted in significant degraded performance across GitHub services. May 21 11:40 UTC (lasting…

A social media analyst is a marketing role that is becoming key for brand building and customer service. Often part…

The DistroWatch news feed is brought to you by TUXEDO COMPUTERS. The openSUSE project has published a new update to the distribution’s Leap branch. openSUSE 15.6 Leap will be supported through to the end of 2025 and features a number of enhancements to remote administration tools and container management utilities: “The inclusion of the Cockpit package in openSUSE Leap….