NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

public String fetchingthestatus(HashMap<String,String> stepDetails, Map<String,String> testData)
{
String status = null;
try
{
String data=testData.get("ReferenceValue");
String tempLocatorValue=stepDetails.get("Locator Value");
String updatedLocatorValue=tempLocatorValue.replace("Dummy", data);
By locator = findByLocator(stepDetails.get("Locator Type"),updatedLocatorValue);
status= waitForElementToBeClickable(locator, 30).getText();
System.out.println("Status "+ status);
ExcelOperations.setCellData(Constant.TestDataSheetName,"Status",status,Integer.parseInt(testData.get("RowNum")));
}
catch (Exception e) {
String message="The specified data in "+stepDetails.get("Field Name")+" is not found OR "+stepDetails.get("Field Name")+" is not loaded completely after sufficient wait time. Please refer "+testData.get("TestCaseName")+".jpg for more details" ;
log.info(message);
log.info(e.getMessage());
DriverScript.bResult="fail";
DriverScript.eMessage=message;
}
return status;

}
public String fetchingthestatus_Varible(HashMap<String,String> stepDetails, Map<String,String> testData)
{
String status ="No status";
try
{
String data=reference;
System.out.println("referenace value"+data);
String tempLocatorValue=stepDetails.get("Locator Value");
String updatedLocatorValue=tempLocatorValue.replace("Dummy", data);
By locator = findByLocator(stepDetails.get("Locator Type"),updatedLocatorValue);
status= waitForElementToBeClickable(locator, 30).getText();
System.out.println("In fetchingthestatus_Varible");
System.out.println("Status "+ status);

ExcelOperations.setCellData(Constant.TestDataSheetName,"Status",status,Integer.parseInt(testData.get("RowNum")));
}
catch (Exception e) {
String message="The specified data in "+stepDetails.get("Field Name")+" is not found OR "+stepDetails.get("Field Name")+" is not loaded completely after sufficient wait time. Please refer "+testData.get("TestCaseName")+".jpg for more details" ;
log.info(message);
log.info(e.getMessage());
DriverScript.bResult="fail";
DriverScript.eMessage=message;
}
return status;

}

public void addingInHashMap(HashMap<String,String> stepDetails, Map<String,String> testData) throws MyException,Exception
{
try
{

//reference= get text() it can be payee nickname /payment reference from summary page
String referencevalue=reference;
System.out.println("Payeenickname***" +referencevalue);
String Payreflink=testData.get("LinkRef");
System.out.println("Payreflink****" +Payreflink);
//Writing into hashmap


hashmapwithreflinks.put(Payreflink,referencevalue);
//Adhoc payee approval
if(DriverScript.journeyID.equalsIgnoreCase("ADHOCPAYEE_GC_DT"))
{

hashmapwithreflinks.put(Payreflink+"_ADHOC",testData.get("Payee Nick name"));

}

ExcelOperations.setCellData(Constant.TestDataSheetName,"ReferenceValue",referencevalue,Integer.parseInt(testData.get("RowNum")));

}
catch (Exception e) {

e.printStackTrace();
String message="The specified data in "+stepDetails.get("Field Name")+" is not found OR "+stepDetails.get("Field Name")+" is not loaded completely after sufficient wait time. Please refer "+testData.get("TestCaseName")+".jpg for more details" ;
log.info(message);
log.info(e.getMessage());
DriverScript.bResult="fail";
DriverScript.eMessage=message;
}
}
public void ReplaceFXDealinRefvalue(HashMap<String,String> stepDetails, Map<String,String> testData) throws MyException,Exception
{
try
{

//Replace FX Value in ReferenceValue Column in test data sheet for Assigen Later Fx Type
//FX_Deal="X10819";
ExcelOperations.setCellData(Constant.TestDataSheetName,"ReferenceValue",FX_Deal,Integer.parseInt(testData.get("RowNum")));
testData.put("ReferenceValue", FX_Deal);
System.out.println("Updated Test Data is"+testData.get("ReferenceValue"));
}
catch (Exception e) {

e.printStackTrace();
String message="The specified data in "+FX_Deal+" is not found OR "+FX_Deal+" is not loaded completely after sufficient wait time. Please refer "+testData.get("TestCaseName")+".jpg for more details" ;
log.info(message);
log.info(e.getMessage());
DriverScript.bResult="fail";
DriverScript.eMessage=message;
}
}
public void ReplacePaymentRefinRefvalue(HashMap<String,String> stepDetails, Map<String,String> testData) throws MyException,Exception
{
try
{

//Replace FX Value in ReferenceValue Column in test data sheet for Assigen Later Fx Type
ExcelOperations.setCellData(Constant.TestDataSheetName,"ReferenceValue",reference,Integer.parseInt(testData.get("RowNum")));
testData.put("ReferenceValue", reference);
System.out.println("Updated Test Data is"+testData.get("ReferenceValue"));
}
catch (Exception e) {

e.printStackTrace();
String message="The specified data in "+reference+" is not found OR "+reference+" is not loaded completely after sufficient wait time. Please refer "+testData.get("TestCaseName")+".jpg for more details" ;
log.info(message);
log.info(e.getMessage());
DriverScript.bResult="fail";
DriverScript.eMessage=message;
}
}


