New answers tagged

1

In my experience, that interface is used in one of two ways: getting info on the test case (getting the name, id, status of the test case, etc) writing to the report file (screenshots and text) Some example usages for No. 1: @Before public void setUp(Scenario scenario) { System.out.println(scenario.getName() + " is starting.") } @After public void ...


0

Scroll Android app screen by 1/3 or 1/4 of full size of screen and use find all element and check there any new changes in screen elements e.g bubble element ID. continue this as long as there is change in elements appear on scroll. driver.findElements (By.id ("body_bubble")); store in Arraylist and check text, if all duplicate text appear means there is no ...


0

Use click and hold instead of click, the click will just click the mouse and releases it suddenly. The below code is an example: System.setProperty("webdriver.chrome.driver","c:/chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().window().maximize(); driver.manage().timeouts()....


0

the exception shown is: FAILED CONFIGURATION: @BeforeMethod setUp java.lang.NullPointerException at com.ecinteractive.base.TestBase.initialization(TestBase.java:50) So from (TestBase.java:50), we can say that the exception was thrown at line 50 of TestBase class. On analyzing the line 50 of TestBase, we can see the code that throws the error is: ...


0

try mvn test -Dcucumber.options="--tags @TagName"


0

I encountered a similar situation where I need to write an xPath for an element shown below: Element: <img src="webwb/pzspacer.gif!!.gif" class="inactvIcon" data-ctl="["DatePicker"]" style="cursor:pointer;"> I was able to grep the element using below xPath, where I used the backslash to escape the characters [ and ". Xpath: //img[@data-ctl='\[\"...


0

After login step use Webdriver Wait to wait until some of the element of landing page(after login) is displayed. For example, if you have an account username UI element in the landing page you can make WebDriver to wait until the element is displayed WebDriverWait wait==new WebDriverWait(driver,10); wait.until(ExpectedConditions.visibilityOf(element)); So ...


0

Copy the jars you want to use and drop in this location: JMETER_HOME/lib Then restart jmeter.


2

As per Let's Start chapter of JMeter Getting Started Guide If you want to perform JDBC testing, then you will, of course, need the appropriate JDBC driver from your vendor. JMeter does not come with any JDBC drivers. So make sure to download Oracle JDBC Driver and drop it to JMeter Classpath. And don't forget to restart JMeter to pick the .jar up. ...


0

package automation.selenium; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class Print_allthe_product{ public static void main(String[] args) throws Throwable { System....


1

You can also suppress error message using ChromeDriverService class: WebDriver browser = null; ChromeDriverService service = new ChromeDriverService.Builder() .usingDriverExecutable(new File("C:\\chromedriver.exe")).usingPort(4444).withSilent(true) .build(); service.start(); browser = new RemoteWebDriver(...


0

You should be trying to retrieve the value of the field, as text entered into one is not stored in "text". Give this a try instead of .getText(): .getAttribute("value")


0

You are referencing non-static fields (name and surename) from a static context (execute method), which doesn't work. Have a look at e.g. this question on Stack Overflow. To solve this problem, you can either make the fields static too or create a NewUserFormAction object. Personally, I would prefer the latter. Check out this code, where I also applied some ...


1

https://kiwitcms.org/blog/kiwi-tcms-team/2019/03/02/want-to-hack-open-source/ Test case management system project. They have on boarding for newcomers and are also quite organised about QA aspect of development.


1

Use below site for test automation practice: http://automationpractice.com/index.php Most trending automation tool in the job market is selenium, you can get started using below link: https://www.selenium.dev/documentation/en/ Most companies use java, and even c# have high demand There is another tool called protractor which is a javascript wrapper over ...


Top 50 recent answers are included