Hi Balaji,

                Can you help me out with this question.How do you test the 
data that is added today by data driven using protractor?Can you reply me 
as soon as possible.


On Friday, February 24, 2017 at 11:24:08 AM UTC-5, Balaji Singh .Y wrote:
>
> Hi All,
>
> Even i was very much frustuated with datadriven framework with protractor 
> and jasmine. Initially i was using Json file as object repository and for 
> data also i was using the json file only.
>
> After lot of search on Internet and other forums i just got tired nothing 
> worked out their is no much info on datadriven with excel.
>
> That`s when i started designing my framework on datadriven with excel and 
> succesfully impleted it.
>
> But the only issue is i cant make it run my testcase with different set of 
> data.
>
> even though with lot of try with different possiblites it didn`t work out 
> but it works with one to one mapping that is each test case with datarow in 
> excel.
>
> so if u need my apporach please let me know and contact my on this email 
> id : [email protected] <javascript:>
>
> With Regards,
> Balaji Singh
> Mobile No : +91 8884479958
>
> On Tue, Feb 21, 2017 at 4:55 PM, Shivakumar H N <[email protected] 
> <javascript:>> wrote:
>
>> Getting the Uncaught ReferenceError: require is not defined - whether 
>> there a way to resolve the require not defined in jasmine?
>>
>>
>> On Saturday, 22 August 2015 06:12:26 UTC+5:30, Peter Hendrick wrote:
>>>
>>> Hi, I'm not sure if you were able to figure this out or not. however, I 
>>> was able to acomplish just this. If you start with an xls file, you will 
>>> have to convert it to .json format. There are websites and applications 
>>> that will do this for you. Just google .xls to .json. Then you will need to 
>>> place the json in your test code. 
>>>
>>> Here's what your json might look like.
>>>
>>> [
>>>     {
>>>         "someId": "signInButton",
>>>         "sendSomeKeys": "[email protected]"
>>>     },
>>>     {
>>>         "someId": "passwordButton",
>>>         "sendSomeKeys": "password"
>>>     }
>>> ]
>>>
>>> And here's how to implement it in your test:
>>>
>>> 'use strict';
>>>
>>> var testData = require('./path/to/json.json');
>>>
>>> describe('your test', function() {
>>>     testData.forEach( function (data) {
>>>         it('should read from an external json', function(){
>>>             element(by.id(data.someId)).sendKeys(data.sendSomeKeys);
>>>         });
>>>     });
>>> });
>>>
>>>
>>>
>>> On Tuesday, November 4, 2014 at 1:43:06 AM UTC-7, 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 a topic in the 
>> Google Groups "Angular and AngularJS discussion" group.
>>
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/angular/szvTofhwp1M/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> BALAJI SINGH .Y
>

-- 
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.

Reply via email to