public void savePayeeNameInHashMap(HashMap<String,String> stepDetails, Map<String,String> testData) throws MyException,Exception
{
try{
String Payreflink=testData.get("LinkRef");
String text=testData.get(stepDetails.get("Field Name"));
System.out.println("PayeeName:" +text);
//Writing into hashmap
payeeNameToFilter.put(Payreflink,text);
System.out.println(""+payeeNameToFilter.get(Payreflink));
}
catch (Exception e) {

e.printStackTrace();
String message="The specified data in "+stepDetails.get("Field Name")+" is not found OR "+stepDetails.get("Field Name")+" is not loaded completely after sufficient wait time. Please refer "+testData.get("TestCaseName")+".jpg for more details" ;
log.info(message);
log.info(e.getMessage());
DriverScript.bResult="fail";
DriverScript.eMessage=message;
}
}
public void inputPayeeName(HashMap<String,String> stepDetails, Map<String,String> testData) throws MyException,Exception
{
try{
String value=testData.get("Search Value");
if(value==null||value.equals("")){
String message="Payee Name is not provided in the excel sheet" ;
log.info(message);
}
else{
System.out.println("Value:"+value);
By locator = findByLocator(stepDetails.get("Locator Type"),stepDetails.get("Locator Value"));
WebElement element= waitForElementToBeClickable(locator, 30);
element.clear();
element.sendKeys(value);
}
}
catch (Exception e) {

e.printStackTrace();
String message="The specified data in "+stepDetails.get("Field Name")+" is not found OR "+stepDetails.get("Field Name")+" is not loaded completely after sufficient wait time. Please refer "+testData.get("TestCaseName")+".jpg for more details" ;
log.info(message);
log.info(e.getMessage());
DriverScript.bResult="fail";
DriverScript.eMessage=message;
}
}
public void searchReportName(HashMap<String,String> stepDetails, Map<String,String> testData) throws MyException,Exception
{
try{
String value=testData.get("Search Value");
if(value==null||value.equals("")){
String message="Report Name is not provided in the excel sheet" ;
log.info(message);
}
else{
System.out.println("Value:"+value);
By locator = findByLocator(stepDetails.get("Locator Type"),stepDetails.get("Locator Value"));
waitForElementToBeClickable(locator, 30);

}
}
catch (Exception e) {

e.printStackTrace();
String message="The specified data in "+stepDetails.get("Field Name")+" is not found OR "+stepDetails.get("Field Name")+" is not loaded completely after sufficient wait time. Please refer "+testData.get("TestCaseName")+".jpg for more details" ;
log.info(message);
log.info(e.getMessage());
DriverScript.bResult="fail";
DriverScript.eMessage=message;
}
}
public void inputSavedPayeeName(HashMap<String,String> stepDetails, Map<String,String> testData) throws MyException,Exception
{
try{
String Payreflink=testData.get("LinkRef");
String value=payeeNameToFilter.get(Payreflink);
System.out.println("Value:"+value);
By locator = findByLocator(stepDetails.get("Locator Type"),stepDetails.get("Locator Value"));
WebElement element= waitForElementToBeClickable(locator, 30);
element.clear();
element.sendKeys(value);
}
catch (Exception e) {

e.printStackTrace();
String message="The specified data in "+stepDetails.get("Field Name")+" is not found OR "+stepDetails.get("Field Name")+" is not loaded completely after sufficient wait time. Please refer "+testData.get("TestCaseName")+".jpg for more details" ;
log.info(message);
log.info(e.getMessage());
DriverScript.bResult="fail";
DriverScript.eMessage=message;
}
}

public void updatingLinkRef(HashMap<String,String> stepDetails, Map<String,String> testData) throws MyException,Exception
{

try
{
String Payreflink=testData.get("LinkRef");
System.out.println("Payreflink:"+Payreflink);

if (Payreflink.equals("")){

String message="Please provide LinkRef" ;
log.info(message);

DriverScript.bResult="fail";
DriverScript.eMessage=message;
}else if (!Payreflink.equals("") && !Payreflink.contains("PYC_"))
{
//If for FX

if(Payreflink.equals("Standalone journey")){
String refValue=testData.get("ReferenceValue");
if(refValue==null||refValue.equals("")){
String message="Please provide Reference Value" ;
log.info(message);
DriverScript.bResult="fail";
DriverScript.eMessage=message;
}
}
else
{
System.out.println("Integer******** "+Integer.parseInt(testData.get("RowNum")));
System.out.println("Hashmap"+hashmapwithreflinks.get(Payreflink));
String refValue=hashmapwithreflinks.get(Payreflink);
if(refValue==null||refValue.equals("")){
String message="Reference value is not available" ;
DriverScript.bResult="fail";
DriverScript.eMessage=message;
}
ExcelOperations.setCellData(Constant.TestDataSheetName,"ReferenceValue",hashmapwithreflinks.get(Payreflink),Integer.parseInt(testData.get("RowNum")));
DriverScript.testData.put("ReferenceValue", hashmapwithreflinks.get(Payreflink));
if(testData.get("Fx Type").equalsIgnoreCase("ASSIGN LATER"))
{
FX_Deal=testData.get("ReferenceValue");
}
}


}
else
{
System.out.println("This journey does't req. update link ref. action");
}

}
catch (Exception e) {
e.printStackTrace();
String message="The specified data in "+stepDetails.get("Field Name")+" is not found OR "+stepDetails.get("Field Name")+" is not loaded completely after sufficient wait time. Please refer "+testData.get("TestCaseName")+".jpg for more details" ;
log.info(message);
log.info(e.getMessage());
DriverScript.bResult="fail";
DriverScript.eMessage=message;
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.