<?php

use Step\Acceptance\Login as login;
use Step\Acceptance\ThriveTips as thriveTips;
//Login as Participent
$I = new login($scenario);
$I->login('participant', '07selEna+?');
//$title, $flag, $verify_flag, $reply_btn, $reply
//Flags Functionality as a Participent
$I = new thriveTips($scenario);
$I->flags_user('test from my end', 'html/body/div[2]/main/div/article/div[3]/span/a', 'html/body/div[2]/main/div/article/div[3]/span/span', 'html/body/div[2]/main/div/article/div[4]/div[1]/ul/li/a', 'Comment for Reply');
//Login as RA Admin
$I = new login($scenario);
$I->login('researchadmin', 'AttainED%6');
//Flags Functionality as a Participent
$I = new thriveTips($scenario);
$I->flags_RA('html/body/div[2]/main/div/div[2]/div/table/tbody/tr[1]/td[3]/a', 'html/body/div[2]/main/div/div[2]/div/table/tbody/tr[2]/td[4]/p', 'html/body/div[2]/main/div/div[2]/div/table/tbody/tr[1]/td[6]/span/a', 'html/body/div[2]/main/div/div[2]/div/table/tbody/tr[2]/td[5]/a');
/*$number = 'Adding Html Content2';
if ($number == $I->see('Adding Html Content2')) {
	$I->click('Adding Html Content2');
} else if {
	$I->click('html/body/div[2]/main/aside/section[2]/div/div[2]/div/ul/li[2]/a');
	$I->click('Adding Html Content2');
}*/
Exemple #2
0
//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', '', 'Video Info', 'https://www.youtube.com/watch?v=ZaxGcgUiBOo', '', '', '', '', 'Medium', 'Thrive Tips Sample Video has been created.');
$I->addContent('Sample OffsiteContent', 'Offsite Content', 'offsite', '', '', '', 'OffsiteContent Info', 'https://www.youtube.com/watch?v=ZaxGcgUiBOo', '', '', 'Medium', 'Thrive Tips Sample OffsiteContent has been created.');
$I->addContent('Sample PDF', 'Pdf', 'pdf', '', '', '', '', '', 'PDF Info', 'pdfSample.pdf', 'Medium', 'Thrive Tips Sample PDF has been created.');
//Edit Thrivetips Functionality
$I = new thriveTips($scenario);
$I->editContent('Add Html Content3', 'Add Html Content3', 'html', 'The author, producer or publisher of an original source.', '', '', '', '', '', 'Medium', 'Thrive Tips Add Html Content3 has been updated.');
$I->editContent('Sample Video', 'Sample Video', 'video', '', 'Video Info', 'https://www.youtube.com/watch?v=ZaxGcgUiBOo', '', '', '', 'Medium', 'Thrive Tips Sample Video has been updated.');
$I->editContent('Sample OffsiteContent', 'Sample OffsiteContent', 'offsite', '', '', '', 'OffsiteContent Info', 'https://www.youtube.com/watch?v=ZaxGcgUiBOo', '', 'Medium', 'Thrive Tips Sample OffsiteContent has been updated.');
$I->editContent('Sample PDF', 'Sample PDF', 'pdf', '', '', '', '', '', 'PDF Info', 'Medium', 'Thrive Tips Sample PDF has been updated.');
//Comment and cliking on flag button for Thrivetips
$I = new thriveTips($scenario);
$I->userContent('Add Html Content3', 'Medium', 'Test Cooment', 'html/body/div[2]/main/div/article/div[3]/span/a', 'html/body/div[2]/main/div/article/div[3]/span/a');
//Delete Thrivetips Functionality
$I = new thriveTips($scenario);
$I->deleteContent('Add Html Content3', 'Thrive Tips Add Html Content3 has been deleted.');
$I->deleteContent('Sample Video', 'Thrive Tips Sample Video has been deleted.');
$I->deleteContent('Sample OffsiteContent', 'Thrive Tips Sample OffsiteContent has been deleted.');
$I->deleteContent('Sample PDF', 'Thrive Tips Sample PDF has been deleted.');
//Post as a Public Message
$I = new homeWall($scenario);
$I->public_Wall('Posting a Image', 'Add Photo', 'photo', 'Winter.jpg', '');
$I->public_Wall('Posting a Video', 'Share Video', 'video', '', 'https://www.youtube.com/watch?v=Bi-v6M4fGbA');
//Comment for the Post
$I = new homeWall($scenario);
$I->comment_Wall('RA', 'Cool Video', '');
//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();
Exemple #5
0
<?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('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.');
$I->addContent('HTML Content', 'Html', 'html', 'Short discription for Html content', '', '', '', '', '', '', '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');*/
//Adding Suurvey details
/*$I = new survey($scenario);
$I->editSurvey('#edit-new-survey-id-edit092', 'name', '', '', 'Create Field', 'abc', 'Text', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '');*/
/*($survey_no, $firstname, $field, $field_type, $lastname, $field1, $field_type1, $email, $field2, $field_type2, $address, $field3, $field_type3, $address2, $field4, $field_type4, $city, $field5, $field_type5, $state, $field6, $field_type6, $country, $field7, $field_type7, $zip, $field8, $field_type8, $mc1, $field9, $field_type9, $mc2, $field10, $field_type10, $mc3, $field11, $field_type11)*/
$I->amOnUrl('http://stage.twm.radiantexp.com/reminders');
//Reminder Functionality
$I = new user_reminder($scenario);