Test results
1 suite, 1 failed test
com.kinective.DNAapp.testscripts.Login.DNAappLogin
Login ({TestID=Login, Description=Login, Username=jbanker, Password=Computer@123})
java.lang.Exception: Failed to Login to the application at com.kinective.DNAapp.windows.DNAappLogin.login(DNAappLogin.java:139) at com.kinective.DNAapp.testscripts.Login.DNAappLogin.Login(DNAappLogin.java:49) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133) at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598) at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173) at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46) at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824) at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1575) Caused by: org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'DNA19RSAFDV02', ip: '10.10.2.107', os.name: 'Windows Server 2019', os.arch: 'amd64', os.version: '10.0', java.version: '23' Driver info: io.appium.java_client.windows.WindowsDriver Capabilities {app: Root, javascriptEnabled: true, platform: WINDOWS, platformName: Windows} Session ID: 5AFF3347-24C4-4559-A2B6-A4CC8B752904 *** Element info: {Using=xpath, value=//*[@AutomationId='txtUserId']} at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:501) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:485) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166) at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40) at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80) at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:41) at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) at io.appium.java_client.windows.WindowsDriver.execute(WindowsDriver.java:1) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323) at io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:61) at io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1) at io.appium.java_client.windows.WindowsDriver.findElement(WindowsDriver.java:1) at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428) at io.appium.java_client.DefaultGenericMobileDriver.findElementByXPath(DefaultGenericMobileDriver.java:151) at io.appium.java_client.AppiumDriver.findElementByXPath(AppiumDriver.java:1) at io.appium.java_client.windows.WindowsDriver.findElementByXPath(WindowsDriver.java:1) at org.openqa.selenium.By$ByXPath.findElement(By.java:353) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315) at io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:57) at io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1) at io.appium.java_client.windows.WindowsDriver.findElement(WindowsDriver.java:1) at com.kinective.support.WinUtils.clickByAutomationid(WinUtils.java:308) at com.kinective.support.WinUtils.clickByAutomationid(WinUtils.java:299) at com.kinective.DNAapp.windows.DNAappLogin.login(DNAappLogin.java:20) ... 14 more
(Login)
C:\Users\safqa\Documents\DNA Desktop app\kinective_windows\testxml\DNAapp.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite thread-count="500" name="TeChecks Automation" guice-stage="DEVELOPMENT" verbose="3">
  <parameter name="projectKey" value="CHCKS"/>
  <parameter name="deviceHost" value="localhost"/>
  <parameter name="applicationUrl" value="C:\\DNA42\\OSI\\ShellLauncher\\ShellLauncher.exe"/>
  <parameter name="devicePort" value="4444"/>
  <parameter name="windowsDriverUrl" value="http://127.0.0.1:4723"/>
  <listeners>
    <listener class-name="com.kinective.support.EmailReport"/>
  </listeners>
  <test thread-count="1" parallel="methods" name="DNAapp Automation" verbose="3">
    <classes>
      <class name="com.kinective.DNAapp.testscripts.Login.DNAappLogin"/>
    </classes>
  </test> <!-- DNAapp Automation -->
</suite> <!-- TeChecks Automation -->
            
Tests for TeChecks Automation
  • DNAapp Automation (1 class)
Groups for TeChecks Automation
Login
Login
Smoke
Login
Times for TeChecks Automation
Total running time: 51 seconds
Reporter output for TeChecks Automation
Login({TestID=Login, Description=Login, Username=jbanker, Password=Computer@123})
Login App
Steps:
 C:\\DNA42\\OSI\\ShellLauncher\\ShellLauncher.exe

Failed to Login to the application [ScreenShot]
0 ignored methods
Methods in chronological order
com.kinective.DNAapp.testscripts.Login.DNAappLogin
initialize(org.testng.TestRunner@783a467b) 0 ms
init(org.testng.TestRunner@783a467b) 10665 ms
Login({TestID=Login, Description=Login, Username=jbanker, Password=Computer@123}) 10731 ms