Questions tagged [java]

Questions about testing applications written in Java or test automation written in Java, a popular programming language and runtime environment which allows Java programs to run unchanged on most hardware and software platforms.

Filter by
Sorted by
Tagged with
-2
votes
0answers
13 views

Trying to delete books added through API

I have added Book through addBook() method and now trying to delete all three books through deleteBook() method but getting error- HTTP/1.1 404 Not Found package FirstMaven.FirstMaven; import org....
-1
votes
1answer
25 views

TESTNG, how to validates test case results to pass fail status [duplicate]

Need help, my question here is how can I code it such when the result is not expected testNG will display the test case as failure/fail? if the result is expected test case result is passed? very new ...
1
vote
0answers
21 views

Automation framework for gRPC services

Are there any automation frameworks on Java for gRPC services? For example, for functional testing of REST API could be used Rest-Assured framework. Probably, there are some framework for gRPC
1
vote
1answer
34 views

Guidelines on how to use Cucumber Java Scenario interface

I'm looking for information/guidelines on how to use io.cucumber.core.api.Scenario interface? I read through the API reference documentation and Official Cucumber-Java documentation and some scattered ...
0
votes
0answers
13 views

How can I set the file name of the cucumber reports using net.masterthought plugin?

I'm having issues setting up the file names from the masterthought plugin. https://github.com/damianszczepanik/cucumber-reporting TecStack from the project. java, junit, cucucumber, maven. For ...
0
votes
0answers
41 views

Unable to select the dropdown value inside shadow element

I am trying to select the drop down value inside my shadow element using below code, I went to last point but the selection has not happened, I want to select any dropdown item from the screen based ...
0
votes
0answers
5 views

Importing files and images in blueJ on a mac

I do not know how to get my file or image in bluej on a mac. I know all the correct coding, but it does not work. My teacher told me she only knows how to do it on a windows, so I am pretty much ...
0
votes
1answer
28 views

Unable to draw signature on Canvas with Selenium-Java script

