com.initbanking.testcase.TC_AddcustomerTest_002
Addcustpmer
org.openqa.selenium.UnhandledAlertException: unexpected alert open: {Alert text : User or Password is not valid}
(Session info: chrome=109.0.5414.120): User or Password is not valid
Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:54:15.039Z'
System info: host: 'USN-PC', ip: '192.168.137.9', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '17.0.2'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{networkConnectionEnabled=false, chrome={chromedriverVersion=109.0.5414.74 (e7c5703604daa9cc128ccf5a5d3e993513758913-refs/branch-heads/5414@{#1172}), userDataDir=C:\Users\US00BB~1.N\AppData\Local\Temp\scoped_dir6736_523432500}, timeouts={implicit=0, pageLoad=300000, script=30000}, pageLoadStrategy=normal, unhandledPromptBehavior=dismiss and notify, strictFileInteractability=false, platform=XP, proxy=Proxy(), goog:chromeOptions={debuggerAddress=localhost:62083}, webauthn:extension:credBlob=true, acceptInsecureCerts=false, browserVersion=109.0.5414.120, browserName=chrome, javascriptEnabled=true, platformName=XP, setWindowRect=true, webauthn:extension:largeBlob=true, webauthn:virtualAuthenticators=true}]
Session ID: 218287c940f734b9a123027809f3fa16
*** Element info: {Using=xpath, value=//a[text()='New Customer']}
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:118)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:646)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:416)
at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:518)
at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:408)
at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:69)
at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:38)
at jdk.proxy2/jdk.proxy2.$Proxy14.click(Unknown Source)
at com.initbanking.pageobjact.Addcustomerpage.Addnewcustomer(Addcustomerpage.java:70)
at com.initbanking.testcase.TC_AddcustomerTest_002.Addcustpmer(TC_AddcustomerTest_002.java:17)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
... Removed 27 stack frames
com.initbanking.testcase.Tc_LoginTest_001
logintest
org.openqa.selenium.UnhandledAlertException: unexpected alert open: {Alert text : User or Password is not valid}
(Session info: chrome=109.0.5414.120): User or Password is not valid
Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:54:15.039Z'
System info: host: 'USN-PC', ip: '192.168.137.9', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '17.0.2'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{networkConnectionEnabled=false, chrome={chromedriverVersion=109.0.5414.74 (e7c5703604daa9cc128ccf5a5d3e993513758913-refs/branch-heads/5414@{#1172}), userDataDir=C:\Users\US00BB~1.N\AppData\Local\Temp\scoped_dir3500_487255263}, timeouts={implicit=0, pageLoad=300000, script=30000}, pageLoadStrategy=normal, unhandledPromptBehavior=dismiss and notify, strictFileInteractability=false, platform=XP, proxy=Proxy(), goog:chromeOptions={debuggerAddress=localhost:61911}, webauthn:extension:credBlob=true, acceptInsecureCerts=false, browserVersion=109.0.5414.120, browserName=chrome, javascriptEnabled=true, platformName=XP, setWindowRect=true, webauthn:extension:largeBlob=true, webauthn:virtualAuthenticators=true}]
Session ID: 55717c588c8a6553daa7291bab730189
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:118)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:646)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:703)
at org.openqa.selenium.remote.RemoteWebDriver.getTitle(RemoteWebDriver.java:374)
at com.initbanking.testcase.Tc_LoginTest_001.logintest(Tc_LoginTest_001.java:58)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
... Removed 27 stack frames
logout
org.openqa.selenium.UnhandledAlertException: unexpected alert open: {Alert text : User or Password is not valid}
(Session info: chrome=109.0.5414.120): User or Password is not valid
Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:54:15.039Z'
System info: host: 'USN-PC', ip: '192.168.137.9', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '17.0.2'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{networkConnectionEnabled=false, chrome={chromedriverVersion=109.0.5414.74 (e7c5703604daa9cc128ccf5a5d3e993513758913-refs/branch-heads/5414@{#1172}), userDataDir=C:\Users\US00BB~1.N\AppData\Local\Temp\scoped_dir8952_978697163}, timeouts={implicit=0, pageLoad=300000, script=30000}, pageLoadStrategy=normal, unhandledPromptBehavior=dismiss and notify, strictFileInteractability=false, platform=XP, proxy=Proxy(), goog:chromeOptions={debuggerAddress=localhost:62012}, webauthn:extension:credBlob=true, acceptInsecureCerts=false, browserVersion=109.0.5414.120, browserName=chrome, javascriptEnabled=true, platformName=XP, setWindowRect=true, webauthn:extension:largeBlob=true, webauthn:virtualAuthenticators=true}]
Session ID: 31716b04800254c2191a0e540fbee458
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:118)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:646)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:703)
at org.openqa.selenium.remote.RemoteWebDriver.getTitle(RemoteWebDriver.java:374)
at com.initbanking.testcase.Tc_LoginTest_001.logout(Tc_LoginTest_001.java:78)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
... Removed 27 stack frames
E:\selenium\initbanking\Test.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite name="initbanking" guice-stage="DEVELOPMENT">
<listeners>
<listener class-name="com.initbanking.testcase.Listener"/>
</listeners>
<test thread-count="5" name="Banking app ">
<classes>
<class name="com.initbanking.testcase.Tc_LoginTest_001"/>
<class name="com.initbanking.testcase.TC_AddcustomerTest_002"/>
</classes>
</test> <!-- Banking app -->
</suite> <!-- initbanking -->
Tests for initbanking
- Banking app (2 classes)
Groups for initbanking
Times for initbanking
Total running time: 26 seconds
Reporter output for initbanking
0 ignored methods
Methods in chronological order
com.initbanking.testcase.Tc_LoginTest_001
Beforetest
0 ms
setup
301 ms
url
37867 ms
AfterMethod
38045 ms
setup
41058 ms
gettitle
54626 ms
AfterMethod
54649 ms
setup
54860 ms
logintest
68302 ms
AfterMethod
91399 ms
setup
93766 ms
logout
104438 ms
AfterMethod
112696 ms
com.initbanking.testcase.TC_AddcustomerTest_002
setup
113035 ms
Addcustpmer
136467 ms
AfterMethod
145507 ms
com.initbanking.testcase.Tc_LoginTest_001
Aftertest
147624 ms