Skip to content

Commit

Permalink
Merge pull request #526 from anup-nehe/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
aranaravi authored Oct 16, 2023
2 parents 5008ca2 + 10cadb9 commit e1a4447
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void getMyUIN() throws Exception {
String aid = JsonUtil.JsonObjParsing(Commons.getTestData(), "aid");

test = extent.createTest("getMyUIN", "verify Login");
Commons.click(test, driver, By.xpath("(//mat-card[@class='mat-card'])[4]"));// id
Commons.click(test, driver, By.xpath("(//*[@id='dashboardCard4'])[1]"));
Commons.enter(test, driver, By.id("aidValue"), aid);//
test.log(Status.INFO, "AID Entered");
Commons.switchToFrameByIndex(test, driver, 0);
Expand All @@ -41,7 +41,7 @@ public void getMyUIN() throws Exception {

public void getMyUINWithoutAID() throws InterruptedException, IOException {
test=extent.createTest("get MyUIN Without AID", "verify Login");
Commons.click(test,driver, By.xpath("(//mat-card[@class='mat-card'])[4]"));//id
Commons.click(test, driver, By.xpath("(//*[@id='dashboardCard4'])[1]"));
Commons.switchToFrameByIndex(test,driver, 0);
Commons.click(test,driver, By.xpath("//div[@id='rc-anchor-container']"));
Thread.sleep(3000);
Expand All @@ -54,7 +54,7 @@ public void getMyUINWithInvalidOtp() throws Exception {
String tempemail=JsonUtil.JsonObjParsing(Commons.getTestData(),"tempemail");
String aid=JsonUtil.JsonObjParsing(Commons.getTestData(),"aid");
test=extent.createTest("get My UIN With Invalid Otp", "verify Login");
Commons.click(test,driver, By.xpath("(//mat-card[@class='mat-card'])[4]"));//id
Commons.click(test, driver, By.xpath("(//*[@id='dashboardCard4'])[1]"));
Commons.enter(test,driver, By.id("aidValue"), aid);//
Commons.switchToFrameByIndex(test,driver, 0);
Commons.click(test,driver, By.xpath("//div[@id='rc-anchor-container']"));
Expand All @@ -73,7 +73,7 @@ public void getMyUINWithExpiredOtp() throws Exception {
String tempemail=JsonUtil.JsonObjParsing(Commons.getTestData(),"tempemail");
String aid=JsonUtil.JsonObjParsing(Commons.getTestData(),"aid");
test=extent.createTest("get My UIN With Expired Otp", "verify Login");
Commons.click(test,driver, By.xpath("(//mat-card[@class='mat-card'])[4]"));//id
Commons.click(test, driver, By.xpath("(//*[@id='dashboardCard4'])[1]"));//id
Commons.enter(test,driver, By.id("aidValue"), aid);//
Commons.switchToFrameByIndex(test,driver, 0);
Commons.click(test,driver, By.xpath("//div[@id='rc-anchor-container']"));
Expand All @@ -93,7 +93,7 @@ public void getMyUINWithoutOtp() throws Exception {
test=extent.createTest("get My UIN Without Otp", "verify Login");
String tempemail=JsonUtil.JsonObjParsing(Commons.getTestData(),"tempemail");
String aid=JsonUtil.JsonObjParsing(Commons.getTestData(),"aid");
Commons.click(test,driver, By.xpath("(//mat-card[@class='mat-card'])[4]"));//id
Commons.click(test, driver, By.xpath("(//*[@id='dashboardCard4'])[1]"));//id
Commons.enter(test,driver, By.id("aidValue"), aid);//
Commons.switchToFrameByIndex(test,driver, 0);
Commons.click(test,driver, By.xpath("//div[@id='rc-anchor-container']"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public void GetPersonalisedCard() throws Exception {
Commons.click(test, driver, By.xpath("//span[text()=' Perpetual VID']"));
Commons.click(test, driver, By.xpath("//span[text()=' Phone Number']"));

Commons.click(test, driver, By.id("Mask It2"));
Commons.click(test, driver, By.id("Mask It3"));
Commons.click(test, driver, By.id("Mask It4"));
// Commons.click(test, driver, By.id("Mask It2"));
// Commons.click(test, driver, By.id("Mask It3"));
// Commons.click(test, driver, By.id("Mask It4"));
//Commons.click(test, driver, By.id("Mask It3"));
//Commons.click(test, driver, By.id("Mask It4"));
Commons.click(test, driver, By.id("downloadFileBtn"));
Expand Down Expand Up @@ -78,10 +78,10 @@ public void GetPersonalisedCard() throws Exception {
Commons.click(test, driver, By.xpath("//span[text()=' Address']"));
Commons.click(test, driver, By.xpath("//span[text()=' Gender']"));
Commons.click(test, driver, By.xpath("//span[text()=' Image']"));
Commons.click(test, driver, By.id("Mask It2"));
Commons.click(test, driver, By.id("Mask It3"));
Commons.click(test, driver, By.id("Mask It4"));
Commons.click(test, driver, By.id("Mask It5"));
// Commons.click(test, driver, By.id("Mask It2"));
// Commons.click(test, driver, By.id("Mask It3"));
// Commons.click(test, driver, By.id("Mask It4"));
// Commons.click(test, driver, By.id("Mask It5"));
// Commons.click(test, driver, By.xpath("//input[@id='Mask it2-input']"));
// Commons.click(test, driver, By.xpath("//input[@id='Mask it3-input']"));
// Commons.click(test, driver, By.xpath("//input[@id='Mask it4-input']"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ public void shareMyData() throws Exception {
// Commons.clickWebelement(test, driver, By.id("Mask It3"));
//Commons.clickWebelement(test, driver, By.id("Mask It4"));
// Commons.clickWebelement(test, driver, By.id("Mask It5"));
Commons.click(test, driver, By.id("Mask It2"));
Commons.click(test, driver, By.id("Mask It3"));
Commons.click(test, driver, By.id("Mask It4"));
Commons.click(test, driver, By.id("Mask It5"));
// Commons.click(test, driver, By.id("Mask It2"));
// Commons.click(test, driver, By.id("Mask It3"));
// Commons.click(test, driver, By.id("Mask It4"));
// Commons.click(test, driver, By.id("Mask It5"));
test.log(Status.INFO, "Click on Mask");
Commons.dropdown(test, driver, By.id("partnerDetails"));
test.log(Status.INFO, "Select Dropdown");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public void trackMyRequest() throws Exception {
Commons.click(test,driver, By.id("Temporary"));
test.log(Status.INFO, "Click on Temporary VID");
Commons.click(test,driver, By.id("confirmmessagepopup"));
Thread.sleep(2000);
String eid = driver.findElement(By.className("pop-up-header")).getText();
System.out.println(eid);
Eid = eid.replaceAll("[^0-9]", "");
Expand All @@ -41,9 +42,11 @@ public void trackMyRequest() throws Exception {
Commons.click(test,driver, By.xpath("//a[text()]"));
Commons.click(test,driver, By.xpath("(//mat-card[@class='mini-card mat-card'])[4]"));
Commons.enter(test,driver, By.id("appIdValue"), Eid);
Thread.sleep(2000);
test.log(Status.INFO, "EID Extracted");
Commons.clickWebelement(test,driver, By.id("getEIDStatusbtn"));
test.log(Status.INFO, "Click on Track");
Thread.sleep(2000);
Commons.click(test,driver, By.id("downloadAcknowledgementbtn"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public class VerifyPhoneNumberEmailID extends ResidentBaseClass {

public void VerifyEmailID() throws Exception {
String externalemail = JsonUtil.JsonObjParsing(Commons.getTestData(), "externalemail");

Commons.click(test, driver, By.id("dashboardCard4"));
Thread.sleep(2000);
Commons.click(test, driver, By.xpath("(//*[@id='dashboardCard4'])[2]"));
Commons.click(test, driver, By.id("emailChannelBtn-button"));
Commons.enter(test, driver, By.id("uin"), vid);
Commons.switchToFrameByIndex(test, driver, 0);
Expand All @@ -33,7 +33,8 @@ public void VerifyEmailID() throws Exception {
}

public void VerifyEmailIDWIthInvalidVid() throws IOException, InterruptedException {
Commons.click(test, driver, By.id("dashboardCard4"));
Thread.sleep(2000);
Commons.click(test, driver, By.xpath("(//*[@id='dashboardCard4'])[2]"));
Commons.click(test, driver, By.id("emailChannelBtn-button"));
Commons.enter(test, driver, By.id("uin"), data);
Commons.switchToFrameByIndex(test, driver, 0);
Expand All @@ -44,8 +45,8 @@ public void VerifyEmailIDWIthInvalidVid() throws IOException, InterruptedExcepti
}

public void VerifyPhoneWIthInvalidVid() throws IOException, InterruptedException {

Commons.click(test, driver, By.id("dashboardCard4"));
Thread.sleep(2000);
Commons.click(test, driver, By.xpath("(//*[@id='dashboardCard4'])[2]"));
Commons.click(test, driver, By.id("phoneChannelBtn"));
Commons.enter(test, driver, By.id("uin"), data);
Commons.switchToFrameByIndex(test, driver, 0);
Expand All @@ -58,7 +59,8 @@ public void VerifyPhoneWIthInvalidVid() throws IOException, InterruptedException

public void VerifyEmailIDWIthInvalidOtp() throws Exception {
String externalemail = JsonUtil.JsonObjParsing(Commons.getTestData(), "externalemail");
Commons.click(test, driver, By.id("dashboardCard4"));
Thread.sleep(2000);
Commons.click(test, driver, By.xpath("(//*[@id='dashboardCard4'])[2]"));
Commons.click(test, driver, By.id("emailChannelBtn-button"));
Commons.enter(test, driver, By.id("uin"), vid);
Commons.switchToFrameByIndex(test, driver, 0);
Expand All @@ -76,7 +78,8 @@ public void VerifyEmailIDWIthInvalidOtp() throws Exception {

public void VerifyEmailIDWIthoutOtp() throws Exception {
String externalemail = JsonUtil.JsonObjParsing(Commons.getTestData(), "externalemail");
Commons.click(test, driver, By.id("dashboardCard4"));
Thread.sleep(2000);
Commons.click(test, driver, By.xpath("(//*[@id='dashboardCard4'])[2]"));
Commons.click(test, driver, By.id("emailChannelBtn-button"));
Commons.enter(test, driver, By.id("uin"), vid);
Commons.switchToFrameByIndex(test, driver, 0);
Expand Down

0 comments on commit e1a4447

Please sign in to comment.