I used below code with multiple points but still its not even drawing a dot on canvas. It is not even recognizing the element. Any other options to automate? WebElement element = driver.findElement(...
0
votes
1answer
38 views

How to debug NullPointerException in selenium-java

Console FAILED CONFIGURATION: @BeforeMethod setUp java.lang.NullPointerException at com.ecinteractive.base.TestBase.initialization(TestBase.java:50) at com.ecinteractive.testcases....
0
votes
1answer
39 views

Is there any possibility of semi-automated text execution in selenium? [duplicate]

Can one semi-automate the test execution, say there are certain things that we can`t do using selenium like captcha issue, so is it possible to start the script, perform some task manually and ...
0
votes
2answers
40 views

Cannot load JDBC driver class 'oracle.jdbc.OracleDriver' in JMeter

I have the problem with running a script in JMeter. I get the following error message Cannot load JDBC driver class 'oracle.jdbc.OracleDriver' Does anyone know how to solve it?
0
votes
0answers
23 views

A new (maybe?) idea about cooperation between development engineers and test engineers - is this feasible/good? [duplicate]

Suppose we want to develop a small module (time needed: two weeks of one developer). Then what about this new (maybe?) pipeline: The test engineer starts working: Think about all cases (including ...
0
votes
1answer
28 views

Trying to retrieve the data from text box [closed]

HTML is as shown above, I just uploaded the excel from where data will get populated in the text field from which i need to retrieve the data and compare, i have used getText() method but unable to ...
0
votes
1answer
110 views

Selenium Faker class - Error Can not make static reference to non static field

I am using Faker class to create random values in Selenium Webdriver automation. Below is the class for your reference. public class NewUserFormAction { Faker faker = new Faker(); public ...
2
votes
0answers
41 views

BeforeClass doesn't get displayed in TestNG test results window

We are expanding our TestNG suite to run multiple tests. Doing so we've encountered a strange occurrence. In one suite I have two tests. Both tests have one class each. Tests in IntegrationTest.java ...
0
votes
0answers
24 views

Facing issues while sendkeys for a autosuggestion dropdown in a webapplication

1) On the current screen we have dropdown with div tag (Select Agent) 2) When we click on the dropdown, the options appear only till time the cursor stays on the dropdown, once moved the options ...
-1
votes
2answers
41 views

Open Source project recommendations to get started with SDET work? [closed]

I just did an online course in Software Testing (Udacity CS258) and I'd like to practice my skills. Can you recommend open source software that's serious about testing, has a great community and ...
1
vote
2answers
451 views

Timed out message receiving from renderer: 0.100 log messages using ChromeDriver and Chrome v80 through Selenium Java

I recently updated my chrome from v74 to v80. Now I am facing timeout messaging rending when I run my script which was running successfully on v74. My code : public static void main(String[] args) ...
1
vote
3answers
44 views

Cucumber feature file name is Jira ticket number

I am starting to name my cucumber .feature files as VerifyLogin_JIRA-1211.feature Is this the correct/optimum naming convention? This question might get closed due to "opinion-based" but there is ...
0
votes
2answers
110 views

What is the correct way to writing e2e tests?

I have a task do create e2e for a web app, but I don't know what is the correct way to do it. For example: In app there is a possibility to add new employee, so the scenario is: Login to application(...
0
votes
0answers
23 views

[1582522761.219][SEVERE]: Timed out receiving message from renderer: 0.100 ,Starting to end on console this message displaying, help me out [duplicate]

Using selenium with java chrome version is : https://chromedriver.storage.googleapis.com/index.html?path=80.0.3987.106/
0
votes
0answers
29 views

Iteration through webelements in java [duplicate]

Lately I've been struggling with iterating through a website's elements. I'm using Cucumber/Gherkin for my tests. Every test runs smoothly and I have no problems except when I want to iterate. ...
0
votes
2answers
37 views

How to check if all td tags contain specified text using xpath Selenium Java?

I'm trying to check if all td tags contain specified text using xpath like: WebElement tableId = driver.findElement(By.id("tablepress-6")); if (!driver.findElements(By.xpath("//td[contains(text(),'"...
0
votes
1answer
129 views

How can I handle multiple pages with the same loop Selenium?

I'm trying to handle elements from multiple pages via the same loop after click next button like on website: driver.get("https://www.scimagojr.com/journalrank.php?country=UA&page=1"); ...
1
vote
2answers
51 views

driver.findElement used outside the method throwing Nullpointer Exception in POM model

I have created two class files 'LoginPage.java' and 'orangeHRM.java' Now as part of POM, I have initialized the 'LoginPage' object in 'OrangeHRM' LoginPage LP = new LoginPage(driver); I have ...
0
votes
0answers
77 views

Undefined step reference for import io.cucumber.java8.En on Intellij Idea

I am not able to define reference for java8 cucumber. Using Intellij 2019.1.1 version *.feature file is registered in File Types (Examples in feature files are recognized, but not steps) Cucumber for ...
0
votes
1answer
33 views

WebDriver wait.until using the arrow function throws exception when false

This works if true but fails when it hits false. Is there any way to make this work while it is true? WebDriverWait wait = new WebDriverWait(driver, 30); ExpectedCondition<Boolean&...
0
votes
1answer
44 views

Best model/design technique for test scripts [closed]

What's the best/most advanced classes design/modelling approach when writing selenium webdriver scripts using Java. Example of one modelling approach is TDD and page object. Can we integrate both? ...
0
votes
0answers
41 views

i have written the test script to generate the extent reports but the execution is running success but report is not generating

package com.actitime1.generics; import java.io.File; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; import org.apache.commons.io.FileUtils; import org.openqa....
1
vote
1answer
58 views

How to disable selenium from taking physical mouse on Chrome on user's machine on a different monitor screen?

My issue is related to this question Disable physical mouse and keyboard in selenium but I didn't see an answer for this question. tests are being ran by Java + Selenium + Chrome on the same user's ...
0
votes
1answer
25 views

Jmeter - Unexpected output of Test plan

Test Plan : * Recording Controller#1 > CSV UserName DateSet > HTTP Request#1 > HTTP Request#2 - HttpHeader Manager - Regular Expression Extractor - JSR223 ...
0
votes
1answer
97 views

Automation solution for PDF content validation using Java [closed]

I am doing POC on PDF content validation which will basically validate the content of PDF files. But I didn't find any solutions. Solution which I am looking for: Read the PDF file from a specific ...
2
votes
2answers
64 views

java.lang.NullPointerException problem in Selenium Test

I'm learning Selenium POM with Junit and ran into a problem. java.lang.NullPointerException at MainPage.clickSignIn(MainPage.java:27) at MainPageTest.signInTest(MainPageTest.java:28) My class: ...
2
votes
2answers
155 views

Best strategy to test automatically a web application

I have an application that consist of a web server in Java EE (EJBs and JAX-RS RESTful services) and a client module in Angular that runs in a browser. The components that I can unit test ...
0
votes
1answer
36 views

NullPointerException error in POM code

Setup Class public class Setup { private static AndroidDriver driver = initializeAppiumServer(); public static AndroidDriver initializeAppiumServer() { if (driver == null || ...
0
votes
2answers
64 views

How to add an argument to my BaseTest ChromeDriver Instance?

I have a selenium framework with a BaseTest class. In the BaseTest class we instantiate a ChromeDriver instance which contains various arguments. These are part of the @BeforeMethod (using TestNG). My ...
0
votes
1answer
367 views

Rest-assured. Is it possible to extract JSONObject/JSONArray from response json?

I'm Using RestAssured, and i'm getting the response like this- { "Data": { "Sub": { "SubDetails": [ { "OrgId": 5, ...
16
votes
6answers
4k views

Writing test automation in Java, while the company domain uses C#/.NET

I´ve recently got a job as a automation tester in a company, that basically only have manual testers (except me). The short term plan is to come up with a good test strategy for identifying which of ...
-1
votes
3answers
33 views

How to use Click after getting text of an autogenerated time stamp

Using Java/Selenium and Page Objects, I have to create an item name that is auto generated using the current date and time and entered into a text field. I then have to verify that this item was ...
0
votes
5answers
292 views

Element not found in a runtime

I am encountering a very unusual thing, the one I haven't seen before. There is one element I needed to find for testing purposes, it is visible on the page and I can find its unique relative XPath ...
0
votes
3answers
92 views

Selenium un-enable to find element

I have been through every selenium related page on here but not much else I can really try. I am trying to click on the text link but It gives me 'org.openqa.selenium.WebDriverException: chrome not ...
0
votes
1answer
165 views

Appium Inspector find element with the path but appium for java doesn't

I'm testing a mobile app using appium + selenium + java I have an element that I'm trying to find (in order to click on later) by using an xpath. Here is the xpath: //android.widget.TextView[@text='...
6
votes
5answers
1k views

How to connect Selenium to an existing browser that was opened manually in java or create semi automated tests?

I want to achieve some use cases in which: I want to perform some tasks that require manual intervention before kicking in automation execution. For instance, I need to manually launch the browser, ...
-1
votes
2answers
69 views

Getting java.lang.NullPointerException while trying to instantiate the Webdriver driver under @ Annotation

Please find the code below and let me know why am I getting NullPointer. I am having no clue. package com.seleniumhybridframework.utility; import java.util.concurrent.TimeUnit; import org.openqa....
3
votes
1answer
84 views

How to resolve NullPointerException error while implementing POM with cucumber framework

I am getting java.lang.NullPointerException while executing my test case, I am using Page Object Modle with cucumber framework in my maven project, following are the code snippets BoxJunitScript.java ...
3
votes
2answers
69 views

Java Selenium click checkbox [duplicate]

I can’t get selenium to click on this checkbox button no matter what I do. Error: no such element: Unable to locate element: I have used sleep thread timers and wait.until(ExpectedConditions....
3
votes
2answers
164 views

Nested explicit wait does not work in Appium

For example, I'm sending a message. While it's being sent to the recipient it has the resource-id "pending_indicator". When it is delivered, it has the resource-id "delivered_indicator". So, I'm ...
3
votes
1answer
628 views

Exception in thread “main” java.lang.AssertionError: expected [3] but found [3]

System.setProperty("webdriver.chrome.driver", "C:\\Users\\srajendran\\Documents\\chromedriver.exe"); WebDriver driver=new ChromeDriver(); driver.get("http://qaclickacademy.com/practice.php"); ...
0
votes
2answers
63 views

How to automate functional regression tests through database data comparisons?

I have a Java batch job application that reads input data from an Oracle database, does a lots of calculations, handles many edge cases, and outputs results back into different database tables. The ...
1
vote
1answer
132 views

How to select a dropdown value in Selenium WebDriver using Java appium?

I am new to Selenium, currently am working on selenium webdriver. I want to select a value from the drop-down. But I am not able to do it because of some error. Also, I want to inform you that in my ...

1
2 3 4 5
24