Hi Tito, for now I shown demo to management through Json files just i'm passing data to test script but now Managment asking instead of Json can you try with excel sheet so i.e reason I'm posting Question here
here I'm new to Protractor even I dont know how to use Data driven testing plz guide me which once is better and how can I use for that i can explain to management *Thanks & Regards,* Ranjith Samalla 9440247045 On Thu, Apr 19, 2018 at 1:06 AM, Tito <[email protected]> wrote: > why are you using excel at all? why not make it data driven? > > > On Wednesday, April 18, 2018 at 6:17:49 AM UTC-7, Ranjith Samalla wrote: >> >> HI >> >> >> I'm also facing issue how to work with excel sheet for protractor >> >> On Tuesday, November 4, 2014 at 2:13:06 PM UTC+5:30, Nakul Arora wrote: >>> >>> We are new to *Protractor* >>> <https://github.com/angular/protractor/blob/master/docs/tutorial.md> >>> and *Jasmine <http://jasmine.github.io/1.3/introduction.html>.* We >>> are trying to automate E2E testing of Angular application using >>> *Protractor* >>> <https://github.com/angular/protractor/blob/master/docs/tutorial.md> and >>> *Jasmine* <http://jasmine.github.io/1.3/introduction.html>. As part of >>> the test data input we would like the script to read the data from an excel >>> file (*.xls, *.xlsx). But I am unable to find any reference to this >>> information. I really appreciate if anyone can give the exact approach to >>> read data from excel as an input to the automation script. >>> >>> Cheers >>> >>> Please note : Only reason I am posting a standard snippet is bcoz we are >>> actually trying to get the input as excel for this specific script (as our >>> learning curve). Appreciate all the help. Thank you. >>> >>> Sample Code: >>> >>> describe('Test Calculator', function() {var firstNumber = >>> element(by.model('first')); >>> var secondNumber = element(by.model('second')); >>> var goButton = element(by.id('gobutton')); >>> function ReadDataFromExcel() { >>> >>> // Code to read first number & second number from Excel; >>> >>> }; >>> >>> it('Testcase 1', function() { >>> >>> browser.get('http://juliemr.github.io/protractor-demo/'); >>> >>> // ReadDataFromExcel() >>> // for each record in EXCEL; perform below operation; >>> // { >>> firstNumber.sendKeys(a); >>> secondNumber.sendKeys(b); >>> goButton.click(); >>> // Always perform '+' operation >>> // } >>> >>> }); >>> }); >>> >>> -- > You received this message because you are subscribed to the Google Groups > "Angular and AngularJS discussion" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
