diff --git a/maven/.classpath b/maven/.classpath new file mode 100644 index 0000000..6d2da0f --- /dev/null +++ b/maven/.classpath @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/maven/.project b/maven/.project new file mode 100644 index 0000000..66a39be --- /dev/null +++ b/maven/.project @@ -0,0 +1,23 @@ + + + maven + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/maven/.settings/org.eclipse.core.resources.prefs b/maven/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..4c28b1a --- /dev/null +++ b/maven/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/test/java=UTF-8 +encoding/=UTF-8 diff --git a/maven/.settings/org.eclipse.jdt.core.prefs b/maven/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..8626026 --- /dev/null +++ b/maven/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/maven/.settings/org.eclipse.m2e.core.prefs b/maven/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..14b697b --- /dev/null +++ b/maven/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/maven/Drivers/chromedriver/chromedriver.exe b/maven/Drivers/chromedriver/chromedriver.exe new file mode 100644 index 0000000..b9c29d0 Binary files /dev/null and b/maven/Drivers/chromedriver/chromedriver.exe differ diff --git a/maven/Drivers/geckodriver/geckodriver.exe b/maven/Drivers/geckodriver/geckodriver.exe new file mode 100644 index 0000000..a010476 Binary files /dev/null and b/maven/Drivers/geckodriver/geckodriver.exe differ diff --git a/maven/Resources/browser-config.properties b/maven/Resources/browser-config.properties new file mode 100644 index 0000000..e091890 --- /dev/null +++ b/maven/Resources/browser-config.properties @@ -0,0 +1,2 @@ +browser.baseURL=https://testcolpal.aisselkolm.com/hills_staging/login +browser.name=chrome \ No newline at end of file diff --git a/maven/XMLFiles/testng.xml b/maven/XMLFiles/testng.xml new file mode 100644 index 0000000..02c8d42 --- /dev/null +++ b/maven/XMLFiles/testng.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/maven/pom.xml b/maven/pom.xml new file mode 100644 index 0000000..e4e2dfd --- /dev/null +++ b/maven/pom.xml @@ -0,0 +1,173 @@ + + 4.0.0 + + Hills_BDD + Maven + 0.0.1-SNAPSHOT + jar + + Maven + http://maven.apache.org + + + UTF-8 + + + + + jitpack.io + https://jitpack.io + + + + + + junit + junit + 3.8.1 + test + + + + + + com.github.ralfstuckert.pdfbox-layout + pdfbox2-layout + 0.8.6 + + + + + + + org.testng + testng + 6.14.3 + test + + + + com.apple + AppleJavaExtensions + 1.4 + + + + + io.cucumber + cucumber-java8 + 4.8.1 + + + + + + io.cucumber + cucumber-junit + 4.8.1 + test + + + + + org.seleniumhq.selenium + selenium-java + 3.141.59 + + + + + + com.aventstack + extentreports-cucumber4-adapter + 1.0.12 + + + io.cucumber + cucumber-java + + + o.cucumber + cucumber-core + + + + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.19.1 + + true + + + + net.masterthought + maven-cucumber-reporting + 5.0.0 + + + execution + verify + + generate + + + maven + + false + + target/cucumber-reports/advanced-reports + + target/cucmber-reports/cucumber.json + ${project.build.directory}/jsonReports + + + **/*.json + + + ${project.build.directory}/classifications + + + sample.properties + other.properties + + false + + false + + false + + false + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + + + + + + + + + + + + diff --git a/maven/src/test/java/Listeners/ITestListenerImpl.java b/maven/src/test/java/Listeners/ITestListenerImpl.java new file mode 100644 index 0000000..dfd259e --- /dev/null +++ b/maven/src/test/java/Listeners/ITestListenerImpl.java @@ -0,0 +1,45 @@ +package Listeners; + +import org.testng.ITestContext; +import org.testng.ITestListener; +import org.testng.ITestResult; + +public class ITestListenerImpl implements ITestListener +{ + + public void onFinish(ITestContext arg0) { + // TODO Auto-generated method stub + + } + + public void onStart(ITestContext arg0) { + // TODO Auto-generated method stub + + } + + public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) { + // TODO Auto-generated method stub + + } + + public void onTestFailure(ITestResult arg0) { + // TODO Auto-generated method stub + + } + + public void onTestSkipped(ITestResult arg0) { + // TODO Auto-generated method stub + + } + + public void onTestStart(ITestResult arg0) { + // TODO Auto-generated method stub + + } + + public void onTestSuccess(ITestResult arg0) { + // TODO Auto-generated method stub + + } + +} diff --git a/maven/src/test/java/PageObjects/ContactsPage.java b/maven/src/test/java/PageObjects/ContactsPage.java new file mode 100644 index 0000000..3a0b318 --- /dev/null +++ b/maven/src/test/java/PageObjects/ContactsPage.java @@ -0,0 +1,381 @@ + +package PageObjects; +import java.io.File; +import java.util.Iterator; +import java.util.Set; +import java.util.concurrent.TimeUnit; +import org.openqa.selenium.By; +import org.openqa.selenium.StaleElementReferenceException; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.interactions.Actions; +import org.openqa.selenium.support.FindBy; +import org.openqa.selenium.support.How; +import org.openqa.selenium.support.PageFactory; +import org.openqa.selenium.support.ui.ExpectedConditions; +import org.openqa.selenium.support.ui.Select; +import org.openqa.selenium.support.ui.WebDriverWait; + +import Utilities.BrowserUtility; + + + +public class ContactsPage extends BrowserUtility{ + + + @FindBy(how=How.XPATH, using="//div[@class='navLinkMyKolsIn sprite_iconSet']") + WebElement tabContacts; + + + @FindBy(how=How.XPATH, using="((//*[contains(@id,'categoryCountry')])//tbody/tr[4]/td[1])") + WebElement filterCountry; + + @FindBy(how=How.XPATH, using="//*[@class='defaultProfileIcon ']") + WebElement HCPProfile; + + @FindBy(how=How.XPATH, using="//a[@target='_new']") + WebElement lnkViewProfile; + + @FindBy(how=How.XPATH, using="//p[contains(text(),'Australia')]") + WebElement txtHcpCountry; + + @FindBy(how=How.XPATH, using="//a[@class='addHcpIcon']") + WebElement addHcp; + + @FindBy(how=How.XPATH, using="//select[@name='salutation']") + WebElement drpSalutation; + + @FindBy(how=How.XPATH, using="//select[@name='country_id']") + WebElement drpCountry; + + @FindBy(how=How.XPATH, using="//select[@name='lang_id']") + WebElement drpLanguage; + + @FindBy(how=How.XPATH, using="//input[@name='first_name']") + WebElement txtFirstName; + + @FindBy(how=How.XPATH, using="//input[@name='last_name']") + WebElement txtLastName; + + @FindBy(how=How.XPATH, using="//input[@name='email']") + WebElement txtEmail; + + @FindBy(how=How.ID, using="save_data") + WebElement btnSave; + + @FindBy(how=How.XPATH, using="//tbody/tr[1]/td[2]/label[1]") + WebElement msgSalutationMandatory; + + @FindBy(how=How.XPATH, using="//tbody/tr[1]/td[4]/label[1]") + WebElement msgFirstNameMandatory; + + @FindBy(how=How.XPATH, using="//tbody/tr[1]/td[6]/label[1]") + WebElement msgLastNameMandatory; + + @FindBy(how=How.XPATH, using="//tbody/tr[2]/td[2]/label[1]") + WebElement msgEmailMandatory; + + @FindBy(how=How.XPATH, using="//tbody/tr[2]/td[4]/label[1]") + WebElement msgCountryMandatory; + + @FindBy(how=How.XPATH, using="//tbody/tr[3]/td[1]/a[3]") + WebElement btnCancel; + + @FindBy(how=How.XPATH, using="//tbody/tr[@id='kol3609']/td[1]/input[2]") + WebElement cbxKOL; + + @FindBy(how=How.XPATH, using="//div[@class='pdfExportIcon sprite_iconSet']") + WebElement lnkPDFExport; + + @FindBy(how=How.XPATH, using="//input[@name='full_profile']") + WebElement cbxFullProfile; + + @FindBy(how=How.XPATH, using="//input[@id='next']") + WebElement btnExport; + + @FindBy(how=How.XPATH, using="//div[@class='excelExportIcon sprite_iconSet']") + WebElement lnkExcelExport; + + @FindBy(how=How.XPATH, using="//span[contains(text(),'My Contacts')]") + WebElement drpAssigned; + + @FindBy(how=How.XPATH, using="//div[@class='assignProfileIcon sprite_iconSet']") + WebElement lnkAssign; + + @FindBy(how=How.XPATH, using="//input[@value='Select Users']") + WebElement drpUser; + + @FindBy(how=How.XPATH, using="//input[@value='Assign']") + WebElement btnAssign; + + @FindBy(how=How.XPATH, using="//li[@id='viewType_chzn_o_1']") + WebElement selectAllContacts; + + @FindBy(how=How.XPATH, using="//div[@id='emailIcon']") + WebElement lnkEmail; + + @FindBy(how=How.XPATH, using="//textarea[@id='to']") + WebElement txtAreaTo; + + @FindBy(how=How.XPATH, using="//input[@id='sendEmail']") + WebElement btnSend; + + @FindBy(how=How.XPATH, using="//div[@class='createListIcon sprite_iconSet']") + WebElement lnkList; + + @FindBy(how=How.XPATH, using="//select[@name='category_id']") + WebElement drpCategory; + //option[@id='catCss'] + + @FindBy(how=How.XPATH, using="//tbody/tr[2]/td[1]/p[1]/input[1]") + WebElement txtAreaAddNewCategory; + + @FindBy(how=How.XPATH, using="//select[@id='list_id']") + WebElement drpList; + + //option[@id='css1'] + + @FindBy(how=How.XPATH, using="//tbody/tr[4]/td[1]/p[1]/input[1]") + WebElement txtAreaListName; + + @FindBy(how=How.XPATH, using="//input[@id='saveKolList']") + WebElement btnSaveKOLList; + + @FindBy(how=How.XPATH, using="//input[@id='searchKeyword']") + WebElement txtAreaSearchKOL; + + @FindBy(how=How.XPATH, using="//label[@class='kolName']") + WebElement lnkKOLName; + + @FindBy(how=How.XPATH, using="//input[@id='unassignMeButton']") + WebElement btnUnAssign; + + + + + WebDriver driver; + String text; + + public ContactsPage(WebDriver driver) { + this.driver=driver; + PageFactory.initElements(driver, this); + } + + + public void clickContactTab() { + //Thread.sleep(3000); + tabContacts.click(); + } + + public void filterCountryName() throws InterruptedException { + Thread.sleep(3000); + filterCountry.click(); + text=filterCountry.getText(); + System.out.println("Country Name"+" "+text+" "+"filtering in Refine By section"); + + } + + public void clickOnHCPProfile() { + driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); + try{ + HCPProfile.click(); + } + catch(StaleElementReferenceException e) + { + HCPProfile.click(); + } + } + + public void clickViewProfile() throws InterruptedException { + Thread.sleep(2000); + lnkViewProfile.click(); + } + + public void verifyCountryName() { + String parent=driver.getWindowHandle(); + Set s= driver.getWindowHandles(); + IteratorI1=s.iterator(); + while(I1.hasNext()) { + String child=I1.next(); + if(!parent.equals(child)) { + driver.switchTo().window(child); + + String string = txtHcpCountry.getText(); + String[] parts = string.split(","); + String part = parts[1]; + String countryName=part.trim(); + System.out.println("Country Name displayed in bussiness card is"+" " +countryName); + if(countryName.equalsIgnoreCase(text)) { + System.out.println("HCP filter is successful"); + }else { + System.out.println("HCP filter is not successful"); + } + driver.close(); + } + } + driver.switchTo().window(parent); + } + + public void clickAddHcp() { + addHcp.click(); + } + + public void clickSaveButton() throws InterruptedException { + btnSave.click(); + Thread.sleep(3000); + + } + public void verifyErrorMessageShownForMandatoryFields() { + String msgSalutation=msgSalutationMandatory.getText(); + String msgFirstName=msgFirstNameMandatory.getText(); + String msgLastName=msgLastNameMandatory.getText(); + String msgEmail=msgEmailMandatory.getText(); + String msgCountry=msgCountryMandatory.getText(); + + if(msgSalutation.equalsIgnoreCase("Required")&&msgFirstName.equalsIgnoreCase("Required")&&msgLastName.equalsIgnoreCase("Required")&&msgEmail.equalsIgnoreCase("Required")&&msgCountry.equalsIgnoreCase("Required")) + { + System.out.println("Passed: Mandatory fields are shown as Required"); + }else { + System.out.println("Failed: Mandatory fields are not shown as Required"); + } + } + + public void clickCancelButton() { + btnCancel.click(); + } + public void verifyUserNavigationToContacts() { + String ContactsPageTitle=driver.getCurrentUrl(); + if(ContactsPageTitle.equalsIgnoreCase("https://testcolpal.aisselkolm.com/hills_staging/kols/list_kols_client_view")) + { + System.out.println("Passed: User is successfully navigated to contacts page on click of cancel button in add KOL page"); + }else { + System.out.println("Passed: User is not successfully navigated to contacts page on click of cancel button in add KOL page"); + } + } + public void selectAKOL() { + try{ + cbxKOL.click(); + } + catch(StaleElementReferenceException e) + { + cbxKOL.click(); + } + } + public void clickOnPDFLink() { + lnkPDFExport.click(); + } + public void verifyPDFFileDownload() throws InterruptedException { + Thread.sleep(3000); + File f1=new File("C:\\Users\\hp\\Downloads\\Adam Critsin.pdf"); + if(f1.exists()) { + System.out.println("KOL details downloaded as PDF file"); + f1.delete(); + } + } + + public void clickOnExcelLink() { + lnkExcelExport.click(); + } + + public void selectFullProfile() throws InterruptedException { + Thread.sleep(2000); + cbxFullProfile.click(); + } + + public void clickExportButton() { + btnExport.click(); + } + + public void verifyExcelFileDownload() throws InterruptedException { + Thread.sleep(3000); + File f1=new File("C:\\Users\\hp\\Downloads\\KTL_profiles.xlsx"); + if(f1.exists()) { + System.out.println("KOL Full profile exported as Excel file"); + f1.delete(); + } + } + + public void selectAllContacts() throws InterruptedException { + drpAssigned.click(); + Thread.sleep(2000); + Actions act = new Actions(driver); + act.moveToElement(driver.findElement(By.xpath("//li[@id='viewType_chzn_o_1']"))).click().build().perform(); + Thread.sleep(2000); + //drpAssigned.findElement(By.xpath("//li[@id='viewType_chzn_o_1']")).click(); + /*try{ + drpAssigned.findElement(By.xpath("//li[@id='viewType_chzn_o_1']")).click(); + System.out.println("Clicked on All contacts"); + } + catch(StaleElementReferenceException e) + { + drpAssigned.findElement(By.xpath("//li[@id='viewType_chzn_o_1']")).click(); + System.out.println("Clicked on All contantcs failed"); + }*/ + + } + + public void clickAssignLink() { + lnkAssign.click(); + } + + public void selectUser() throws InterruptedException { + //Thread.sleep(2000); + WebDriverWait wait=new WebDriverWait(driver, 20); + wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//input[@value='Select Users']"))).click(); + drpUser.findElement(By.xpath("//li[@id='users_chzn_o_1']")).click(); + + } + + public void clickAssignButton() throws InterruptedException { + btnAssign.click(); + Thread.sleep(2000); + } + + public void clickEmailLink() throws InterruptedException { + lnkEmail.click(); + Thread.sleep(1000); + } + + public void enterToEmail(String email) throws InterruptedException { + txtAreaTo.sendKeys(email); + Thread.sleep(1000); + } + + public void clickSendButton() { + btnSend.click(); + } + + public void clickListLink() { + lnkList.click(); + } + + public void selectAddNewCategory() throws InterruptedException { + Thread.sleep(2000); + Select category=new Select(drpCategory); + category.selectByVisibleText("Add New Category"); + txtAreaAddNewCategory.sendKeys("Rocky"); + } + + public void selectAddNewList() { + Select listName=new Select(drpList); + listName.selectByVisibleText("Add New List Name"); + txtAreaListName.sendKeys("Sam"); + } + + public void clickListSaveButton() throws InterruptedException { + btnSaveKOLList.click(); + Thread.sleep(2000); + + } + public void clickOnKOLName(String KOLName) throws InterruptedException { + txtAreaSearchKOL.sendKeys(KOLName); + Thread.sleep(2000); + lnkKOLName.click(); + } + + public void clickUnAssignButton() throws InterruptedException { + Thread.sleep(2000); + btnUnAssign.click(); + + } +} diff --git a/maven/src/test/java/PageObjects/DiscoverPage.java b/maven/src/test/java/PageObjects/DiscoverPage.java new file mode 100644 index 0000000..d0f348e --- /dev/null +++ b/maven/src/test/java/PageObjects/DiscoverPage.java @@ -0,0 +1,36 @@ +package PageObjects; + +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.support.FindBy; +import org.openqa.selenium.support.How; +import org.openqa.selenium.support.PageFactory; + +public class DiscoverPage { + + @FindBy(how =How.XPATH, using ="//div[@class='navLinkIdentify sprite_iconSet']") + WebElement tabDiscover; + + @FindBy(how =How.XPATH, using ="((//*[contains(@id,'categotySpecialty')])//tbody/tr)[3]") + WebElement lnkSpeciality; + + @FindBy(how =How.XPATH, using ="((//*[contains(@id,'kolsByRankingResultSet_frozen')])//tbody/tr[2])/td[2]") + WebElement profileSnapshot; + //p[@class='specialtyName'] + + WebDriver driver; + public DiscoverPage(WebDriver driver) { + this.driver = driver; + PageFactory.initElements(driver, this); + } + + public void clickDiscoverTab() { + tabDiscover.click(); + } + public void clickDermatologyLink() { + lnkSpeciality.click(); + } + public void clickProfileSnapshotIcon() { + profileSnapshot.click(); + } +} diff --git a/maven/src/test/java/PageObjects/HomePage.java b/maven/src/test/java/PageObjects/HomePage.java new file mode 100644 index 0000000..d1203a8 --- /dev/null +++ b/maven/src/test/java/PageObjects/HomePage.java @@ -0,0 +1,32 @@ +package PageObjects; + +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.support.FindBy; +import org.openqa.selenium.support.How; +import org.openqa.selenium.support.PageFactory; + + + +public class HomePage { + @FindBy(how =How.XPATH, using ="//a[@class='current']") + WebElement tabHome; + + @FindBy(how =How.XPATH, using ="//div[@class='navLinkIdentify sprite_iconSet']") + WebElement tabDiscover; + + WebDriver driver; + public HomePage(WebDriver driver) { + this.driver = driver; + PageFactory.initElements(driver, this); + } + + public void homeTab() { + if(tabHome.isDisplayed()) { + System.out.println("User successfully logged into Konectar Application"); + }else { + System.out.println("Login to Konectar application is not successful"); + } + } + +} diff --git a/maven/src/test/java/PageObjects/KOLProfilePage.java b/maven/src/test/java/PageObjects/KOLProfilePage.java new file mode 100644 index 0000000..5b5b8bf --- /dev/null +++ b/maven/src/test/java/PageObjects/KOLProfilePage.java @@ -0,0 +1,398 @@ +package PageObjects; + +import java.io.File; +import java.io.FileFilter; +import java.nio.file.DirectoryStream; +import java.nio.file.Path; +import java.util.Arrays; + +import org.openqa.selenium.By; +import org.openqa.selenium.JavascriptExecutor; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.support.FindBy; +import org.openqa.selenium.support.How; +import org.openqa.selenium.support.PageFactory; +import org.openqa.selenium.support.ui.ExpectedConditions; +import org.openqa.selenium.support.ui.WebDriverWait; + + +public class KOLProfilePage { + @FindBy(how=How.XPATH, using="//textarea[@id='user-note']") + WebElement txtAreaUserNote; + + @FindBy(how=How.XPATH, using="//button[@id='saveBtn']") + WebElement btnSave; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Add Training')]") + WebElement lnkAddTraining; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Add Honors and Awards')]") + WebElement lnkAddHonorsAndAwards; + + @FindBy(how=How.XPATH, using="//body/div[35]/div[1]/a[1]/span[1]") + WebElement iconCancel; + + @FindBy(how=How.XPATH, using="//a[@id='detailsForHint']") + WebElement tabDetails; + + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Add Location')]") + WebElement lnkAddLocation; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Add Phone')]") + WebElement lnkAddPhone; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Add Staff')]") + WebElement lnkAddStaff; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Add Email')]") + WebElement lnkAddEmail; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Add Assign')]") + WebElement lnkAddAssign; + + @FindBy(how=How.XPATH, using="(//span[@class='ui-icon ui-icon-closethick'])[19]") + WebElement iconCancelLocation; + + @FindBy(how=How.XPATH, using="(//span[@class='ui-icon ui-icon-closethick'])[20]") + WebElement iconCancelPhoneNumber; + + @FindBy(how=How.XPATH, using="(//span[@class='ui-icon ui-icon-closethick'])[21]") + WebElement iconCancelStaff; + + @FindBy(how=How.XPATH, using="(//span[@class='ui-icon ui-icon-closethick'])[22]") + WebElement iconCancelEmail; + + @FindBy(how=How.XPATH, using="(//span[@class='ui-icon ui-icon-closethick'])[24]") + WebElement iconCancelAssign; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Track')]") + WebElement tabTrack; + + @FindBy(how=How.XPATH, using="//a[@data-original-title='Export Interaction Detail into Excel format']") + WebElement exportIntractions; + + @FindBy(how=How.XPATH, using="//a[@id='report']") + WebElement tabReport; + + @FindBy(how=How.XPATH, using="//a[@id='chart']") + WebElement tabChart; + + @FindBy(how=How.XPATH, using="//a[@id='calender']") + WebElement tabCalendar; + + @FindBy(how=How.XPATH, using="//a[@id='payementType']") + WebElement tabPaymentType; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Add Payment')]") + WebElement lnkAddPayment; + + @FindBy(how=How.XPATH, using="//input[@value='Cancel']") + WebElement btnCancel; + + @FindBy(how=How.XPATH, using="//a[@id='conratctType']") + WebElement tabContract; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Add Contract')]") + WebElement lnkAddContract; + + @FindBy(how=How.XPATH, using="//body/div[23]/div[1]/a[1]/span[1]") + WebElement iconCancelContract; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Affiliations')]") + WebElement tabAffiliation; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Add Affiliation')]") + WebElement lnkAddAffiliation; + + @FindBy(how=How.XPATH, using="//body/div[20]/div[1]/a[1]/span[1]") + WebElement iconCancelAffiliation; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Reports Org')]") + WebElement tabReportOrg; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Reports Eng')]") + WebElement tabReportEng; + + @FindBy(how=How.XPATH, using="//tbody/tr[1]/td[4]/a[1]") + WebElement tabEvents; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Add New Event')]") + WebElement lnkAddNewEvent; + + @FindBy(how=How.XPATH, using="//body/div[25]/div[1]/a[1]/span[1]") + WebElement iconCancelEvent; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Events Charts')]") + WebElement tabEventsCharts; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Publications')]") + WebElement tabPublications; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Add New Publication')]") + WebElement lnkAddNewPublication; + + @FindBy(how=How.XPATH, using="//body/div[25]/div[1]/a[1]/span[1]") + WebElement iconCancelPublication; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Pubs Charts')]") + WebElement tabPubsCharts; + + @FindBy(how=How.XPATH, using="//a[@data-original-title='Export All Affilations Details into Excel format']") + WebElement exportAffiliation; + + @FindBy(how=How.XPATH, using="//a[@data-original-title='Export Events Details into Excel format']") + WebElement exportEvents; + + @FindBy(how=How.XPATH, using="//a[@data-original-title='Export Publications Details into Excel format']") + WebElement exportPublications; + + + + WebDriver driver; + + public KOLProfilePage(WebDriver driver) { + this.driver=driver; + PageFactory.initElements(driver, this); + } + + public void addUserNotes(String usernote) { + txtAreaUserNote.sendKeys(usernote); + WebDriverWait wait=new WebDriverWait(driver, 20); + wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//button[@id='saveBtn']"))).click(); + + } + + public void openAndCloseAddTraining() throws InterruptedException { + lnkAddTraining.click(); + Thread.sleep(4000); + //WebElement elementToClick = driver.findElement(By.xpath("/html[1]/body[1]/div[34]/div[1]/a[1]/span[1]")); + //((JavascriptExecutor)driver).executeScript("window.scrollTo(0,"+elementToClick.getLocation().y+")"); + //((JavascriptExecutor)driver).executeScript("window.scrollTo(0,"+elementToClick.getLocation().x+")"); + //elementToClick.click(); + /*WebDriverWait wait=new WebDriverWait(driver, 20); + wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//body/div[34]/div[1]/a[1]/span[1]"))).click(); + + */ + //Actions act = new Actions(driver); + //act.moveToElement(iconCancel).perform(); + + iconCancel.click(); + + //driver.navigate().refresh(); + //driver.switchTo().alert().dismiss(); + } + + public void openAndCloseAddHonorsAndAwards() throws InterruptedException{ + JavascriptExecutor js = (JavascriptExecutor) driver; + js.executeScript("window.scrollBy(0,1500)"); + Thread.sleep(4000); + lnkAddHonorsAndAwards.click(); + Thread.sleep(5000); + iconCancel.click(); + Thread.sleep(2000); + + /*WebDriverWait wait=new WebDriverWait(driver, 20); + wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//body/div[34]/div[1]/a[1]/span[1]"))).click(); + + Actions act = new Actions(driver); + act.moveToElement(iconCancel).click().build().perform();*/ + //WebElement elementToClick = driver.findElement(By.xpath("//body/div[34]/div[1]/a[1]/span[1]")); + //((JavascriptExecutor)driver).executeScript("window.scrollTo(0,"+elementToClick.getLocation().y+")"); + //elementToClick.click(); + //driver.navigate().refresh(); + //Thread.sleep(2000); + //driver.switchTo().alert().dismiss(); + } + + public void clickDetailsTab() { + tabDetails.click(); + } + + public void openAndCloseAddLocation() throws InterruptedException { + Thread.sleep(2000); + lnkAddLocation.click(); + Thread.sleep(2000); + iconCancelLocation.click(); + } + + public void openAndCloseAddPhone() throws InterruptedException { + lnkAddPhone.click(); + Thread.sleep(2000); + iconCancelPhoneNumber.click(); + } + + public void openAndCloseAddStaff() throws InterruptedException { + lnkAddStaff.click(); + Thread.sleep(2000); + iconCancelStaff.click(); + } + + public void openAndCloseAddEmail() throws InterruptedException { + JavascriptExecutor js = (JavascriptExecutor) driver; + js.executeScript("window.scrollBy(0,1000)"); + lnkAddEmail.click(); + Thread.sleep(2000); + iconCancelEmail.click(); + } + + public void openAndCloseAddAssign() throws InterruptedException { + JavascriptExecutor js = (JavascriptExecutor) driver; + js.executeScript("window.scrollBy(0,1000)"); + lnkAddAssign.click(); + Thread.sleep(2000); + iconCancelAssign.click(); + + } + + public void clickTrackTab() { + tabTrack.click(); + } + + public void exportInteractions() throws InterruptedException { + exportIntractions.click(); + Thread.sleep(1500); + File f1=new File("C:\\Users\\hp\\Downloads\\"); + for(File f:f1.listFiles()) { + if (f.getName().startsWith("Interactions_")) { + f.delete(); + System.out.println("Interaction details are exported successfully"); + } + } + + } + + public void clickReportTab() throws InterruptedException { + tabReport.click(); + Thread.sleep(2000); + } + + public void clickChartTab() { + tabChart.click(); + } + + public void clickCalendarTab() { + tabCalendar.click(); + } + + public void clickPaymentTab() throws InterruptedException { + tabPaymentType.click(); + Thread.sleep(2000); + } + + public void addAndCloseAddPayment() throws InterruptedException { + lnkAddPayment.click(); + Thread.sleep(2000); + btnCancel.click(); + + } + + public void clickContractTab() throws InterruptedException { + tabContract.click(); + Thread.sleep(2000); + } + + public void addAndCloseAddContract() throws InterruptedException { + lnkAddContract.click(); + Thread.sleep(2000); + iconCancelContract.click(); + } + + public void clickAffiliationTab() { + tabAffiliation.click(); + } + + public void openAndCloseAddAffiliation() throws InterruptedException { + Thread.sleep(2000); + WebDriverWait wait=new WebDriverWait(driver, 20); + wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[contains(text(),'Add Affiliation')]"))).click(); + //lnkAddAffiliation.click(); + Thread.sleep(1500); + iconCancelAffiliation.click(); + } + + public void clickReportsOrgTab() throws InterruptedException { + tabReportOrg.click(); + Thread.sleep(1000); + } + + public void clickReportEngTab() throws InterruptedException { + tabReportEng.click(); + Thread.sleep(1000); + } + + public void clickEventTab() { + tabEvents.click(); + } + + public void openAndCloseAddNewEvent() throws InterruptedException { + Thread.sleep(1000); + lnkAddNewEvent.click(); + Thread.sleep(4000); + iconCancelEvent.click(); + } + + public void clickTabEventsCharts() throws InterruptedException { + tabEventsCharts.click(); + Thread.sleep(1500); + } + + public void clickPublicationsTab() { + tabPublications.click(); + } + + public void openAndCloseAddNewPublication() throws InterruptedException { + Thread.sleep(1500); + lnkAddNewPublication.click(); + Thread.sleep(1500); + iconCancelPublication.click(); + } + + public void clickPubsCharts() throws InterruptedException { + tabPubsCharts.click(); + Thread.sleep(1500); + } + + public void exportAffiliations() throws InterruptedException { + exportAffiliation.click(); + Thread.sleep(1000); + File f1=new File("C:\\Users\\hp\\Downloads\\"); + for(File f:f1.listFiles()) { + if (f.getName().startsWith("Ktl_affiliations_")) { + f.delete(); + System.out.println("Affiliation details are exported successfully"); + } + } + + } + public void exportEvents() throws InterruptedException { + Thread.sleep(1000); + exportEvents.click(); + Thread.sleep(1000); + File f1=new File("C:\\Users\\hp\\Downloads\\"); + for(File f:f1.listFiles()) { + if (f.getName().startsWith("Ktl_events_")) { + f.delete(); + System.out.println("Event details are exported successfully"); + } + } + + } + + public void exportPublications() throws InterruptedException { + Thread.sleep(1000); + exportPublications.click(); + Thread.sleep(1000); + File f1=new File("C:\\Users\\hp\\Downloads\\"); + for(File f:f1.listFiles()) { + if (f.getName().startsWith("Ktl_publications_")) { + f.delete(); + System.out.println("Publication details are exported successfully"); + } + } + + } +} + + diff --git a/maven/src/test/java/PageObjects/LoginPage.java b/maven/src/test/java/PageObjects/LoginPage.java new file mode 100644 index 0000000..54c39cf --- /dev/null +++ b/maven/src/test/java/PageObjects/LoginPage.java @@ -0,0 +1,54 @@ +package PageObjects; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.support.FindBy; +import org.openqa.selenium.support.How; +import org.openqa.selenium.support.PageFactory; + +import Utilities.BrowserUtility; + + + +public class LoginPage extends BrowserUtility{ + @FindBy(how=How.ID, using ="userName") + WebElement txtUsername; + + @FindBy(how=How.ID, using ="passwordText") + WebElement txtPassword; + + @FindBy(how =How.XPATH, using ="//input[@name='submit']") + WebElement btnSignin; + + @FindBy(how =How.XPATH, using ="//span[contains(text(),'Invalid username or password.')]") + WebElement msgError; + + + + //WebDriver driver; + public LoginPage(WebDriver driver) { + BrowserUtility.driver = driver; + PageFactory.initElements(driver, this); + } + + public void enterUserName(String username) { + txtUsername.sendKeys(username); + + } + public void enterPassword(String password) { + txtPassword.sendKeys(password); + } + public void clickSignButton() { + btnSignin.click(); + } + public void verifyInvalidLoginErrorMessage() { + String errorMsg = msgError.getText(); + if(errorMsg.equalsIgnoreCase("Invalid username or password.")) { + System.out.println("Passed:Login to Konectar application is not successsful"); + }else { + System.out.println("Failed:Incorrect error message is displayed"); + } + } + + + +} diff --git a/maven/src/test/java/PageObjects/MyListsPage.java b/maven/src/test/java/PageObjects/MyListsPage.java new file mode 100644 index 0000000..45b775b --- /dev/null +++ b/maven/src/test/java/PageObjects/MyListsPage.java @@ -0,0 +1,71 @@ +package PageObjects; + +import org.openqa.selenium.By; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.support.FindBy; +import org.openqa.selenium.support.How; +import org.openqa.selenium.support.PageFactory; +import org.openqa.selenium.support.ui.ExpectedConditions; +import org.openqa.selenium.support.ui.WebDriverWait; + +import Utilities.BrowserUtility; + +public class MyListsPage extends BrowserUtility { + + @FindBy(how=How.XPATH, using="//div[@class='navLinkMyLists sprite_iconSet']") + WebElement tabMyLists; + + @FindBy(how=How.XPATH, using="//a[contains(text(),'Manage List')]") + WebElement tabManageList; + + @FindBy(how=How.XPATH, using="//tbody/tr[@id='8']/td[4]/div[2]/a[1]") + WebElement deleteCategory; + + @FindBy(how=How.XPATH, using="//input[@id='popup_ok']") + WebElement btnOK; + + @FindBy(how=How.XPATH, using="//td[contains(text(),'Rocky')]") + WebElement selectCategory; + + @FindBy(how=How.XPATH, using="//a[@onclick='deleteListName(567);']") + WebElement deleteListName; + + + + + WebDriver driver; + + public MyListsPage(WebDriver driver) { + this.driver=driver; + PageFactory.initElements(driver, this); + } + + public void clickMyListTab() { + tabMyLists.click(); + } + + public void clickManageList() { + tabManageList.click(); + } + + public void deleteCategory() { + deleteCategory.click(); + btnOK.click(); + } + + public void selectCategory() throws InterruptedException { + selectCategory.click(); + Thread.sleep(2000); + } + + public void deleteList() { + WebDriverWait wait=new WebDriverWait(driver, 20); + wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("((//*[contains(@id,'listNamesByCategoryResultSet')])//tbody/tr[2]/td[4]/div[2])"))).click(); + btnOK.click(); + //deleteListName.click(); + } + + + +} diff --git a/maven/src/test/java/PageObjects/OrganizationPage.java b/maven/src/test/java/PageObjects/OrganizationPage.java new file mode 100644 index 0000000..ab0b7d5 --- /dev/null +++ b/maven/src/test/java/PageObjects/OrganizationPage.java @@ -0,0 +1,155 @@ +package PageObjects; + +import java.io.File; + +import org.openqa.selenium.By; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.interactions.Actions; +import org.openqa.selenium.support.FindBy; +import org.openqa.selenium.support.How; +import org.openqa.selenium.support.PageFactory; + +import Utilities.BrowserUtility; + +public class OrganizationPage extends BrowserUtility{ + @FindBy(how=How.XPATH, using="//div[@class='navLinkOrg sprite_iconSet']") + WebElement tabOrganization; + + @FindBy(how=How.XPATH, using="((//*[contains(@id,'categoryCountry')])//tbody/tr[2]/td[1])") + WebElement lnkfilterCountry; + + @FindBy(how=How.XPATH, using="//tbody/tr[@id='org63892']/td[2]/div[1]/a[1]/img[1]") + WebElement lnkOrganizationProfileSnapShot; + + @FindBy(how=How.XPATH, using="//input[@id='orgName']") + WebElement txtAreaOrganizationName; + + @FindBy(how=How.XPATH, using="//input[@id='list']") + WebElement cbxOrganization; + + @FindBy(how=How.XPATH, using="//tbody/tr/td/p[3]") + WebElement txtCountry; + + @FindBy(how=How.XPATH, using="//div[@id='viewType_chzn']") + WebElement drpOrganization; + + @FindBy(how=How.XPATH, using="(//div[@class='autocompleteHeading'])[1]") + WebElement selectOrganization; + + @FindBy(how=How.XPATH, using="//div[@id='organizationExport']") + WebElement exportOrgExcel; + + @FindBy(how=How.XPATH, using="//a[@class='addOrgIcon']") + WebElement lnkNewAddOrg; + + @FindBy(how=How.XPATH, using="//input[@type='submit']") + WebElement btnSave; + + @FindBy(how=How.XPATH, using="//input[@type='button']") + WebElement btnCancel; + + + + String filteredCountry; + + WebDriver driver; + public OrganizationPage(WebDriver driver) { + this.driver = driver; + PageFactory.initElements(driver, this); + } + + public void clickOrganizationTab() { + tabOrganization.click(); + } + + public void clickCountryFilter() throws InterruptedException { + Thread.sleep(2000); + lnkfilterCountry.click(); + filteredCountry=lnkfilterCountry.getText(); + System.out.println("Country Name"+" "+filteredCountry+" "+"filtering in Refine By section"); + + Thread.sleep(2000); + } + + public void verifyCountryFilter() throws InterruptedException { + lnkOrganizationProfileSnapShot.click(); + Thread.sleep(2000); + String country=txtCountry.getText(); + System.out.println("Country Name displayed in Organization profile Snapshot is"+" " +country); + if(country.equalsIgnoreCase(filteredCountry)) { + System.out.println("Organizations are displayed based on Country filter"); + }else{ + System.out.println("Organizations are not displayed based on Country filter"); + } + } + + public void selectAnOrganization() { + cbxOrganization.click(); + } + + public void selectAllOrganization() throws InterruptedException { + Thread.sleep(2000); + drpOrganization.click(); + Actions act = new Actions(driver); + act.moveToElement(driver.findElement(By.xpath("//li[@id='viewType_chzn_o_1']"))).click().build().perform(); + Thread.sleep(2000); + } + + public void searchOrganization(String organization) throws InterruptedException { + txtAreaOrganizationName.sendKeys(organization); + Thread.sleep(2000); + selectOrganization.click(); + Thread.sleep(2000); + } + public void selectMyOrganization() throws InterruptedException { + drpOrganization.click(); + Thread.sleep(2000); + Actions act = new Actions(driver); + act.moveToElement(driver.findElement(By.xpath("//li[@id='viewType_chzn_o_0']"))).click().build().perform(); + Thread.sleep(2000); +} + public void clickExportButton() { + exportOrgExcel.click(); + } + + public void verifyExcelFileDownload() throws InterruptedException { + Thread.sleep(3000); + + File f1=new File("C:\\Users\\hp\\Downloads\\"); + /*if(f1.exists()) { + System.out.println("Organization is exported in Excel format"); + f1.delete(); + }*/ + for(File f:f1.listFiles()) { + if (f.getName().startsWith("Organization_")) { + f.delete(); + System.out.println("Organization details are exported successfully"); + } + } + } + + public void clickNewLinkToAddOrganization() { + lnkNewAddOrg.click(); + } + + public void clickSaveButton() throws InterruptedException { + btnSave.click(); + Thread.sleep(2000); + + } + + public void clickCancelButton() throws InterruptedException { + btnCancel.click(); + Thread.sleep(2000); + } + + public void verifyUserNavigation() { + String OrgURL=driver.getCurrentUrl(); + if(OrgURL.equalsIgnoreCase("https://testcolpal.aisselkolm.com/hills_staging/organizations/list_organizations_client_view")) { + System.out.println("User successfully navigated back to Organization"); + }else { + System.out.println("User is not successfully navigated back to Organization"); + } + } +} diff --git a/maven/src/test/java/StepDefinitions/ContactsTabSteps.java b/maven/src/test/java/StepDefinitions/ContactsTabSteps.java new file mode 100644 index 0000000..e98a5cd --- /dev/null +++ b/maven/src/test/java/StepDefinitions/ContactsTabSteps.java @@ -0,0 +1,202 @@ +package StepDefinitions; + +import java.util.Properties; + +import org.openqa.selenium.By; + +import PageObjects.ContactsPage; +import PageObjects.MyListsPage; +import Utilities.BrowserUtility; +import Utilities.PropertiesFileReader; +import io.cucumber.java.After; +import io.cucumber.java.Before; +import io.cucumber.java.en.And; +import io.cucumber.java.en.Then; +import io.cucumber.java.en.When; +import manager.PageObjectManager; + +public class ContactsTabSteps extends BrowserUtility{ + //ContactsPage contactsPage=pageObjectManager.getContactsPage(); + + PageObjectManager pageObjectManager=new PageObjectManager(driver); + ContactsPage contactsPage=pageObjectManager.getContactsPage(); + MyListsPage myListPage=pageObjectManager.getMyListsPage(); + //contactsPage=pageObjectManager.getContactsPage(); + + @After + public static void closeBrowser() throws Exception{ + if (driver == null) { + return; + } + driver.quit(); + driver = null; + } + + @And("user clicks on country filter in the contacts tab") + public void user_clicks_on_country_filter_in_the_contacts_tab() throws InterruptedException{ + //pageObjectManager = new PageObjectManager(driver); + + contactsPage.filterCountryName(); + + } + + @Then("user should display with filtered HCP's based country filter") + public void user_should_display_with_filtered_HCPs_based_on_country_filter() throws InterruptedException{ + contactsPage.clickOnHCPProfile(); + contactsPage.clickViewProfile(); + contactsPage.verifyCountryName(); + + } + + + + @And("user click on New icon to add KOL") + public void user_click_on_New_icon_to_add_KOL(){ + contactsPage.clickAddHcp(); + } + + @And("user click on Save button without adding details in add KOL page") + public void user_click_on_Save_button_without_adding_details_in_add_KOL_page() throws InterruptedException{ + contactsPage.clickSaveButton(); + + } + + @Then("Required error message shown to user for mandatory fields") + public void Required_error_message_shown_to_user_for_mandatory_fields() { + contactsPage.verifyErrorMessageShownForMandatoryFields(); + } + + @When("user clicks on Cancel button in add KOL page") + public void user_clicks_on_Cancel_button_in_add_KOL_page(){ + contactsPage.clickCancelButton(); + } + + @And("user should be taken to contacts page") + public void user_should_be_taken_to_contacts_page(){ + contactsPage.verifyUserNavigationToContacts(); + } + + @And("select a KOL by clicking on checkbox") + public void select_a_KOL_by_clicking_on_checkbox() { + contactsPage.selectAKOL(); + } + + @And("user click on PDF to download details of KOL") + public void user_click_on_PDF_to_download_details_of_KOL() { + contactsPage.clickOnPDFLink(); + } + + @Then("PDF should get download") + public void PDF_should_get_download() throws InterruptedException { + contactsPage.verifyPDFFileDownload(); + } + @And("user click on Excel to download details of KOL") + public void user_click_on_Excel_to_download_details_of_KOL() { + contactsPage.clickOnExcelLink(); + } + @And("user selects Full profile checkbox") + public void user_selects_Full_profile_checkbox() throws InterruptedException { + contactsPage.selectFullProfile(); + } + @And("user click on Export button") + public void user_clicks_on_Export_button() { + contactsPage.clickExportButton(); + } + @Then("KOL full profile Excel downloaded") + public void KOL_full_profile_Excel_downloaded() throws InterruptedException { + contactsPage.verifyExcelFileDownload(); + } + + @And("user selects All Contacts in Assigned dropdown") + public void user_selects_All_Contacts_in_Assigned_dropdown() throws InterruptedException { + contactsPage.selectAllContacts(); + } + + @And("user click on Assign link") + public void user_click_on_Assign_link() { + contactsPage.clickAssignLink(); + } + + @And("user select Hill Manager to assign") + public void user_select_Hill_Manager_to_assign() throws InterruptedException { + contactsPage.selectUser(); + } + + @And("user click on Assign button") + public void user_click_on_Assign_button() throws InterruptedException { + contactsPage.clickAssignButton(); + } + + @Then("KOL should get assign to Hill Manager") + public void KOL_should_get_assign_to_Hill_Manager() { + System.out.println("Passed: KOL is successfully assigned to Hill Manager"); + } + + @And ("user click on Email link") + public void user_click_on_Email_link() throws InterruptedException { + contactsPage.clickEmailLink(); + } + + @And ("user enter to email(.+)") + public void user_enter_to_email(String email) throws InterruptedException { + contactsPage.enterToEmail(email); + } + + @And ("user click on send button") + public void user_click_on_send_button() { + contactsPage.clickSendButton(); + } + + @Then ("KOL profile emailed successfully") + public void KOL_profilr_emailed_successfully() { + System.out.println("Passed: KOL profile succesfully sent to an Email"); + } + + @And("user click on List icon link") + public void user_click_on_List_icon_link() { + contactsPage.clickListLink(); + } + + @And("user add new category and list name") + public void user_add_new_category_and_list_name() throws InterruptedException{ + contactsPage.selectAddNewCategory(); + contactsPage.selectAddNewList(); + } + + @And("user click on Save button") + public void user_click_on_Save_button() throws InterruptedException { + contactsPage.clickListSaveButton(); + } + @And("user navigates to MyLists tab") + public void user_navigates_to_MyLists_tab() { + // myListPage=pageObjectManager.getMyListsPage(); + myListPage.clickMyListTab(); + + } + + @And("user click on Manage List tab") + public void user_click_on_Manage_Lists_tab() { + myListPage.clickManageList(); + } + + @And("user select category to be deleted") + public void user_select_category_to_be_deleted() throws InterruptedException { + myListPage.selectCategory(); + } + + @And("user delete the list name") + public void user_delete_the_list_name() { + myListPage.deleteList(); + } + + @And("user delete the category created") + public void user_delete_the_category_created() { + myListPage.deleteCategory(); + } + + @And("user click on Unassign button") + public void user_click_on_Unassign_button() throws InterruptedException { + contactsPage.clickUnAssignButton(); + } + +} diff --git a/maven/src/test/java/StepDefinitions/HillsCommonSteps.java b/maven/src/test/java/StepDefinitions/HillsCommonSteps.java new file mode 100644 index 0000000..d283662 --- /dev/null +++ b/maven/src/test/java/StepDefinitions/HillsCommonSteps.java @@ -0,0 +1,55 @@ +package StepDefinitions; +import java.util.Properties; +import org.openqa.selenium.WebDriver; + +import PageObjects.ContactsPage; +import PageObjects.LoginPage; +import Utilities.BrowserUtility; +import Utilities.PropertiesFileReader; +import io.cucumber.java.en.And; +import io.cucumber.java.en.Given; +import io.cucumber.java.en.When; +import manager.PageObjectManager; + + + +public class HillsCommonSteps extends BrowserUtility{ + + PropertiesFileReader obj = new PropertiesFileReader(); + ContactsPage contactsPage; + // WebDriver driver; + LoginPage loginPage; + + + + + @Given("^user login to hills application with (.+) and (.+)$") + public void user_login_to_konector_application_with_username_and_password(String username, String password) throws InterruptedException { + + Properties properties=obj.getProperty(); + driver=BrowserUtility.OpenBrowser(driver,properties.getProperty("browser.name"), properties.getProperty("browser.baseURL")); + PageObjectManager pageObjectManager=new PageObjectManager(driver); + pageObjectManager = new PageObjectManager(driver); + loginPage=pageObjectManager.getLoginPage(); + loginPage.enterUserName(username); + loginPage.enterPassword(password); + loginPage.clickSignButton(); + + } + @When("^user clicks contact tab$") + public void user_clicks_contacts_tab() throws InterruptedException { + PageObjectManager pageObjectManager=new PageObjectManager(driver); + contactsPage=pageObjectManager.getContactsPage(); + contactsPage.clickContactTab(); + + } + @And("user search and click on (.+)") + public void user_search_and_click_on_KOLName(String KOLName) throws InterruptedException { + contactsPage.clickOnKOLName(KOLName); + } + + + + + +} diff --git a/maven/src/test/java/StepDefinitions/KOLProfileSteps.java b/maven/src/test/java/StepDefinitions/KOLProfileSteps.java new file mode 100644 index 0000000..7a9a878 --- /dev/null +++ b/maven/src/test/java/StepDefinitions/KOLProfileSteps.java @@ -0,0 +1,163 @@ +package StepDefinitions; + +import PageObjects.KOLProfilePage; +import Utilities.BrowserUtility; +import io.cucumber.java.After; +import io.cucumber.java.en.And; +import manager.PageObjectManager; + +public class KOLProfileSteps extends BrowserUtility{ + + PageObjectManager pageObjectManager=new PageObjectManager(driver); + KOLProfilePage kolProfilePage=pageObjectManager.getKOLProfilePage(); + + @After + public static void closeBrowser() throws Exception{ + if (driver == null) { + return; + } + driver.quit(); + driver = null; + } + + @And("user add user notes(.+)") + public void user_add_user_notes(String usernote) { + kolProfilePage.addUserNotes(usernote); + } + @And("user click on add training and close the pop-up") + public void user_click_on_add_training_and_close_the_popup() throws InterruptedException{ + kolProfilePage.openAndCloseAddTraining(); + } + @And("user click on add Honors and Rewards and close the pop-up") + public void user_click_on_add_Honors_and_Rewards_and_close_the_popup()throws InterruptedException{ + kolProfilePage.openAndCloseAddHonorsAndAwards(); + } + @And("user navigated to details tab") + public void user_navigated_to_details_tab() { + kolProfilePage.clickDetailsTab(); + } + + + @And("user click on Add location and close the popup") + public void userclickonAddlocationandclosethepopup() throws InterruptedException { + kolProfilePage.openAndCloseAddLocation(); + } + + + @And("user click on Add phone and close the popup") + public void userclickonAddphoneandclosethepopup() throws InterruptedException { + kolProfilePage.openAndCloseAddPhone(); + } + + @And("user click on Add staff and close the popup") + public void userclickonAddstaffandclosethepopup() throws InterruptedException { + kolProfilePage.openAndCloseAddStaff(); + } + + @And("user click on Add email and close the popup") + public void userclickonAddemailandclosethepopup() throws InterruptedException { + kolProfilePage.openAndCloseAddEmail(); + } + + @And("user click on Add assign and close the popup") + public void userclickonAddassignandclosethepopup() throws InterruptedException { + kolProfilePage.openAndCloseAddAssign(); + } + @And("user click on Track tab") + public void userclickonTracktab() { + kolProfilePage.clickTrackTab(); + } + @And("user export interactions") + public void userexportinteractions() throws InterruptedException { + kolProfilePage.exportInteractions(); + } + @And("user click on Report tab within the interactions tab") + public void userclickonReporttabwithintheinteractionstab() throws InterruptedException { + kolProfilePage.clickReportTab(); + } + @And("user click on Chart tab within the interactions tab") + public void userclickonCharttabwithintheinteractionstab() { + kolProfilePage.clickChartTab(); + } + @And("user click on Calendar tab within the interactions tab") + public void userclickonCalendartabwithintheinteractionstab() { + kolProfilePage.clickCalendarTab(); + } + @And("user click on payments tab within track") + public void userclickonpaymentstabwithintrack() throws InterruptedException { + kolProfilePage.clickPaymentTab(); + } + @And("user click on Add payment and close the popup") + public void userclickonAddpaymentandclosethepopup() throws InterruptedException { + kolProfilePage.addAndCloseAddPayment(); + } + @And("user click on Add contract and close the popup") + public void userclickonAddcontractandclosethepopup() throws InterruptedException { + kolProfilePage.clickContractTab(); + kolProfilePage.addAndCloseAddContract(); + } + @And("user click on Affiliation tab") + public void userclickonAffiliationtab() { + kolProfilePage.clickAffiliationTab(); + } + + @And("user click on Add affiliation and close the popup") + public void userclickonAddaffiliationandclosethepopup() throws InterruptedException { + kolProfilePage.openAndCloseAddAffiliation(); + } + + @And("user click on Reports org tab") + public void userclickonReportsorgtab() throws InterruptedException { + kolProfilePage.clickReportsOrgTab(); + } + + @And("user click on Reports eng tab") + public void userclickonReportsengtab() throws InterruptedException { + kolProfilePage.clickReportEngTab(); + } + + @And("user click on Events tab") + public void userclickonEventstab() { + kolProfilePage.clickEventTab(); + } + + @And("user click on Add New Event and close the popup") + public void userclickonAddNewEventandclosethepopup() throws InterruptedException { + kolProfilePage.openAndCloseAddNewEvent(); + } + + @And("user click on Events Charts tab") + public void userclickonEventsChartstab() throws InterruptedException { + kolProfilePage.clickTabEventsCharts(); + } + + @And("user click on Publications tab") + public void userclickonPublicationstab() { + kolProfilePage.clickPublicationsTab(); + } + + @And("user click on Add New Publication and close the popup") + public void userclickonAddNewPublicationandclosethepopup() throws InterruptedException { + kolProfilePage.openAndCloseAddNewPublication(); + } + + @And("user click on Pubs Charts tab") + public void userclickonPubsChartstab() throws InterruptedException { + kolProfilePage.clickPubsCharts(); + } + + @And("user export all Affiliations in Excel") + public void userexportallAffiliationsinExcel() throws InterruptedException { + kolProfilePage.exportAffiliations(); + } + + @And("user export all Events in Excel") + public void userexportallEventsinExcel() throws InterruptedException { + kolProfilePage.exportEvents(); + + } + @And("user export all Publications in Excel") + public void userexportallPublicationsinExcel() throws InterruptedException { + kolProfilePage.exportPublications(); + } +} diff --git a/maven/src/test/java/StepDefinitions/MyListsSteps.java b/maven/src/test/java/StepDefinitions/MyListsSteps.java new file mode 100644 index 0000000..b6daa57 --- /dev/null +++ b/maven/src/test/java/StepDefinitions/MyListsSteps.java @@ -0,0 +1,15 @@ +package StepDefinitions; + +import PageObjects.ContactsPage; +import PageObjects.MyListsPage; +import Utilities.BrowserUtility; +import io.cucumber.java.After; +import io.cucumber.java.en.And; +import manager.PageObjectManager; + +public class MyListsSteps extends BrowserUtility{ + MyListsPage myListPage; + PageObjectManager pageObjectManager; + + +} diff --git a/maven/src/test/java/StepDefinitions/OrganizationSteps.java b/maven/src/test/java/StepDefinitions/OrganizationSteps.java new file mode 100644 index 0000000..7aafa74 --- /dev/null +++ b/maven/src/test/java/StepDefinitions/OrganizationSteps.java @@ -0,0 +1,89 @@ +package StepDefinitions; + +import PageObjects.OrganizationPage; +import Utilities.BrowserUtility; +import io.cucumber.java.After; +import io.cucumber.java.en.And; +import io.cucumber.java.en.Then; +import manager.PageObjectManager; + +public class OrganizationSteps extends BrowserUtility{ + + PageObjectManager pageObjectManager=new PageObjectManager(driver); + OrganizationPage organizationPage=pageObjectManager.getOrganizationPage(); + + @After + public static void closeBrowser() throws Exception{ + if (driver == null) { + return; + } + driver.quit(); + driver = null; + } + + @And("user click on Organization tab") + public void userclickonOrganizationtab() { + organizationPage.clickOrganizationTab(); + } + + @And("user clicks on country filter in the Organization tab") + public void userclicksoncountryfilterintheOrganizationtab() throws InterruptedException { + organizationPage.clickCountryFilter(); + } + + @Then("user should display with filtered KOLs based country filter") + public void usershoulddisplaywithfilteredKOLsbasedcountryfilter() throws InterruptedException { + organizationPage.verifyCountryFilter(); + } + + @And("user select a Organization by clicking checkbox") + public void userselectaOrganizationbyclickingcheckbox() { + organizationPage.selectAnOrganization(); + } + + @And("user selects All Organizations in Assigned dropdown") + public void userselectsAllOrganizationsinAssigneddropdown() throws InterruptedException { + organizationPage.selectAllOrganization(); + } + + @Then("Organization should get unassign from Hill Manager") + public void OrganizationshouldgetunassignfromHillManager() { + System.out.println("Passed: Organization successfully unassigned From Hill Manager"); + } + + @And("user search an Organization name(.+)") + public void usersearchanOrganizationname(String organization) throws InterruptedException { + organizationPage.searchOrganization(organization); + } + + @And("user selects My Organizations in Assigned dropdown") + public void userselectsMyOrganizationsinAssigneddropdown() throws InterruptedException { + organizationPage.selectMyOrganization(); + } + + @And("user click on Excel to export organization") + public void userclickonExceltoexportorganization() throws InterruptedException { + organizationPage.clickExportButton(); + organizationPage.verifyExcelFileDownload(); + } + + @And("user click on New link to add organization") + public void userclickonNewlinktoaddorganization() { + organizationPage.clickNewLinkToAddOrganization(); + } + + @And("user click on Save button without adding organization details") + public void userclickonSavebuttonwithoutaddingorganizationdetails() throws InterruptedException { + organizationPage.clickSaveButton(); + } + + @And("user click on Cancel button in new organization form") + public void userclickonCancelbuttoninneworganizationform() throws InterruptedException { + organizationPage.clickCancelButton(); + } + + @Then("user should be taken to organization home tab") + public void usershouldbetakentoorganizationhometab() { + organizationPage.verifyUserNavigation(); + } +} diff --git a/maven/src/test/java/StepDefinitions/loginSteps.java b/maven/src/test/java/StepDefinitions/loginSteps.java new file mode 100644 index 0000000..7592029 --- /dev/null +++ b/maven/src/test/java/StepDefinitions/loginSteps.java @@ -0,0 +1,64 @@ +package StepDefinitions; + +import java.util.Properties; +import java.util.concurrent.TimeUnit; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.chrome.ChromeDriver; + +import PageObjects.HomePage; +import PageObjects.LoginPage; +import Utilities.BrowserUtility; +import io.cucumber.java.After; +import io.cucumber.java.en.And; +import io.cucumber.java.en.Given; +import io.cucumber.java.en.Then; +import io.cucumber.java.en.When; +import Utilities.PropertiesFileReader; + + +public class loginSteps{ + WebDriver driver; + LoginPage login; + HomePage home; + PropertiesFileReader obj = new PropertiesFileReader(); + + + + @Given("^User navigates to Konectar Login page$") + public void user_navigates_to_Konectar_Login_page() throws InterruptedException { + Properties properties=obj.getProperty(); + driver=BrowserUtility.OpenBrowser(driver,properties.getProperty("browser.name"), properties.getProperty("browser.baseURL")); + } + + @When("^User enter UserName(.+)and Password(.+)$") + public void user_enter_UserName_and_Password(String username, String password) throws Throwable { + login = new LoginPage(driver); + login.enterUserName(username); + login.enterPassword(password); + + } + + @And("^User click on Sign In button$") + public void user_click_on_Sign_In_button() { + + login.clickSignButton(); + + } + + @Then("^Home page is displayed$") + public void home_page_is_displayed(){ + home = new HomePage(driver); + home.homeTab(); + driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS); + driver.close(); + + } + @Then("^Invalid login error message should be shown to user$") + public void Invalid_login_error_message_should_be_shown_to_user() { + login.verifyInvalidLoginErrorMessage(); + driver.close(); + + } + + +} diff --git a/maven/src/test/java/StepDefinitions/testRunner.java b/maven/src/test/java/StepDefinitions/testRunner.java new file mode 100644 index 0000000..353cf52 --- /dev/null +++ b/maven/src/test/java/StepDefinitions/testRunner.java @@ -0,0 +1,18 @@ +package StepDefinitions; + +import org.junit.runner.RunWith; + +import io.cucumber.junit.Cucumber; +import io.cucumber.junit.CucumberOptions; + + +@RunWith(Cucumber.class) +@CucumberOptions(features="src\\test\\resources\\Features", glue= {"StepDefinitions"}, +plugin= {"pretty", "html:target/cucumber-html.report","json:target/cucumber-reports/cucumber.json","junit:target/cucumber-reports/cucumber.xml","com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"}, + +monochrome=true, tags="@AddOrg" + ) + +public class testRunner { + +} diff --git a/maven/src/test/java/Utilities/BrowserUtility.java b/maven/src/test/java/Utilities/BrowserUtility.java new file mode 100644 index 0000000..c254c99 --- /dev/null +++ b/maven/src/test/java/Utilities/BrowserUtility.java @@ -0,0 +1,36 @@ +package Utilities; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.chrome.ChromeDriver; +import org.openqa.selenium.firefox.FirefoxDriver; + + +public class BrowserUtility{ + + public static WebDriver driver; + public static WebDriver OpenBrowser(WebDriver driver,String browserName,String url) throws InterruptedException + { + if(browserName.equalsIgnoreCase("Chrome")) + { + //C:\\Users\\hp\\eclipse-workspace\\com.testautomation.konectar\\Drivers\\chromedriver.exe + System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir")+"/Drivers/chromedriver/chromedriver.exe"); + driver=new ChromeDriver(); + driver.manage().window().maximize(); + driver.get(url); + Thread.sleep(2000); + return driver; + } + else if(browserName.equalsIgnoreCase("firefox")) { + System.setProperty("webdriver.gecko.driver", System.getProperty("user.dir")+"/Drivers/geckodriver/geckodriver.exe"); + driver=new FirefoxDriver(); + driver.manage().window().maximize(); + driver.get(url); + return driver; + } + + return null; + +} + + + +} diff --git a/maven/src/test/java/Utilities/PropertiesFileReader.java b/maven/src/test/java/Utilities/PropertiesFileReader.java new file mode 100644 index 0000000..f768ea1 --- /dev/null +++ b/maven/src/test/java/Utilities/PropertiesFileReader.java @@ -0,0 +1,22 @@ +package Utilities; + +import java.io.FileInputStream; +import java.util.Properties; + +public class PropertiesFileReader { + + public Properties getProperty() { + { + FileInputStream inputStream=null; + Properties properties = new Properties(); + try { + properties.load(new FileInputStream("resources/browser-config.properties")); + }catch(Exception e) { + System.out.println("Exception:"+e); + } + return properties; + } + + } + +} diff --git a/maven/src/test/java/manager/PageObjectManager.java b/maven/src/test/java/manager/PageObjectManager.java new file mode 100644 index 0000000..ae9426a --- /dev/null +++ b/maven/src/test/java/manager/PageObjectManager.java @@ -0,0 +1,48 @@ +package manager; + +import org.openqa.selenium.WebDriver; + +import PageObjects.ContactsPage; +import PageObjects.HomePage; +import PageObjects.KOLProfilePage; +import PageObjects.LoginPage; +import PageObjects.MyListsPage; +import PageObjects.OrganizationPage; + +public class PageObjectManager { + + public WebDriver driver; + LoginPage loginPage; + HomePage homePage; + ContactsPage contactsPage; + MyListsPage myListPage; + KOLProfilePage kolProfilePage; + OrganizationPage organizationPage; + + public PageObjectManager(WebDriver driver) { + this.driver = driver; + } + + public LoginPage getLoginPage() { + return (loginPage==null) ? loginPage = new LoginPage(driver):loginPage; + } + public HomePage getHomePage() { + return (homePage==null) ? homePage = new HomePage(driver):homePage; + } + public ContactsPage getContactsPage() { + return (contactsPage==null) ? contactsPage = new ContactsPage(driver):contactsPage; + } + public MyListsPage getMyListsPage() { + return (myListPage==null) ? myListPage = new MyListsPage(driver):myListPage; + } + public KOLProfilePage getKOLProfilePage() { + return (kolProfilePage==null) ? kolProfilePage = new KOLProfilePage(driver):kolProfilePage; + } + + public OrganizationPage getOrganizationPage() { + return (organizationPage==null) ? organizationPage = new OrganizationPage(driver):organizationPage; + } + + + +} diff --git a/maven/src/test/resources/Features/HillsLogin.feature b/maven/src/test/resources/Features/HillsLogin.feature new file mode 100644 index 0000000..5a2c855 --- /dev/null +++ b/maven/src/test/resources/Features/HillsLogin.feature @@ -0,0 +1,9 @@ +Feature: Login functionality + +@LoginTest +Scenario Outline: User Login to Hills Application +Given user login to hills application with and + +Examples: +|username|password| +|hillmgr|Ss@hills1| \ No newline at end of file diff --git a/maven/src/test/resources/Features/KOLProfile.feature b/maven/src/test/resources/Features/KOLProfile.feature new file mode 100644 index 0000000..39814ff --- /dev/null +++ b/maven/src/test/resources/Features/KOLProfile.feature @@ -0,0 +1,105 @@ +Feature: KOL Profile functionality verification + +Scenario Outline: Verify the user can go to KOL profile from contacts page +Given user login to hills application with and +When user clicks contact tab +And user search and click on + +#Provide complete KOL Name in example section. Partial KOL Name search may fail the script +Examples: +|username|password|KOLName| +|hillmgr|Ss@hills2|Andry M Jackson| + +@ProfileActions +Scenario Outline: Verify the user can perform different actions within profile summary +Given user login to hills application with and +When user clicks contact tab +And user search and click on +And user add user notes +And user click on add training and close the pop-up +And user click on add Honors and Rewards and close the pop-up + +#Provide complete KOL Name in example section. Partial KOL Name search may fail the script +Examples: +|username|password|KOLName |usernote| +|hillmgr|Ss@hills2|Andry M Jackson|Testing| + +@ProfileAct +Scenario Outline: Verify the user can perform different actions within details tab +Given user login to hills application with and +When user clicks contact tab +And user search and click on +And user navigated to details tab +And user click on Add location and close the popup +And user click on Add phone and close the popup +And user click on Add staff and close the popup +And user click on Add email and close the popup +And user click on Add assign and close the popup + +#Provide complete KOL Name in example section. Partial KOL Name search may fail the script +Examples: +|username|password|KOLName | +|hillmgr|Ss@hills2|Andry M Jackson| + +@Track +Scenario Outline: Verify the user can perform different actions within track tab +Given user login to hills application with and +When user clicks contact tab +And user search and click on +And user click on Track tab +And user export interactions +And user click on Report tab within the interactions tab +And user click on Chart tab within the interactions tab +And user click on Calendar tab within the interactions tab +And user click on payments tab within track +And user click on Add payment and close the popup +And user click on Add contract and close the popup + + +Examples: +|username|password|KOLName | +|hillmgr|Ss@hills2|Andry M Jackson| + +@Affiliation +Scenario Outline: Verify the user can perform different actions within affiliation tab +Given user login to hills application with and +When user clicks contact tab +And user search and click on +And user click on Affiliation tab +And user click on Add affiliation and close the popup +And user export all Affiliations in Excel +And user click on Reports org tab +And user click on Reports eng tab + +Examples: +|username|password|KOLName | +|hillmgr|Ss@hills2|Andry M Jackson| + +@Events +Scenario Outline: Verify the user can perform different actions within affiliation tab +Given user login to hills application with and +When user clicks contact tab +And user search and click on +And user click on Events tab +And user click on Add New Event and close the popup +And user export all Events in Excel +And user click on Events Charts tab + +Examples: +|username|password|KOLName | +|hillmgr|Ss@hills2|Andry M Jackson| + +@Publications +Scenario Outline: Verify the user can perform different actions within affiliation tab +Given user login to hills application with and +When user clicks contact tab +And user search and click on +And user click on Publications tab +And user click on Add New Publication and close the popup +And user export all Publications in Excel +And user click on Pubs Charts tab + +Examples: +|username|password|KOLName | +|hillmgr|Ss@hills2|Andry M Jackson| + diff --git a/maven/src/test/resources/Features/Organization.feature b/maven/src/test/resources/Features/Organization.feature new file mode 100644 index 0000000..e6da467 --- /dev/null +++ b/maven/src/test/resources/Features/Organization.feature @@ -0,0 +1,58 @@ +Feature: Organization tab functionality verification + +Scenario Outline: Verify user can perform multiple actions in Organization tab +Given user login to hills application with and +And user click on Organization tab +And user clicks on country filter in the Organization tab +Then user should display with filtered KOLs based country filter + +Examples: +|username|password| +|hillmgr|Ss@hills2| + +@AssignOrg +Scenario Outline: Verify user can assign and unassign Organization to KOL +Given user login to hills application with and +And user click on Organization tab +And user selects All Organizations in Assigned dropdown +And user search an Organization name +And user select a Organization by clicking checkbox +And user click on Assign link +And user select Hill Manager to assign +And user click on Assign button +And user selects My Organizations in Assigned dropdown +And user select a Organization by clicking checkbox +And user click on Assign link +And user click on Unassign button +Then Organization should get unassign from Hill Manager + +Examples: +|username|password|orgnization| +|hillmgr|Ss@hills2|4 Paws Veterinary Care| + +@exportexcelorg +Scenario Outline: Verify user can download organization in excel format +Given user login to hills application with and +And user click on Organization tab +And user selects All Organizations in Assigned dropdown +And user search an Organization name +And user select a Organization by clicking checkbox +And user click on Excel to export organization + +Examples: +|username|password|orgnization| +|hillmgr|Ss@hills2|4 Paws Veterinary Care| + +@AddOrg +Scenario Outline: Verify user can download organization in excel format +Given user login to hills application with and +And user click on Organization tab +And user click on New link to add organization +And user click on Save button without adding organization details +And user click on Cancel button in new organization form +Then user should be taken to organization home tab + + +Examples: +|username|password| +|hillmgr|Ss@hills2| \ No newline at end of file diff --git a/maven/src/test/resources/Features/contacts.feature b/maven/src/test/resources/Features/contacts.feature new file mode 100644 index 0000000..b0a635e --- /dev/null +++ b/maven/src/test/resources/Features/contacts.feature @@ -0,0 +1,117 @@ +Feature: Contacts tab functionality + + +Scenario Outline: Verify user can apply country filter to KOL +Given user login to hills application with and +When user clicks contact tab +And user clicks on country filter in the contacts tab +Then user should display with filtered HCP's based country filter + +Examples: +|username|password| +|hillmgr|Ss@hills2| + +Scenario Outline: Verify error message display for mandatory fields in Add new KOL +Given user login to hills application with and +When user clicks contact tab +And user click on New icon to add KOL +And user click on Save button without adding details in add KOL page +Then Required error message shown to user for mandatory fields +When user clicks on Cancel button in add KOL page +Then user should be taken to contacts page + +Examples: +|username|password| +|hillmgr|Ss@hills2| + +@File +Scenario Outline: Verify user can download KOL PDF profile +Given user login to hills application with and +When user clicks contact tab +And select a KOL by clicking on checkbox +And user click on PDF to download details of KOL +Then PDF should get download + +Examples: +|username|password| +|hillmgr|Ss@hills2| + +@ExcelFile +Scenario Outline: Verify user can download KOL full profile as a Excel +Given user login to hills application with and +When user clicks contact tab +And select a KOL by clicking on checkbox +And user click on Excel to download details of KOL +And user selects Full profile checkbox +And user click on Export button +Then KOL full profile Excel downloaded + +Examples: +|username|password| +|hillmgr|Ss@hills2| + +@Assign +Scenario Outline: Verify user can unassign and assign Hill Manager to KOL +Given user login to hills application with and +When user clicks contact tab +And select a KOL by clicking on checkbox +And user click on Assign link +And user click on Unassign button +And user selects All Contacts in Assigned dropdown +And select a KOL by clicking on checkbox +And user click on Assign link +And user select Hill Manager to assign +And user click on Assign button +Then KOL should get assign to Hill Manager + +Examples: +|username|password| +|hillmgr|Ss@hills2| + +@Email +Scenario Outline: Verify user can send KOL profile in a Mail +Given user login to hills application with and +When user clicks contact tab +And select a KOL by clicking on checkbox +And user click on Email link +And user enter to email +And user click on send button +Then KOL profile emailed successfully + +Examples: +|username|password|email| +|hillmgr|Ss@hills2|test@test.com| + +@List +Scenario Outline: Verify user can create KOL list and delete list +Given user login to hills application with and +When user clicks contact tab +And select a KOL by clicking on checkbox +And user click on List icon link +And user add new category and list name +And user click on Save button +And user navigates to MyLists tab +And user click on Manage List tab +And user select category to be deleted +And user delete the list name +And user delete the category created + + +Examples: +|username|password|email| +|hillmgr|Ss@hills2|test@test.com| + + + +#Scenario Outline: Verify user can assign new KOL +#Given user login to hills application with and +#When user clicks contact tab +#And user click on New icon to assign KOL +#And user add KOL and and +#And user select and and +#And user click on save button +#Then user should get success message + +#Examples: +#|username|password|firstname|lastname|email |salutation|country|language| +#|hillmgr|Ss@hills1|Andrew |Tylor |andrew@gmail.com| | | | diff --git a/maven/src/test/resources/Features/login.feature b/maven/src/test/resources/Features/login.feature new file mode 100644 index 0000000..8d6b3eb --- /dev/null +++ b/maven/src/test/resources/Features/login.feature @@ -0,0 +1,26 @@ +Feature: Login functionality check + + +@ValidTest +Scenario Outline: Verify user login with valid credentials +Given user login to konector application with and +When user click on Discover tab +And user filters Speciality as Dermatology +And user clicks on Pro + +Examples: +|username|password| +|kon@test.com|konectarA@51| +#|liteuser@test.com|konectarA@51| + +@InvalidTest +Scenario Outline: Verify user login with invalid credentials +Given User navigates to Konectar Login page +When User enter UserName and Password +And User click on Sign In button +Then Invalid login error message should be shown to user + +Examples: +|username|password| +|kon@test.com|konectarA@52| +#|kone@test.com|konectar@51| diff --git a/maven/src/test/resources/extent-config.xml b/maven/src/test/resources/extent-config.xml new file mode 100644 index 0000000..0f20a96 --- /dev/null +++ b/maven/src/test/resources/extent-config.xml @@ -0,0 +1,42 @@ + + + + + + standard + + + + UTF-8 + + + + https + + + Extent + + + Automation Report + + + + bottom + + + + + + + + + + + + \ No newline at end of file diff --git a/maven/src/test/resources/extent.properties b/maven/src/test/resources/extent.properties new file mode 100644 index 0000000..bac1f9d --- /dev/null +++ b/maven/src/test/resources/extent.properties @@ -0,0 +1,3 @@ +extent.reporter.html.start=true +extent.reporter.html.config=src/test/resources/extent-config.xml +extent.reporter.html.out=target/cucumber-reports/advanced-reports/extentreports/extent.html \ No newline at end of file diff --git a/maven/target/.gitignore b/maven/target/.gitignore new file mode 100644 index 0000000..4569837 --- /dev/null +++ b/maven/target/.gitignore @@ -0,0 +1,2 @@ +/classes/ +/test-classes/ diff --git a/maven/target/cucumber-html.report/formatter.js b/maven/target/cucumber-html.report/formatter.js new file mode 100644 index 0000000..ef2ed8d --- /dev/null +++ b/maven/target/cucumber-html.report/formatter.js @@ -0,0 +1,257 @@ +var CucumberHTML = {}; + +CucumberHTML.DOMFormatter = function(rootNode) { + var currentUri; + var currentFeature; + var currentElement; + var currentSteps; + + var currentStepIndex; + var currentStep; + var $templates = $(CucumberHTML.templates); + + this.uri = function(uri) { + currentUri = uri; + }; + + this.feature = function(feature) { + currentFeature = blockElement(rootNode, feature, 'feature'); + }; + + this.background = function(background) { + currentElement = featureElement(background, 'background'); + currentStepIndex = 1; + }; + + this.scenario = function(scenario) { + currentElement = featureElement(scenario, 'scenario'); + currentStepIndex = 1; + }; + + this.scenarioOutline = function(scenarioOutline) { + currentElement = featureElement(scenarioOutline, 'scenario_outline'); + currentStepIndex = 1; + }; + + this.step = function(step) { + var stepElement = $('.step', $templates).clone(); + stepElement.appendTo(currentSteps); + populate(stepElement, step, 'step'); + + if (step.doc_string) { + docString = $('.doc_string', $templates).clone(); + docString.appendTo(stepElement); + // TODO: use a syntax highlighter based on the content_type + docString.text(step.doc_string.value); + } + if (step.rows) { + dataTable = $('.data_table', $templates).clone(); + dataTable.appendTo(stepElement); + var tBody = dataTable.find('tbody'); + $.each(step.rows, function(index, row) { + var tr = $('').appendTo(tBody); + $.each(row.cells, function(index, cell) { + var td = $('' + cell + '').appendTo(tBody); + }); + }); + } + }; + + this.examples = function(examples) { + var examplesElement = blockElement(currentElement.children('details'), examples, 'examples'); + var examplesTable = $('.examples_table', $templates).clone(); + examplesTable.appendTo(examplesElement.children('details')); + + $.each(examples.rows, function(index, row) { + var parent = index == 0 ? examplesTable.find('thead') : examplesTable.find('tbody'); + var tr = $('').appendTo(parent); + $.each(row.cells, function(index, cell) { + var td = $('' + cell + '').appendTo(tr); + }); + }); + }; + + this.match = function(match) { + currentStep = currentSteps.find('li:nth-child(' + currentStepIndex + ')'); + currentStepIndex++; + }; + + this.result = function(result) { + currentStep.addClass(result.status); + if (result.error_message != '') { + populateStepError(currentStep, result.error_message); + } + currentElement.addClass(result.status); + var isLastStep = currentSteps.find('li:nth-child(' + currentStepIndex + ')').length == 0; + if (isLastStep) { + if (currentSteps.find('.failed').length == 0) { + // No failed steps. Collapse it. + currentElement.find('details').prop('open', false); + } else { + currentElement.find('details').attr('open', 'open'); + } + } + }; + + this.embedding = function(mimeType, data, name) { + var nameHtml; + if (!name) { + nameHtml = ""; + } else { + nameHtml = "

