<?php use Step\Acceptance\Login as login; use Step\Acceptance\ThriveTips as thriveTips; use Step\Acceptance\PublicMessages as homeWall; use Step\Acceptance\Logout as logout; //Login Functionality $I = new login($scenario); $I->amGoingTo('LOGIN WITH VALID CREDENTIALS'); $I->login('researchadmin', 'AttainED%6'); //$I->login('participant', '07selEna+?'); $I->expect('SIGN-IN IS SUCCESSFUL'); //Post as a Public Message $I = new homeWall($scenario); $I->amGoingTo('POST PUBLIC MESSAGE OF IMAGE CATEGORY'); $I->public_Wall('Image', 'Add Photo', 'photo', 'RunAppDownload.jpg', '', 'RA', 'Cool', 'html/body/div[2]/main/div/fieldset/div/div[2]/div[3]/div[3]/span/a', 'html/body/div[2]/main/div/fieldset/div/div[2]/div[3]/div[3]/span/a', 'html/body/div[2]/main/div/fieldset/div/div[2]/div[3]/div[4]/span/a', 'html/body/div[2]/main/div/fieldset/div/div[2]/div[3]/div[4]/span/a', '', '', '', '', ''); $I->expect('PUBLIC MESSAGE POSTED SUCCESSFULLY'); /*//Thrivetips Functionality $I = new thriveTips($scenario); $I->addContent('Add Html Content3', 'Html', 'html', 'The author, producer or publisher of an original source.', '', '', '', '', '', '', 'Medium', 'Thrive Tips Add Html Content3 has been created.'); $I->addContent('Sample Video', 'Video', 'video', 'The author, producer or publisher of an original source.', 'https://www.youtube.com/watch?v=ZaxGcgUiBOo', '', '', '', '', 'Medium', 'Thrive Tips Sample Video has been created.'); $I->addContent('Sample OffsiteContent', 'Offsite Content', 'offsite', '', '', '', '', 'Offsite Content', '', '#edit-field-thrive-tags-und-3', 'Thrive Tips Sample OffsiteContent has been created.'); $I->addContent('Sample PDF', 'Pdf', 'pdf', '', '', '', 'Ticket.pdf', '#edit-field-thrive-tags-und-2', 'Thrive Tips Sample PDF has been created.');*/ //Clicking on Logout button $I = new logout($scenario); $I->logout();
<?php use Step\Acceptance\Login as login; use Step\Acceptance\ThriveTips as thriveTips; use Step\Acceptance\PublicMessages as homeWall; use Step\Acceptance\Achievements as user_achvmts; use Step\Acceptance\Logout as logout; //Login Functionality $I = new login($scenario); $I->login('ra', 'ra'); //$I->login('researchadmin', 'AttainED%6'); //$I->login('participant', '07selEna+?'); //Thrivetips Functionality $I = new thriveTips($scenario); $I->addContent('Html Content', 'Html', 'html', 'The author, producer or publisher of an original source.', '', '', '', '', '', '', 'Medium', 'Thrive Tips Html Content has been created.'); $I->editContent('Html Content', 'Add Html Content3', 'Html', 'The author, producer or publisher of an original source.', '', '', '', '', '', 'Medium', 'Thrive Tips Add Html Content3 has been updated.'); $I->deleteContent('Add Html Content3', 'Thrive Tips Add Html Content3 has been deleted.'); //Post as a Public Message $I = new homeWall($scenario); $I->public_Wall('Image', 'Add Photo', 'photo', 'RunAppDownload.jpg', '', 'RA', 'Cool', 'html/body/div[2]/main/div/fieldset/div/div[8]/div[3]/div[3]/span/a', 'html/body/div[2]/main/div/fieldset/div/div[8]/div[3]/div[3]/span/span[1]', 'html/body/div[2]/main/div/fieldset/div/div[10]/div[3]/div[5]/div[2]/div[2]/span[2]/span/a', 'html/body/div[2]/main/div/fieldset/div/div[10]/div[3]/div[5]/div[2]/div[2]/span[2]/span/a', '', '', '', '', ''); //Check Posts and Votes Achievements to be Unlocked $I = new user_achvmts($scenario); $I->achievement('html/body/div[2]/main/div/div[2]/div/div[1]/div[2]/div[2]/div[1]', 'html/body/div[2]/main/div/div[2]/div/div[2]/div[2]/div[2]/div[1]', 'html/body/div[2]/main/div/fieldset/div/div[8]/div[3]/div[6]/div[2]/div[2]/span[1]/a', 'html/body/div[2]/main/div/fieldset/div/div[9]/div[3]/div[6]/div[2]/div[2]/span[1]/a', 'html/body/div[2]/main/div/fieldset/div/div[10]/div[3]/div[5]/div[2]/div[2]/span[1]/span/a', '2015/11/10'); //Clicking on Logout button $I = new logout($scenario); $I->logout();
<?php use Step\Acceptance\Login as login; use Step\Acceptance\ThriveTips as thriveTips; use Step\Acceptance\PublicMessages as homeWall; use Step\Acceptance\Achievements as user_achvmts; use Step\Acceptance\Surveydetails as survey; use Step\Acceptance\Reminders as user_reminder; use Step\Acceptance\Logout as logout; //Login Functionality $I = new login($scenario); $I->login('rauser2', 'rauser'); //$I->login('rauser3', 'rauser'); //$I->login('rauser4', 'rauser'); //$I->login('researchadmin', 'AttainED%6'); //Thrivetips Functionality $I = new thriveTips($scenario); $I->addContent('Selenium Video', 'Video', 'video', '', 'Selenium Training video', 'https://www.youtube.com/watch?v=IhJgrLjljpc', '', '', '', '', 'Medium', '8', 'Thrive Tips Selenium Video has been created.'); //Post as a Public Message //$I = new homeWall($scenario); //$I->public_Wall('Image', 'Add Photo', 'photo', 'Winter.jpg', '', 'RA', 'Cool', 'html/body/div[2]/main/div/fieldset/div/div[1]/div[3]/div[2]/span/a', '', 'html/body/div[2]/main/div/fieldset/div/div[1]/div[3]/div[5]/div[2]/div[2]/span[2]/span/a', '', '', '', '', '', ''); //Check Posts and Votes Achievements to be Unlocked $I = new user_achvmts($scenario); $I->achievement('html/body/div[2]/main/div/div[2]/div/div[1]/div[2]/div[2]/div[1]', 'html/body/div[2]/main/div/div[2]/div/div[2]/div[2]/div[2]/div[1]', 'html/body/div[2]/main/div/fieldset/div/div[3]/div[3]/div[2]/span/a', 'html/body/div[2]/main/div/fieldset/div/div[4]/div[3]/div[2]/span/a', 'html/body/div[2]/main/div/fieldset/div/div[5]/div[3]/div[2]/span/a', '2015/12/08'); $I->amOnUrl('http://stage.twm.radiantexp.com/reminders'); //Reminder Functionality $I = new user_reminder($scenario); $I->reminder('2:00', 'A.M', 'Reminder Message'); //Clicking on Logout button $I = new logout($scenario); $I->logout();
<?php use Step\Acceptance\Login as login; use Step\Acceptance\ThriveTips as thriveTips; use Step\Acceptance\PublicMessages as homeWall; //Login Functionality $I = new login($scenario); $I->login('user2', 'user2'); //$I->login('participant', '07selEna+?'); /*//Create Posts Functionality $I = new thriveTips($scenario); $I->userContent('Sample PDF', 'Medium', 'Comment as Participant', 'html/body/div[2]/main/div/article/div[5]/div[2]/div[2]/div[2]/span/a', 'html/body/div[2]/main/div/article/div[5]/div[2]/div[2]/div[2]/span/span');*/ //Comment for the Post $I = new homeWall($scenario); $I->public_Wall('Image', 'Add Photo', 'photo', 'RunAppDownload.jpg', '', 'Participent', '', '', '', 'Cool', 'html/body/div[2]/main/div/fieldset/div/div[1]/div[3]/div[5]/div[2]/div[2]/span/span/a', 'html/body/div[2]/main/div/fieldset/div/div[1]/div[3]/div[5]/div[2]/div[2]/span[1]/span/span'); //Achievements $I = new homeWall($scenario); $I->achievement('html/body/div[2]/main/div/fieldset/div/div[1]/div[3]/div[6]/div[2]/div[2]/span[1]/a', 'html/body/div[2]/main/div/fieldset/div/div[1]/div[3]/div[7]/div[2]/div[2]/span[1]/a', 'html/body/div[2]/main/div/fieldset/div/div[1]/div[3]/div[8]/div[2]/div[2]/span[1]/a)');