com.kinective.omniconnect.groundControl.testscripts.loginTest.loginTest
loginWithInvalidCredentials
({ASSET SELECTOR PAGEMAP=, TestID=loginWithInvalidCredentials, LOGIN PAGEMAP=userName:monil.shah@kinective.io;
password:ab7UPKi34CnZIrG23Dl05g==;
key:HelloMonil!ThisIsOMNI;, Description=Login with wrong credentials and validate the error message})
java.lang.AssertionError: Test Failure - This is Hard test Failed
at org.testng.Assert.fail(Assert.java:99)
at com.kinective.omniconnect.support.Log.fail(Log.java:517)
at com.kinective.omniconnect.groundControl.testscripts.loginTest.loginTest.loginWithInvalidCredentials(loginTest.java:152)
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:1583)
(#TC2 Login with wrong credentials and validate the error message)
com.kinective.omniconnect.groundControl.testscripts.loginTest.loginTest
loginSearchAndOpenAsset
({ASSET SELECTOR PAGEMAP=searchAsset:test_general_ledger_accounting,QAAutomation02,ProductDemo04,QAAutomation01,prod_mortgage;
selectAssetId:QAAutomation03,QAAutomation02,ProductDemo04,QAAutomation01,5068;
clickAssetId:N,N,N,N,Y;
assetRow:;, TestID=loginSearchAndOpenAsset, LOGIN PAGEMAP=userName:monil.shah@kinective.io;
password:ab7UPKi34CnZIrG25Dl05g==;
key:HelloMonil!ThisIsOMNI;, Description=Login and validate the Home Page, Search and Select the Assets})
(#TC1 Login and validate the Home Page, Search and Select the Assets)
C:\Users\Monil Shah\Documents\Gitlab\QAAutomation\testxml\GC_Chrome_Omni_connect_ground_control_test.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite thread-count="500" name="Ground Control QA Automation" guice-stage="DEVELOPMENT" verbose="3">
<parameter name="webSite" value="https://ground-control-test.nxtsoft.com"/>
<parameter name="projectKey" value="DPF"/>
<parameter name="deviceHost" value="localhost"/>
<parameter name="sessionUrl" value="https://ground-control-test.nxtsoft.com"/>
<parameter name="devicePort" value="4444"/>
<parameter name="browserName" value="chrome_windows"/>
<test thread-count="1" parallel="methods" name="Ground_Control_QA_Chrome" verbose="3">
<classes>
<class name="com.kinective.omniconnect.groundControl.testscripts.loginTest.loginTest"/>
</classes>
</test> <!-- Ground_Control_QA_Chrome -->
</suite> <!-- Ground Control QA Automation -->
Tests for Ground Control QA Automation
- Ground_Control_QA_Chrome (1 class)
Groups for Ground Control QA Automation
Smoke
loginSearchAndOpenAsset
loginWithInvalidCredentials
Ui
loginSearchAndOpenAsset
loginWithInvalidCredentials
login
loginSearchAndOpenAsset
loginWithInvalidCredentials
Times for Ground Control QA Automation
Total running time: 3 minutes
Reporter output for Ground Control QA Automation
loginSearchAndOpenAsset({ASSET SELECTOR PAGEMAP=searchAsset:test_general_ledger_accounting,QAAutomation02,ProductDemo04,QAAu...)
Test Passed.
--- 05 Dec 15:44:54 746 - TestCaseID:: loginSearchAndOpenAsset
--- 05 Dec 15:45:00 826 - 6 - Driver::initialize::Get - com.kinective.omniconnect.support.WebDriverFactory.get(WebDriverFactory.java:566)
Login and validate the Home Page, Search and Select the Assets
Steps:
--- 05 Dec 15:45:16 240 - Page URL:: https://ground-control-test.nxtsoft.com/login
--- 05 Dec 15:45:16 240 - 3 - Page Load Wait: (Sync) - com.kinective.omniconnect.support.Utils.waitForPageLoad(Utils.java:115)
--- 05 Dec 15:45:17 475 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //input[@id='mat-input-0']]
--- 05 Dec 15:45:21 307 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //input[@id='mat-input-1']]
--- 05 Dec 15:45:25 254 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //button[@type='submit']]
--- 05 Dec 15:45:26 909 - waiting for Loading-Spinner to be disappeared.
--- 05 Dec 15:45:38 176 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //*[text()='Select an Asset']//following::div[@class='search-bar']]
--- 05 Dec 15:45:40 298 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //*[text()='Select an Asset']//following::div[@class='search-bar']//child::input]
--- 05 Dec 15:45:43 405 - waiting for Loading-Spinner to be disappeared.
--- 05 Dec 15:45:49 419 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //*[text()='Select an Asset']//following::div[@class='search-bar']//child::input]
--- 05 Dec 15:45:52 368 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: (//td[contains(translate(text(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'qaautomation03')])[1]]
--- 05 Dec 15:45:58 019 - Moved to element..
--- 05 Dec 15:46:01 098 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //*[text()='Select an Asset']//following::div[@class='search-bar']//child::input]
--- 05 Dec 15:46:02 115 - waiting for Loading-Spinner to be disappeared.
--- 05 Dec 15:46:07 315 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //*[text()='Select an Asset']//following::div[@class='search-bar']//child::input]
--- 05 Dec 15:46:09 782 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: (//td[contains(translate(text(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'qaautomation02')])[1]]
--- 05 Dec 15:46:19 624 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //*[text()='Select an Asset']//following::div[@class='search-bar']//child::input]
--- 05 Dec 15:46:20 384 - waiting for Loading-Spinner to be disappeared.
--- 05 Dec 15:46:24 747 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //*[text()='Select an Asset']//following::div[@class='search-bar']//child::input]
--- 05 Dec 15:46:26 776 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: (//td[contains(translate(text(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'productdemo04')])[1]]
--- 05 Dec 15:46:36 217 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //*[text()='Select an Asset']//following::div[@class='search-bar']//child::input]
--- 05 Dec 15:46:36 994 - waiting for Loading-Spinner to be disappeared.
--- 05 Dec 15:46:42 384 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //*[text()='Select an Asset']//following::div[@class='search-bar']//child::input]
--- 05 Dec 15:46:44 595 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: (//td[contains(translate(text(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'qaautomation01')])[1]]
--- 05 Dec 15:46:54 216 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //*[text()='Select an Asset']//following::div[@class='search-bar']//child::input]
--- 05 Dec 15:46:55 062 - waiting for Loading-Spinner to be disappeared.
--- 05 Dec 15:46:59 466 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: //*[text()='Select an Asset']//following::div[@class='search-bar']//child::input]
--- 05 Dec 15:47:01 545 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (1d10dc3fcb2b7b4c86d25871d9943c29)] -> xpath: (//td[contains(translate(text(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'5068')])[1]]
--- 05 Dec 15:47:07 555 - Moved to element..
--- 05 Dec 15:47:08 851 - waiting for Loading-Spinner to be disappeared.
Test Passed.
loginWithInvalidCredentials({ASSET SELECTOR PAGEMAP=, TestID=loginWithInvalidCredentials, LOGIN PAGEMAP=userName:monil.shah@kine...)
Test Failure - This is Hard test Failed
--- 05 Dec 15:47:25 297 - TestCaseID:: loginWithInvalidCredentials
--- 05 Dec 15:47:30 206 - 4 - Driver::initialize::Get - com.kinective.omniconnect.support.WebDriverFactory.get(WebDriverFactory.java:566)
Login with wrong credentials and validate the error message
Steps:
--- 05 Dec 15:47:43 753 - Page URL:: https://ground-control-test.nxtsoft.com/login
--- 05 Dec 15:47:43 753 - 3 - Page Load Wait: (Sync) - com.kinective.omniconnect.support.Utils.waitForPageLoad(Utils.java:115)
--- 05 Dec 15:47:44 770 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (bd5fb595306da164448b6fee0910ae9e)] -> xpath: //input[@id='mat-input-0']]
--- 05 Dec 15:47:47 575 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (bd5fb595306da164448b6fee0910ae9e)] -> xpath: //input[@id='mat-input-1']]
--- 05 Dec 15:47:50 965 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (bd5fb595306da164448b6fee0910ae9e)] -> xpath: //button[@type='submit']]
--- 05 Dec 15:47:52 289 - waiting for Loading-Spinner to be disappeared.
--- 05 Dec 15:48:09 591 - Element is displayed:: [[RemoteWebDriver: chrome on Windows 11 (bd5fb595306da164448b6fee0910ae9e)] -> css selector: div.ng-star-inserted.mat-form-field-underline.ng-tns-c52-5]
Test Failure - This is Hard test Failed
0 ignored methods
Methods in chronological order
com.kinective.omniconnect.groundControl.testscripts.loginTest.loginTest
initialize(org.testng.TestRunner@f0c8a99)
0 ms
init(org.testng.TestRunner@f0c8a99)
20279 ms
loginSearchAndOpenAsset({ASSET SELECTOR PAGEMAP=searchAsset:test_general_ledger_accounting,QAAutomation02,ProductDemo04,QAAu...)
27055 ms
loginWithInvalidCredentials({ASSET SELECTOR PAGEMAP=, TestID=loginWithInvalidCredentials, LOGIN PAGEMAP=userName:monil.shah@kine...)
176430 ms