" + name + "

"; + } + if (currentStepIndex == 1) { + this.dummyStep(); + } + if (mimeType.match(/^image\//)) + { + currentStep.append(nameHtml + ''); + } + else if (mimeType.match(/^video\//)) + { + currentStep.append(nameHtml + ''); + } + else if (mimeType.match(/^text\//)) + { + this.write(nameHtml + data); + } + }; + + this.write = function(text) { + if (currentStepIndex == 1) { + this.dummyStep(); + } + currentStep.append('
' + text + '
'); + }; + + this.before = function(before) { + this.handleHookResult(before); + }; + + this.after = function(after) { + this.handleHookResult(after); + }; + + this.beforestep = function(beforestep) { + this.handleHookResult(beforestep); + }; + + this.afterstep = function(afterstep) { + this.handleHookResult(afterstep); + }; + + this.handleHookResult = function(hook) { + if (hook.status != 'passed' && hook.error_message != '') { + this.dummyStep(); + currentStep.addClass(hook.status); + currentElement.addClass(hook.status); + populateStepError(currentStep, hook.error_message); + } + }; + + this.dummyStep = function() { + var stepElement = $('.step', $templates).clone(); + stepElement.appendTo(currentSteps); + populate(stepElement, {keyword: '', name: ''}, 'step'); + currentStep = currentSteps.find('li:nth-child(' + currentStepIndex + ')'); + currentStepIndex++; + }; + + function featureElement(statement, itemtype) { + var e = blockElement(currentFeature.children('details'), statement, itemtype); + + currentSteps = $('.steps', $templates).clone(); + currentSteps.appendTo(e.children('details')); + + return e; + } + + function blockElement(parent, statement, itemtype) { + var e = $('.blockelement', $templates).clone(); + e.appendTo(parent); + return populate(e, statement, itemtype); + } + + function populate(e, statement, itemtype) { + populateTags(e, statement.tags); + populateComments(e, statement.comments); + e.find('.keyword').text(statement.keyword); + e.find('.name').text(statement.name); + e.find('.description').text(statement.description); + e.attr('itemtype', 'http://cukes.info/microformat/' + itemtype); + e.addClass(itemtype); + return e; + } + + function populateComments(e, comments) { + if (comments !== undefined) { + var commentsNode = $('.comments', $templates).clone().prependTo(e.find('.header')); + $.each(comments, function(index, comment) { + var commentNode = $('.comment', $templates).clone().appendTo(commentsNode); + commentNode.text(comment.value); + }); + } + } + + function populateTags(e, tags) { + if (tags !== undefined) { + var tagsNode = $('.tags', $templates).clone().prependTo(e.find('.header')); + $.each(tags, function(index, tag) { + var tagNode = $('.tag', $templates).clone().appendTo(tagsNode); + tagNode.text(tag.name); + }); + } + } + + function populateStepError(e, error) { + if (error !== undefined) { + errorNode = $('.error', $templates).clone().appendTo(e); + errorNode.text(error); + } + } +}; + +CucumberHTML.templates = '
\ +
\ +
\ + \ + Keyword: This is the block name\ + \ +
The description goes here
\ +
\ +
\ +\ +
    \ +\ +
      \ +
    1. KeywordName
    2. \ +
    \ +\ +
    \
    +\
    +  
    \
    +\
    +  \
    +    \
    +    \
    +  
    \ +\ + \ + \ + \ +
    \ +\ +
    \ + \ +
    \ +
    \ + \ +
    \ +
    \ +
    '; + +if (typeof module !== 'undefined') { + module.exports = CucumberHTML; +} else if (typeof define !== 'undefined') { + define([], function() { return CucumberHTML; }); +} diff --git a/maven/target/cucumber-html.report/index.html b/maven/target/cucumber-html.report/index.html new file mode 100644 index 0000000..982462d --- /dev/null +++ b/maven/target/cucumber-html.report/index.html @@ -0,0 +1,14 @@ + + + + + Cucumber Features + + + + + + +
    + + diff --git a/maven/target/cucumber-html.report/jquery-3.4.1.min.js b/maven/target/cucumber-html.report/jquery-3.4.1.min.js new file mode 100644 index 0000000..a1c07fd --- /dev/null +++ b/maven/target/cucumber-html.report/jquery-3.4.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="
    ",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0 section { + margin-left: 20px; +} + +.cucumber-report ol.steps { + list-style-type: none; + margin-top: 0; + margin-bottom: 0; +} + +.cucumber-report .step .embedded-text { + background: #dddddd; +} + +.cucumber-report .doc_string { + margin: 0 0 0 20px; +} + +.cucumber-report table { + border-collapse: collapse; + border: 1px; + border-style: solid; +} + +.cucumber-report td, .cucumber-report th { + border: 1px; + border-style: solid; + padding-left: 4px; + padding-right: 4px; +} + +.cucumber-report table { + margin-left: 20px; +} + +.cucumber-report thead { + background-color: #C0C0C0; +} + +.cucumber-report .passed { + background-color: #C5D88A; +} + +.cucumber-report .undefined, .cucumber-report .pending { + background-color: #EAEC2D; +} + +.cucumber-report .skipped { + background-color: #2DEAEC; +} + +.cucumber-report .failed { + background-color: #D88A8A; +} + +.cucumber-report .tags { + display: inline; +} + +.cucumber-report .tag { + margin-right: 0.25em; + color: #246ac1; +} + +.cucumber-report .comments { + display: inline; +} + +.cucumber-report .comment { + margin: 0; + padding: 0; +} + +.cucumber-report .error { + margin: .2em .75em; + padding: .2em; + border: 1px solid #900; + background-color: #EDBBBB; +} + +#cucumber-templates { + display: none; +} diff --git a/maven/target/cucumber-reports/advanced-reports/extentreports/extent.html b/maven/target/cucumber-reports/advanced-reports/extentreports/extent.html new file mode 100644 index 0000000..95d03af --- /dev/null +++ b/maven/target/cucumber-reports/advanced-reports/extentreports/extent.html @@ -0,0 +1,443 @@ + + + + + + + + + + + + + + + + + + + + + + + + Extent + + + + + + +
    + desktop_windows +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    Features
    +
    + +
    +
    + 1 feature(s) passed +
    +
    + 0 feature(s) failed, 0 skipped +
    +
    +
    +
    +
    +
    Scenarios
    +
    + +
    +
    + 1 scenario(s) passed +
    +
    + 0 scenario(s) failed, + 0 skipped, + 0 others +
    +
    +
    +
    +
    +
    Steps
    +
    + +
    +
    + 6 step(s) passed +
    +
    + 0 scenario(s) failed, + 0 skipped, + 0 others +
    +
    +
    +
    +
    +
    +
    +
    Timeline (seconds)
    +
    + +
    +
    +
    +
    +
    +
    +
      +
    • +
      + Organization tab functionality verification + Jul 2, 2021 05:32:55 PM + pass +
      +
      + +
      +
      + @AddOrg +
      + 0h 0m 25s+968ms +
      +
      check_circle Scenario Outline: Verify user can download organization in excel format
      +
      usernamepassword
      hillmgrSs@hills2
      +
      +
        +
      • +
        check_circleVerify user can download organization in excel format
        +
          +
        • +
          check_circleGiven user login to hills application with hillmgr and Ss@hills2
          +
          +
        • +
        • +
          check_circleAnd user click on Organization tab
          +
          +
        • +
        • +
          check_circleAnd user click on New link to add organization
          +
          +
        • +
        • +
          check_circleAnd user click on Save button without adding organization details
          +
          +
        • +
        • +
          check_circleAnd user click on Cancel button in new organization form
          +
          +
        • +
        • +
          check_circleThen user should be taken to organization home tab
          +
          +
        • +
        +
      • +
      +
      +
      +
    • +
    +
    +
    + +
    +
    + +
    +
    +
    + +
    +
    +
    +
    + + + +
    +
    +
    +
    +
      +
    • +
      + @AddOrg + + 2 + +
      +
      +
      + Passed: 2 + + +
      +
      + + + + + + + + + + + + + + + + + + + + +
      TimestampTestNameStatus
      Jul 2, 2021 05:32:55 PMVerify user can download organization in excel formatpass
      Jul 2, 2021 05:32:55 PMVerify user can download organization in excel formatpass
      +
      +
      +
    • +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    Dashboard
    + +
    +
    +
    + Features +
    1
    +
    +
    +
    +
    + Scenarios +
    1
    +
    +
    +
    +
    + Steps +
    6
    +
    +
    +
    +
    + Start +
    Jul 2, 2021 05:32:53 PM
    +
    +
    +
    +
    + End +
    Jul 2, 2021 05:33:22 PM
    +
    +
    +
    +
    + Time Taken +
    0h 0m 28s+32ms
    +
    +
    +
    +
    + Categories

     

    + + + + + + + + + + + + + + + + +
    NamePassedFailedSkippedPassed %
    @AddOrg200 + 100% +
    +
    +
    +
    +
    +
    + +
    + + + + + + + + \ No newline at end of file diff --git a/maven/target/cucumber-reports/cucumber.json b/maven/target/cucumber-reports/cucumber.json new file mode 100644 index 0000000..e1c6493 --- /dev/null +++ b/maven/target/cucumber-reports/cucumber.json @@ -0,0 +1,140 @@ +[ + { + "line": 1, + "elements": [ + { + "start_timestamp": "2021-07-02T12:02:54.726Z", + "line": 58, + "name": "Verify user can download organization in excel format", + "description": "", + "id": "organization-tab-functionality-verification;verify-user-can-download-organization-in-excel-format;;2", + "after": [ + { + "result": { + "duration": 799692800, + "status": "passed" + }, + "match": { + "location": "KOLProfileSteps.closeBrowser()" + } + }, + { + "result": { + "duration": 664000, + "status": "passed" + }, + "match": { + "location": "OrganizationSteps.closeBrowser()" + } + }, + { + "result": { + "duration": 10643200, + "status": "passed" + }, + "match": { + "location": "ContactsTabSteps.closeBrowser()" + } + } + ], + "type": "scenario", + "keyword": "Scenario Outline", + "steps": [ + { + "result": { + "duration": 14605842500, + "status": "passed" + }, + "line": 48, + "name": "user login to hills application with hillmgr and Ss@hills2", + "match": { + "arguments": [ + { + "val": "hillmgr", + "offset": 37 + }, + { + "val": "Ss@hills2", + "offset": 49 + } + ], + "location": "HillsCommonSteps.user_login_to_konector_application_with_username_and_password(String,String)" + }, + "keyword": "Given " + }, + { + "result": { + "duration": 5742222600, + "status": "passed" + }, + "line": 49, + "name": "user click on Organization tab", + "match": { + "location": "OrganizationSteps.userclickonOrganizationtab()" + }, + "keyword": "And " + }, + { + "result": { + "duration": 736202400, + "status": "passed" + }, + "line": 50, + "name": "user click on New link to add organization", + "match": { + "location": "OrganizationSteps.userclickonNewlinktoaddorganization()" + }, + "keyword": "And " + }, + { + "result": { + "duration": 2161249000, + "status": "passed" + }, + "line": 51, + "name": "user click on Save button without adding organization details", + "match": { + "location": "OrganizationSteps.userclickonSavebuttonwithoutaddingorganizationdetails()" + }, + "keyword": "And " + }, + { + "result": { + "duration": 2868606800, + "status": "passed" + }, + "line": 52, + "name": "user click on Cancel button in new organization form", + "match": { + "location": "OrganizationSteps.userclickonCancelbuttoninneworganizationform()" + }, + "keyword": "And " + }, + { + "result": { + "duration": 22876100, + "status": "passed" + }, + "line": 53, + "name": "user should be taken to organization home tab", + "match": { + "location": "OrganizationSteps.usershouldbetakentoorganizationhometab()" + }, + "keyword": "Then " + } + ], + "tags": [ + { + "name": "@AddOrg" + } + ] + } + ], + "name": "Organization tab functionality verification", + "description": "", + "id": "organization-tab-functionality-verification", + "keyword": "Feature", + "uri": "file:src/test/resources/Features/Organization.feature", + "tags": [] + } +] \ No newline at end of file diff --git a/maven/target/cucumber-reports/cucumber.xml b/maven/target/cucumber-reports/cucumber.xml new file mode 100644 index 0000000..7addc6d --- /dev/null +++ b/maven/target/cucumber-reports/cucumber.xml @@ -0,0 +1,12 @@ + + + + + + diff --git a/maven/test-output/Default suite/Default test.html b/maven/test-output/Default suite/Default test.html new file mode 100644 index 0000000..ea19801 --- /dev/null +++ b/maven/test-output/Default suite/Default test.html @@ -0,0 +1,139 @@ + + +TestNG: Default test + + + + + + + + +

    Default test

    + + + + + + + + + + + +
    Tests passed/Failed/Skipped:0/1/0
    Started on:Mon Jun 14 12:52:09 IST 2021
    Total time:0 seconds (62 ms)
    Included groups:
    Excluded groups:

    +(Hover the method name to see the test class name)

    + + + + + + + + + + + + +
    FAILED TESTS
    Test methodExceptionTime (seconds)Instance
    AppTest
    Test class: Hills_BDD.Maven.AppTestTest
    java.lang.RuntimeException: Test not implemented
    +	at Hills_BDD.Maven.AppTestTest.AppTest(AppTestTest.java:9)
    +	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    +	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    +	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    +	at java.lang.reflect.Method.invoke(Method.java:498)
    +	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
    +	at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
    +	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
    +	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
    +	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
    +	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
    +	at org.testng.TestRunner.privateRun(TestRunner.java:648)
    +	at org.testng.TestRunner.run(TestRunner.java:505)
    +	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
    +	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
    +	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
    +	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
    +	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    +	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
    +	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
    +	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
    +	at org.testng.TestNG.runSuites(TestNG.java:1049)
    +	at org.testng.TestNG.run(TestNG.java:1017)
    +	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
    +	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
    +	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
    +
    Click to show all stack frames +
    java.lang.RuntimeException: Test not implemented
    +	at Hills_BDD.Maven.AppTestTest.AppTest(AppTestTest.java:9)
    +	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    +	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    +	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    +	at java.lang.reflect.Method.invoke(Method.java:498)
    +	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
    +	at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
    +	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
    +	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
    +	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
    +	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
    +	at org.testng.TestRunner.privateRun(TestRunner.java:648)
    +	at org.testng.TestRunner.run(TestRunner.java:505)
    +	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
    +	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
    +	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
    +	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
    +	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    +	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
    +	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
    +	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
    +	at org.testng.TestNG.runSuites(TestNG.java:1049)
    +	at org.testng.TestNG.run(TestNG.java:1017)
    +	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
    +	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
    +	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
    +
    0Hills_BDD.Maven.AppTestTest@d2cc05a

    + + \ No newline at end of file diff --git a/maven/test-output/Default suite/Default test.xml b/maven/test-output/Default suite/Default test.xml new file mode 100644 index 0000000..616ea10 --- /dev/null +++ b/maven/test-output/Default suite/Default test.xml @@ -0,0 +1,36 @@ + + + + + + + + + diff --git a/maven/test-output/Default suite/testng-failed.xml b/maven/test-output/Default suite/testng-failed.xml new file mode 100644 index 0000000..9676712 --- /dev/null +++ b/maven/test-output/Default suite/testng-failed.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/maven/test-output/bullet_point.png b/maven/test-output/bullet_point.png new file mode 100644 index 0000000..176e6d5 Binary files /dev/null and b/maven/test-output/bullet_point.png differ diff --git a/maven/test-output/collapseall.gif b/maven/test-output/collapseall.gif new file mode 100644 index 0000000..a2d80a9 Binary files /dev/null and b/maven/test-output/collapseall.gif differ diff --git a/maven/test-output/emailable-report.html b/maven/test-output/emailable-report.html new file mode 100644 index 0000000..604093d --- /dev/null +++ b/maven/test-output/emailable-report.html @@ -0,0 +1,45 @@ + + + + +TestNG Report + + + + + + + +
    Test# Passed# Skipped# FailedTime (ms)Included GroupsExcluded Groups
    Default suite
    Default test00162
    + +
    ClassMethodStartTime (ms)
    Default suite
    Default test — failed
    Hills_BDD.Maven.AppTestTestAppTest162365532920019
    +

    Default test

    Hills_BDD.Maven.AppTestTest#AppTest

    Exception
    java.lang.RuntimeException: Test not implemented + at Hills_BDD.Maven.AppTestTest.AppTest(AppTestTest.java:9) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) + at org.testng.internal.Invoker.invokeMethod(Invoker.java:583) + at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719) + at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989) + at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) + at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) + at org.testng.TestRunner.privateRun(TestRunner.java:648) + at org.testng.TestRunner.run(TestRunner.java:505) + at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) + at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) + at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) + at org.testng.SuiteRunner.run(SuiteRunner.java:364) + at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) + at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) + at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) + at org.testng.TestNG.runSuitesLocally(TestNG.java:1137) + at org.testng.TestNG.runSuites(TestNG.java:1049) + at org.testng.TestNG.run(TestNG.java:1017) + at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114) + at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) + at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77) +

    back to summary

    + + diff --git a/maven/test-output/failed.png b/maven/test-output/failed.png new file mode 100644 index 0000000..c117be5 Binary files /dev/null and b/maven/test-output/failed.png differ diff --git a/maven/test-output/index.html b/maven/test-output/index.html new file mode 100644 index 0000000..9617b17 --- /dev/null +++ b/maven/test-output/index.html @@ -0,0 +1,263 @@ + + + + + + TestNG reports + + + + + + + + + + +
    + Test results +
    + 1 suite, 1 failed test +
    + +
    +
    +
    +
    +
    + + Hills_BDD.Maven.AppTestTest +
    +
    +
    +
    + + + AppTest +
    java.lang.RuntimeException: Test not implemented + at Hills_BDD.Maven.AppTestTest.AppTest(AppTestTest.java:9) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) + at org.testng.internal.Invoker.invokeMethod(Invoker.java:583) + at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719) + at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989) + at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) + at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) + at org.testng.TestRunner.privateRun(TestRunner.java:648) + at org.testng.TestRunner.run(TestRunner.java:505) + at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) + at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) + at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) + at org.testng.SuiteRunner.run(SuiteRunner.java:364) + at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) + at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) + at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) + at org.testng.TestNG.runSuitesLocally(TestNG.java:1137) + at org.testng.TestNG.runSuites(TestNG.java:1049) + at org.testng.TestNG.run(TestNG.java:1017) + at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114) + at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) + at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77) + +
    +
    +
    +
    +
    +
    +
    +
    + C:\Users\hp\AppData\Local\Temp\testng-eclipse--1704713121\testng-customsuite.xml +
    +
    +
    +<?xml version="1.0" encoding="UTF-8"?>
    +<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
    +<suite guice-stage="DEVELOPMENT" name="Default suite">
    +  <test thread-count="5" verbose="2" name="Default test">
    +    <classes>
    +      <class name="Hills_BDD.Maven.AppTestTest"/>
    +    </classes>
    +  </test> <!-- Default test -->
    +</suite> <!-- Default suite -->
    +            
    +
    +
    +
    +
    + Tests for Default suite +
    +
    +
      +
    • + Default test (1 class) +
    • +
    +
    +
    +
    +
    + Groups for Default suite +
    +
    +
    +
    +
    +
    + Times for Default suite +
    +
    +
    + + Total running time: 19 ms +
    +
    +
    +
    +
    +
    +
    + Reporter output for Default suite +
    +
    +
    +
    +
    +
    + 0 ignored methods +
    +
    +
    +
    +
    +
    + Methods in chronological order +
    +
    +
    +
    Hills_BDD.Maven.AppTestTest
    +
    + + + AppTest + 0 ms +
    +
    +
    +
    +
    + + diff --git a/maven/test-output/jquery-1.7.1.min.js b/maven/test-output/jquery-1.7.1.min.js new file mode 100644 index 0000000..979ed08 --- /dev/null +++ b/maven/test-output/jquery-1.7.1.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.1 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"":"")+""),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;g=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
    a",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="
    "+""+"
    ",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="
    t
    ",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="
    ",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")}; +f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&i.push({elem:this,matches:d.slice(e)});for(j=0;j0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

    ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
    ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/",""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
    ","
    "]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function() +{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
    ").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/maven/test-output/junitreports/TEST-Hills_BDD.Maven.AppTestTest.xml b/maven/test-output/junitreports/TEST-Hills_BDD.Maven.AppTestTest.xml new file mode 100644 index 0000000..689a3d7 --- /dev/null +++ b/maven/test-output/junitreports/TEST-Hills_BDD.Maven.AppTestTest.xml @@ -0,0 +1,36 @@ + + + + + + + + + diff --git a/maven/test-output/navigator-bullet.png b/maven/test-output/navigator-bullet.png new file mode 100644 index 0000000..36d90d3 Binary files /dev/null and b/maven/test-output/navigator-bullet.png differ diff --git a/maven/test-output/old/Default suite/Default test.properties b/maven/test-output/old/Default suite/Default test.properties new file mode 100644 index 0000000..37da032 --- /dev/null +++ b/maven/test-output/old/Default suite/Default test.properties @@ -0,0 +1 @@ +[SuiteResult context=Default test] \ No newline at end of file diff --git a/maven/test-output/old/Default suite/classes.html b/maven/test-output/old/Default suite/classes.html new file mode 100644 index 0000000..2e068b9 --- /dev/null +++ b/maven/test-output/old/Default suite/classes.html @@ -0,0 +1,28 @@ +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class nameMethod nameGroups
    Hills_BDD.Maven.AppTestTest  
    @Test
     AppTest 
    @BeforeClass
    @BeforeMethod
    @AfterMethod
    @AfterClass
    diff --git a/maven/test-output/old/Default suite/groups.html b/maven/test-output/old/Default suite/groups.html new file mode 100644 index 0000000..199cb3f --- /dev/null +++ b/maven/test-output/old/Default suite/groups.html @@ -0,0 +1 @@ +

    Groups used for this test run

    \ No newline at end of file diff --git a/maven/test-output/old/Default suite/index.html b/maven/test-output/old/Default suite/index.html new file mode 100644 index 0000000..532b9fc --- /dev/null +++ b/maven/test-output/old/Default suite/index.html @@ -0,0 +1,6 @@ +Results for Default suite + + + + + diff --git a/maven/test-output/old/Default suite/main.html b/maven/test-output/old/Default suite/main.html new file mode 100644 index 0000000..96e58e6 --- /dev/null +++ b/maven/test-output/old/Default suite/main.html @@ -0,0 +1,2 @@ +Results for Default suite +Select a result on the left-hand pane. diff --git a/maven/test-output/old/Default suite/methods-alphabetical.html b/maven/test-output/old/Default suite/methods-alphabetical.html new file mode 100644 index 0000000..03ad8d1 --- /dev/null +++ b/maven/test-output/old/Default suite/methods-alphabetical.html @@ -0,0 +1,6 @@ +

    Methods run, sorted chronologically

    >> means before, << means after


    Default suite

    (Hover the method name to see the test class name)

    + + + + +
    TimeDelta (ms)Suite
    configuration
    Test
    configuration
    Class
    configuration
    Groups
    configuration
    Method
    configuration
    Test
    method
    ThreadInstances
    21/06/14 12:52:09 0      AppTestmain@985397764
    diff --git a/maven/test-output/old/Default suite/methods-not-run.html b/maven/test-output/old/Default suite/methods-not-run.html new file mode 100644 index 0000000..54b14cb --- /dev/null +++ b/maven/test-output/old/Default suite/methods-not-run.html @@ -0,0 +1,2 @@ +

    Methods that were not run

    +
    \ No newline at end of file diff --git a/maven/test-output/old/Default suite/methods.html b/maven/test-output/old/Default suite/methods.html new file mode 100644 index 0000000..03ad8d1 --- /dev/null +++ b/maven/test-output/old/Default suite/methods.html @@ -0,0 +1,6 @@ +

    Methods run, sorted chronologically

    >> means before, << means after


    Default suite

    (Hover the method name to see the test class name)

    + + + + +
    TimeDelta (ms)Suite
    configuration
    Test
    configuration
    Class
    configuration
    Groups
    configuration
    Method
    configuration
    Test
    method
    ThreadInstances
    21/06/14 12:52:09 0      AppTestmain@985397764
    diff --git a/maven/test-output/old/Default suite/reporter-output.html b/maven/test-output/old/Default suite/reporter-output.html new file mode 100644 index 0000000..063bc2e --- /dev/null +++ b/maven/test-output/old/Default suite/reporter-output.html @@ -0,0 +1 @@ +

    Reporter output

    \ No newline at end of file diff --git a/maven/test-output/old/Default suite/testng.xml.html b/maven/test-output/old/Default suite/testng.xml.html new file mode 100644 index 0000000..4c43b50 --- /dev/null +++ b/maven/test-output/old/Default suite/testng.xml.html @@ -0,0 +1 @@ +testng.xml for Default suite<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
    <suite guice-stage="DEVELOPMENT" name="Default suite">
      <test thread-count="5" verbose="2" name="Default test">
        <classes>
          <class name="Hills_BDD.Maven.AppTestTest"/>
        </classes>
      </test> <!-- Default test -->
    </suite> <!-- Default suite -->
    \ No newline at end of file diff --git a/maven/test-output/old/Default suite/toc.html b/maven/test-output/old/Default suite/toc.html new file mode 100644 index 0000000..fcf2e8b --- /dev/null +++ b/maven/test-output/old/Default suite/toc.html @@ -0,0 +1,30 @@ + + +Results for Default suite + + + + +

    Results for
    Default suite

    + + + + + + + + + + +
    1 test1 class1 method:
    +  chronological
    +  alphabetical
    +  not run (0)
    0 groupreporter outputtestng.xml
    + +

    +

    +
    Default test (0/1/0) + Results +
    +
    + \ No newline at end of file diff --git a/maven/test-output/old/index.html b/maven/test-output/old/index.html new file mode 100644 index 0000000..ba5fb5e --- /dev/null +++ b/maven/test-output/old/index.html @@ -0,0 +1,9 @@ + + + + +

    Test results

    + + + +
    SuitePassedFailedSkippedtestng.xml
    Total010 
    Default suite010Link
    diff --git a/maven/test-output/passed.png b/maven/test-output/passed.png new file mode 100644 index 0000000..45e85bb Binary files /dev/null and b/maven/test-output/passed.png differ diff --git a/maven/test-output/skipped.png b/maven/test-output/skipped.png new file mode 100644 index 0000000..c36a324 Binary files /dev/null and b/maven/test-output/skipped.png differ diff --git a/maven/test-output/testng-failed.xml b/maven/test-output/testng-failed.xml new file mode 100644 index 0000000..9676712 --- /dev/null +++ b/maven/test-output/testng-failed.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/maven/test-output/testng-reports.css b/maven/test-output/testng-reports.css new file mode 100644 index 0000000..6c65926 --- /dev/null +++ b/maven/test-output/testng-reports.css @@ -0,0 +1,309 @@ +body { + margin: 0px 0px 5px 5px; +} + +ul { + margin: 0px; +} + +li { + list-style-type: none; +} + +a { + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +.navigator-selected { + background: #ffa500; +} + +.wrapper { + position: absolute; + top: 60px; + bottom: 0; + left: 400px; + right: 0; + overflow: auto; +} + +.navigator-root { + position: absolute; + top: 60px; + bottom: 0; + left: 0; + width: 400px; + overflow-y: auto; +} + +.suite { + margin: 0px 10px 10px 0px; + background-color: #fff8dc; +} + +.suite-name { + padding-left: 10px; + font-size: 25px; + font-family: Times; +} + +.main-panel-header { + padding: 5px; + background-color: #9FB4D9; //afeeee; + font-family: monospace; + font-size: 18px; +} + +.main-panel-content { + padding: 5px; + margin-bottom: 10px; + background-color: #DEE8FC; //d0ffff; +} + +.rounded-window { + border-radius: 10px; + border-style: solid; + border-width: 1px; +} + +.rounded-window-top { + border-top-right-radius: 10px 10px; + border-top-left-radius: 10px 10px; + border-style: solid; + border-width: 1px; + overflow: auto; +} + +.light-rounded-window-top { + border-top-right-radius: 10px 10px; + border-top-left-radius: 10px 10px; +} + +.rounded-window-bottom { + border-style: solid; + border-width: 0px 1px 1px 1px; + border-bottom-right-radius: 10px 10px; + border-bottom-left-radius: 10px 10px; + overflow: auto; +} + +.method-name { + font-size: 12px; + font-family: monospace; +} + +.method-content { + border-style: solid; + border-width: 0px 0px 1px 0px; + margin-bottom: 10; + padding-bottom: 5px; + width: 80%; +} + +.parameters { + font-size: 14px; + font-family: monospace; +} + +.stack-trace { + white-space: pre; + font-family: monospace; + font-size: 12px; + font-weight: bold; + margin-top: 0px; + margin-left: 20px; +} + +.testng-xml { + font-family: monospace; +} + +.method-list-content { + margin-left: 10px; +} + +.navigator-suite-content { + margin-left: 10px; + font: 12px 'Lucida Grande'; +} + +.suite-section-title { + margin-top: 10px; + width: 80%; + border-style: solid; + border-width: 1px 0px 0px 0px; + font-family: Times; + font-size: 18px; + font-weight: bold; +} + +.suite-section-content { + list-style-image: url(bullet_point.png); +} + +.top-banner-root { + position: absolute; + top: 0; + height: 45px; + left: 0; + right: 0; + padding: 5px; + margin: 0px 0px 5px 0px; + background-color: #0066ff; + font-family: Times; + color: #fff; + text-align: center; +} + +.top-banner-title-font { + font-size: 25px; +} + +.test-name { + font-family: 'Lucida Grande'; + font-size: 16px; +} + +.suite-icon { + padding: 5px; + float: right; + height: 20; +} + +.test-group { + font: 20px 'Lucida Grande'; + margin: 5px 5px 10px 5px; + border-width: 0px 0px 1px 0px; + border-style: solid; + padding: 5px; +} + +.test-group-name { + font-weight: bold; +} + +.method-in-group { + font-size: 16px; + margin-left: 80px; +} + +table.google-visualization-table-table { + width: 100%; +} + +.reporter-method-name { + font-size: 14px; + font-family: monospace; +} + +.reporter-method-output-div { + padding: 5px; + margin: 0px 0px 5px 20px; + font-size: 12px; + font-family: monospace; + border-width: 0px 0px 0px 1px; + border-style: solid; +} + +.ignored-class-div { + font-size: 14px; + font-family: monospace; +} + +.ignored-methods-div { + padding: 5px; + margin: 0px 0px 5px 20px; + font-size: 12px; + font-family: monospace; + border-width: 0px 0px 0px 1px; + border-style: solid; +} + +.border-failed { + border-top-left-radius: 10px 10px; + border-bottom-left-radius: 10px 10px; + border-style: solid; + border-width: 0px 0px 0px 10px; + border-color: #f00; +} + +.border-skipped { + border-top-left-radius: 10px 10px; + border-bottom-left-radius: 10px 10px; + border-style: solid; + border-width: 0px 0px 0px 10px; + border-color: #edc600; +} + +.border-passed { + border-top-left-radius: 10px 10px; + border-bottom-left-radius: 10px 10px; + border-style: solid; + border-width: 0px 0px 0px 10px; + border-color: #19f52d; +} + +.times-div { + text-align: center; + padding: 5px; +} + +.suite-total-time { + font: 16px 'Lucida Grande'; +} + +.configuration-suite { + margin-left: 20px; +} + +.configuration-test { + margin-left: 40px; +} + +.configuration-class { + margin-left: 60px; +} + +.configuration-method { + margin-left: 80px; +} + +.test-method { + margin-left: 100px; +} + +.chronological-class { + background-color: #0ccff; + border-style: solid; + border-width: 0px 0px 1px 1px; +} + +.method-start { + float: right; +} + +.chronological-class-name { + padding: 0px 0px 0px 5px; + color: #008; +} + +.after, .before, .test-method { + font-family: monospace; + font-size: 14px; +} + +.navigator-suite-header { + font-size: 22px; + margin: 0px 10px 5px 0px; + background-color: #deb887; + text-align: center; +} + +.collapse-all-icon { + padding: 5px; + float: right; +} diff --git a/maven/test-output/testng-reports.js b/maven/test-output/testng-reports.js new file mode 100644 index 0000000..b147043 --- /dev/null +++ b/maven/test-output/testng-reports.js @@ -0,0 +1,122 @@ +$(document).ready(function() { + $('a.navigator-link').click(function() { + // Extract the panel for this link + var panel = getPanelName($(this)); + + // Mark this link as currently selected + $('.navigator-link').parent().removeClass('navigator-selected'); + $(this).parent().addClass('navigator-selected'); + + showPanel(panel); + }); + + installMethodHandlers('failed'); + installMethodHandlers('skipped'); + installMethodHandlers('passed', true); // hide passed methods by default + + $('a.method').click(function() { + showMethod($(this)); + return false; + }); + + // Hide all the panels and display the first one (do this last + // to make sure the click() will invoke the listeners) + $('.panel').hide(); + $('.navigator-link').first().click(); + + // Collapse/expand the suites + $('a.collapse-all-link').click(function() { + var contents = $('.navigator-suite-content'); + if (contents.css('display') == 'none') { + contents.show(); + } else { + contents.hide(); + } + }); +}); + +// The handlers that take care of showing/hiding the methods +function installMethodHandlers(name, hide) { + function getContent(t) { + return $('.method-list-content.' + name + "." + t.attr('panel-name')); + } + + function getHideLink(t, name) { + var s = 'a.hide-methods.' + name + "." + t.attr('panel-name'); + return $(s); + } + + function getShowLink(t, name) { + return $('a.show-methods.' + name + "." + t.attr('panel-name')); + } + + function getMethodPanelClassSel(element, name) { + var panelName = getPanelName(element); + var sel = '.' + panelName + "-class-" + name; + return $(sel); + } + + $('a.hide-methods.' + name).click(function() { + var w = getContent($(this)); + w.hide(); + getHideLink($(this), name).hide(); + getShowLink($(this), name).show(); + getMethodPanelClassSel($(this), name).hide(); + }); + + $('a.show-methods.' + name).click(function() { + var w = getContent($(this)); + w.show(); + getHideLink($(this), name).show(); + getShowLink($(this), name).hide(); + showPanel(getPanelName($(this))); + getMethodPanelClassSel($(this), name).show(); + }); + + if (hide) { + $('a.hide-methods.' + name).click(); + } else { + $('a.show-methods.' + name).click(); + } +} + +function getHashForMethod(element) { + return element.attr('hash-for-method'); +} + +function getPanelName(element) { + return element.attr('panel-name'); +} + +function showPanel(panelName) { + $('.panel').hide(); + var panel = $('.panel[panel-name="' + panelName + '"]'); + panel.show(); +} + +function showMethod(element) { + var hashTag = getHashForMethod(element); + var panelName = getPanelName(element); + showPanel(panelName); + var current = document.location.href; + var base = current.substring(0, current.indexOf('#')) + document.location.href = base + '#' + hashTag; + var newPosition = $(document).scrollTop() - 65; + $(document).scrollTop(newPosition); +} + +function drawTable() { + for (var i = 0; i < suiteTableInitFunctions.length; i++) { + window[suiteTableInitFunctions[i]](); + } + + for (var k in window.suiteTableData) { + var v = window.suiteTableData[k]; + var div = v.tableDiv; + var data = v.tableData + var table = new google.visualization.Table(document.getElementById(div)); + table.draw(data, { + showRowNumber : false + }); + } +} diff --git a/maven/test-output/testng-results.xml b/maven/test-output/testng-results.xml new file mode 100644 index 0000000..72aeab7 --- /dev/null +++ b/maven/test-output/testng-results.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/maven/test-output/testng.css b/maven/test-output/testng.css new file mode 100644 index 0000000..3904800 --- /dev/null +++ b/maven/test-output/testng.css @@ -0,0 +1,9 @@ +.invocation-failed, .test-failed { background-color: #DD0000; } +.invocation-percent, .test-percent { background-color: #006600; } +.invocation-passed, .test-passed { background-color: #00AA00; } +.invocation-skipped, .test-skipped { background-color: #CCCC00; } + +.main-page { + font-size: x-large; +} +