public function test_CTV3_1117_Access_other_modules() { $SENDER_LOGIN = $this->getGlobalValue('user.1.login'); $SENDER_PASSWORD = $this->getGlobalValue('user.1.password'); $loginPage = new LoginPage($this); $loginPage->doLogin($SENDER_LOGIN, $SENDER_PASSWORD); $mailPage = new MailPage($this); $mailPage->clickCalendar(); $calendar = new CalendarPage($this); $this->assertTrue($calendar->hasCalendarScreenListed(), 'The calendar screen is visible, but it is not'); $calendar->clickEmail(); $mailPage->clickAddressbook(); $addressbookPage = new AddressbookPage($this); $this->assertTrue($addressbookPage->hasAddressbookScreenListed(), 'The Addressbook screen is visible, but it is not'); $calendar->clickEmail(); $this->assertTrue($mailPage->hasEmailScreenListed(), 'The Email screen is visible, but it is not'); $mailPage->clickLogout(); }
/** * Checks the reply e-mail feature. In this test, user 1 sends an e-mail * to new user and this recipient is saved in the personal catalog * * CTV3-1015 * http://comunidadeexpresso.serpro.gov.br/testlink/linkto.php?tprojectPrefix=CTV3&item=testcase&id=CTV3-1015 */ public function test_CTV3_1015_Send_Mail_Saved_Recipient() { //load test data $SENDER_LOGIN = $this->getGlobalValue('user.1.login'); $SENDER_PASSWORD = $this->getGlobalValue('user.1.password'); $RECIPIENT_MAIL = $this->getTestValue('recipient.mail'); $RECIPIENT_NAME = $this->getTestValue('recipient.name'); $MAIL_SUBJECT = $this->getTestValue('mail.subject'); $MAIL_CONTENT = $this->getTestValue('mail.content'); //testStart $loginPage = new LoginPage($this); $loginPage->doLogin($SENDER_LOGIN, $SENDER_PASSWORD); $mailPage = new MailPage($this); $mailPage->sendMail(array($RECIPIENT_MAIL), $MAIL_SUBJECT, $MAIL_CONTENT); $mailPage->clickAddressbook(); $addressbookPage = new AddressbookPage($this); $addressbookPage->clickPersonalCatalog(); $this->waitForAjaxAndAnimations(); $contactListItem = $addressbookPage->getCatalogEntryByName($RECIPIENT_NAME); $this->assertEquals($RECIPIENT_NAME, $contactListItem->getNameFromContact(), 'Mail was send but, the new recipient is not created in personal catalog '); }
public function test_Ctv3_1027_Check_Edit_Personal_Contact() { $USER_LOGIN = $this->getGlobalValue('user.1.login'); $USER_PASSWORD = $this->getGlobalValue('user.1.password'); $CONTACT_1_EMAIL = $this->getTestValue('contact.1.mail'); $CONTACT_1_NAME = $this->getTestValue('contact.1.name'); $FIELD_COMPANY = $this->getTestValue('field.company'); $MAIL_SUBJECT = $this->getTestValue('mail.subject'); $MAIL_CONTENT = $this->getTestValue('mail.content'); //testStart $loginPage = new LoginPage($this); $loginPage->doLogin($USER_LOGIN, $USER_PASSWORD); //Sending an e-mail to generate the personal contact to be used in the test $mailPage = new MailPage($this); $mailPage->sendMail(array($CONTACT_1_EMAIL), $MAIL_SUBJECT, $MAIL_CONTENT); $mailPage->clickAddressbook(); $addressbookPage = new AddressbookPage($this); $addressbookPage->clickPersonalCatalog(); $this->waitForAjaxAndAnimations(); $mailPage->clearSearchField(); $mailPage->typeSearchText($CONTACT_1_NAME); $mailPage->clickSearchButton(); $this->waitForAjaxAndAnimations(); $contactListItem = $addressbookPage->getCatalogEntryByName($CONTACT_1_NAME); $contactListItem->click(); $this->waitForAjaxAndAnimations(); $widgetContactDetails = $addressbookPage->getWidgetContactDetails(); // Checking other fields will only be possible when the system allows personal contact edition $this->assertEquals('true', $widgetContactDetails->isReadonlyField($FIELD_COMPANY), "The field '{$FIELD_COMPANY}' is not readonly"); }