New answers tagged

2

Yes. You can create an application to run your test scripts, when you create your test projects they are just libraries/dlls that you have created and they do work just like any other library/dll. add to references and you should be able to call specific tests and get their pass/fail value when they are finished.


0

I did it with a Java annotation processor. You can write a Java annotation processor that runs every time you compile your project. An annotation processor can: Register which annotation types it wants the compiler to tell it about. Examine each annotation and each annotated element (class, method, ...) to learn detailed information. Write one or more ...


0

I wonder how you even able to open the application? Because you have an empty space in side string many places. Problem #1 Change from : driver.get(" http://192.168.1.10:8080/sptest/home "); to : driver.get("http://192.168.1.10:8080/sptest/home"); Problem #2 Change from: driver.findElement(By.xpath(" .//*[@id='homeMainContainer']/div[1]/div/div/...


0

I think in first case, after you clicked loginenter button, it should be added some wait time to reload page so selenium driver can not locate the element. So I suggest you to add some condition to wait next element. Please try below codes; WebElement myDynamicElement = (new WebDriverWait(driver, 10)).until(ExpectedConditions.presenceOfElementLocated(By....


1

Form above explanation it seems that failed-testng.xml gets deleted when you re-run your tests in Post task under Jenkins, because when you run "mvn clean" it will delete the target folder where failed-testng.xml was present. To verify this you need to access the Jenkins workspace, but your software testing company might not have the access to it. Further ...


0

A common reason for finding something in the seleniumIDE but not programmatically using webDriver is when there are multiple instances. The IDE selects the first automatically but programmaticaly you need to use [0] at the end of the element, e.g. div[0]


1

I haven't found a solution, rather an alternative. I have used Jenkins and used to BuildFLow plugin to create a Build Flow job. I use this job to call 3 other jobs to run parallel. The 3 other jobs are Maven jobs which are each pointing to their own test XML files which contains the tests classes I need to be run parallel. It greatly reduced the time of ...



Top 50 recent answers are included