Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

package automation.Pages;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.junit.Test;

import automation.ExplorerSuite;
import automation.SharedCodeClass;

public class RfaiSubmissionTest extends ExplorerSuite {

@Test
public void localRunner() throws InterruptedException{
Thread.sleep(6000);
driver.get(baseUrl + "rfaiSubmission");
SharedCodeClass.waitForLoad(driver);
testTitle();
testTh();
testLinks();
}
public void testTitle(){
Map<String,String> elements = new HashMap<>();
elements.put("HDG_mainHeading_rfaiSubmission_1", "277 Request for Additional Information");
elements.put("TAB_autoFill_rfaiSubmission_1","Auto-Fill");
SharedCodeClass.assertByTextById(elements);
}
public void testTh() throws InterruptedException{
SharedCodeClass.fillElementById("pdiClaimId", "10000");

SharedCodeClass.clickById("populate");
Thread.sleep(4000);
SharedCodeClass.clickById("BTN_Attentionmodel_RfaiSubmission_1");
Thread.sleep(2000);
SharedCodeClass.clickById("BTN_Errormodel_RfaiSubmission_1");

List<String> labelText=new ArrayList<String>();
labelText.add("Auto-Fill");
labelText.add("PDI or Claim ID");
labelText.add("Manual Entry");
labelText.add("Response Due Date mm/dd/yyyy Required");
labelText.add("Contact Information");

SharedCodeClass.findAllEllementsTag("label",labelText);
ArrayList<String> inputId=new ArrayList<String>();
inputId.add("pdiClaimId");
SharedCodeClass.assertById(inputId);
SharedCodeClass.findElementId("populate");
Map<String,String> buttonElements =new HashMap<String,String>();
buttonElements.put("populate","Populate Claim Info");
SharedCodeClass.assertByTextById(buttonElements);

ArrayList<String> lineInfo = new ArrayList<String>();
lineInfo.add("Payer Name");
lineInfo.add("Payer ID");
lineInfo.add("Payer Claim Control Number");
lineInfo.add("Medical Record Number");
lineInfo.add("Billing Provider");
lineInfo.add("Billing Provider NPI");
lineInfo.add("Billing Provider TIN");
lineInfo.add("Bill Type");
lineInfo.add("Patient Last Name");
lineInfo.add("Patient First Name");
lineInfo.add("Patient Identifier");
lineInfo.add("Patient Control Number");
lineInfo.add("Information Receiver");
lineInfo.add("Clearinghouse ID");
lineInfo.add(" ");
lineInfo.add(" ");
lineInfo.add("Service Line #");
lineInfo.add("Svc. From");
lineInfo.add("Svc. To");
lineInfo.add("Revenue Code");
lineInfo.add("Procedure Code");
lineInfo.add("Modifiers");
lineInfo.add("Charge Amount");

SharedCodeClass.findAllEllementsTag("th", lineInfo);


Thread.sleep(6000);
}

public void testLinks(){
SharedCodeClass.clickById("TAB_manualEntry_rfaiSubmission_2");

{

List<String> labelText=new ArrayList<String>();
labelText.add("Auto-Fill");
labelText.add("Manual Entry");
labelText.add("Payer Claim Control Number Required");
labelText.add("Response Due Date mm/dd/yyyy");
labelText.add("Contact Information");
labelText.add("Claim-Level");
labelText.add("Line-Level");

labelText.add("Payer Required");
labelText.add("Bill Type Required");
labelText.add("Billing Provider Name Required");
labelText.add("Billing Provider NPI Required");
labelText.add("Billing Provider TIN Required");
labelText.add("Patient Last Name Required");
labelText.add("Patient First Name Required");
labelText.add("Patient Identifier Required");
labelText.add("Patient Control Number Required");
labelText.add("Information Receiver Required");
labelText.add("Medical Record Number Required");
labelText.add("Clearinghouse ID Required");
labelText.add("Service From Date Required mm/dd/yyyy");
labelText.add("Service To Date mm/dd/yyyy");
SharedCodeClass.findAllEllementsTag("label",labelText);
SharedCodeClass.clickById("lineLevel");
ArrayList<String> lineInfo = new ArrayList<String>();
lineInfo.add("Service Line #");
lineInfo.add("Svc. From mm/dd/yyyy");
lineInfo.add("Svc. To mm/dd/yyyy");
lineInfo.add("Revenue Code");
lineInfo.add("Procedure Code");
lineInfo.add("Modifiers");
lineInfo.add("Charge Amount");
SharedCodeClass.findAllEllementsTag("th", lineInfo);

ArrayList<String> inputId=new ArrayList<String>();
inputId.add("payerName");
inputId.add("payerID");
inputId.add("payerClaimControlNumber");
inputId.add("billingProvider");
inputId.add("providerNpi");
inputId.add("billingProviderTIN");
inputId.add("lastName");
inputId.add("firstName");
inputId.add("patientID");
inputId.add("patientControlNumber");
inputId.add("informationReceiver");
inputId.add("billType");
inputId.add("serviceFromDate");
inputId.add("clearingHouseID");
inputId.add("medicalRecordNumber");
inputId.add("serviceToDate");

SharedCodeClass.assertById(inputId);


}

SharedCodeClass.clickById("claimLevel");
SharedCodeClass.clickById("lineLevel");

}
}