18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

how to test invalid emailds

edited November -1 in Sahi - Open Source
if i give the valid mailids it is running,
now iam givging 3rd email id is invalid.....it is showing -Stopped Playback: FAILURE--

HOW TO TEST INVALID EMAIL IDS

WEN I DID MANUAL TESTING THESE ARE TEST CASES THESE I WANT TO TEST IN AUTOMATION:---

Enter the valid email in text box sg@hungryzone.com
Enter the valid email in text box Sandeep.Ganaparthi.justeat@gmail...com
Enter the valid email in text box san.deep.ganaparthi@just.eat.com
Enter the valid email in text box San.deep.”@”.gmail.com@justeat.com
Enter the valid email in text box very."(),:;<>[]".VERY."very\\\ \@\";very".ganap@just.eat.com
Enter the invalid email in text box sandeep.ganaparthi.com
Enter the invalid email in text box A@b@c@justeat.com
Enter the invalid email in text box "(),:;<>[\]@justeat.com
Enter the invalid email in text box just"not"right@justeat.com



CODE PART:--

var $arr1 = new Array("#@hungryzone.com","chowdhary@gmail.com","very."(),:;<>[]".VERY."very\\\ \@\";very".ganap@just.eat.com
")

for(var $i=0;$i<$arr1.length;$i++){
contactInfo($arr1[$i]);
}

function contactInfo($emailid){
_click(_link("MENU"));
_click(_link("+"));
_click(_link("+[1]"));
_click(_link("+[2]"));
_click(_link("+[3]"));
_click(_link("+[4]"));
_click(_link("+[5]"));
_click(_link("ORDER THIS"));
_setValue(_textbox("name[1]"), "sandeep");
_setValue(_textbox("email"), $emailid);
_setValue(_textbox("cellno"), "8050485191");
_setValue(_textbox("landline"), "26583195");
_setValue(_textbox("address-first"), "no.1627");
_setValue(_textbox("address-second"), "17thmain");
_setValue(_textbox("address-landmark"), "near central");
_setValue(_textbox("address-area"), "jayanagar");
_click(_checkbox("asap"));+
_click(_image("..."));
_click(_link("24"));
_click(_listItem("Bring me food as soon as possible"));
_click(_listItem("Bring me food as soon as possible"));
_click(_checkbox("asap"));
_setSelected(_select("hours"), "9");
_setSelected(_select("ampm"), "PM");
_setValue(_textarea("instructions"), "bring the food soon");
_click(_button("Send This Order"));
_click(_checkbox("1"));
_click(_button("Send"));
_click(_link("Close[1]"));
}
Sign In or Register to comment.