| 9 | import page.services.ServiceDashboardPage; |
| 10 | |
| 11 | public class TC03_CreateLead extends SalesforceHooks{ |
| 12 | |
| 13 | @BeforeTest |
| 14 | public void setReportValues() { |
| 15 | testcaseName = "TC03 - Create Lead"; |
| 16 | testDescription = "Create a new Lead"; |
| 17 | authors = "TestLeaf"; |
| 18 | category = "Service"; |
| 19 | } |
| 20 | |
| 21 | @Test |
| 22 | public void editAccount() { |
| 23 | |
| 24 | // Go to Marketing Application |
| 25 | new HomePage() |
| 26 | .clickAppLauncher() |
| 27 | .clickViewAll() |
| 28 | .typeSearchApps("Marketing") |
| 29 | .clickApp("Marketing"); |
| 30 | |
| 31 | ServiceDashboardPage sdp = new ServiceDashboardPage(); |
| 32 | |
| 33 | // Create a new Leads |
| 34 | sdp.clickTab("Leads").clickMenu("New"); |
| 35 | |
| 36 | // Fill all mandatory fields |
| 37 | String toastMessage = new LeadPage().fillMandatoryFields(); |
| 38 | |
| 39 | // Verify that the lead is created |
| 40 | sdp.verifyToastMessage(toastMessage); |
| 41 | |
| 42 | } |
| 43 | |
| 44 | } |
nothing calls this directly
no outgoing calls
no test coverage detected