Selenium with C# 64 - Selenium Data Driven Testing using CSV file in MS Test | DataSource attribute

  Рет қаралды 6,825

Ankpro Training

Ankpro Training

Күн бұрын

Пікірлер: 19
@AnkproTraining
@AnkproTraining 4 жыл бұрын
Thank you for watching. Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter.
@sonalpathak6716
@sonalpathak6716 2 жыл бұрын
Thank you! your solution worked, i just changed the DataDirectory to something like this because i had the csv in my folder in solution
@AnkproTraining
@AnkproTraining 2 жыл бұрын
Thank you for watching this video. Don't forget to *_like , subscribe_* and hit that *_notification_* bell 🔔. And also share this video in your circle via *WhatsApp* , *Facebook* and *Twitter* . Link to subscribe the channel goo.gl/hFueBi
@deekshajain6339
@deekshajain6339 2 жыл бұрын
HI i am writing code in C# using nunit framework and getting the error "CS1061 C# does not contain a definition for 'DataRow' and no accessible extension method 'DataRow' accepting a first argument of type could be found (are you missing a using directive or an assembly reference?)" please let me know what i am missing here
@AnkproTraining
@AnkproTraining 2 жыл бұрын
Deeksha, there is a different way for NUnit. DataRow attribute is available only in MS Test framework. Thanks for watching, please subscribe and share this video in your network.
@makiyatow3286
@makiyatow3286 4 жыл бұрын
Hello Akpro, Tried this but I have an error "CS1061 C# does not contain a definition for 'DataRow' and no accessible extension method 'DataRow' accepting a first argument of type could be found (are you missing a using directive or an assembly reference?)" My errors are with this codes: driver.FindElement(By.Id("FirstName")).SendKeys(TestContext.DataRow[0].ToString()); I used this method for TestContext. Data Row public TestContext TestContext { get; set; } Am I missing something? Thank you!
@AnkproTraining
@AnkproTraining 4 жыл бұрын
Right click on *_References_* -> Click on *_Add References_* -> Search *_System.Data_* in the top right search -> It will be unchecked, Check the *_System.Data_* -> Click on *_OK_*. Try now. Subscribe to our channel. Like the video and share the video in your circle.
@makiyatow3286
@makiyatow3286 4 жыл бұрын
@@AnkproTraining seems like I don’t have System.Data in my References Manager..I can add System.Data as a statement/library but it’s nowhere to be found in References Manager.
@AnkproTraining
@AnkproTraining 4 жыл бұрын
@@makiyatow3286 Are you using .Net core?
@makiyatow3286
@makiyatow3286 4 жыл бұрын
@@AnkproTraining yes, im using .NET Core 5. Does it support datarow properties? So far, I've used excel file instead of csv for DDT
@AnkproTraining
@AnkproTraining 4 жыл бұрын
@@makiyatow3286 Try adding Entity framework from nuget package manager. It should have System.Data namespace.
@jithesh6759
@jithesh6759 3 жыл бұрын
Nice demo, thank you. Am getting the following error - how to fix that. Error CS1061 'TestContext' does not contain a definition for 'DataRow' and no accessible extension method 'DataRow' accepting a first argument of type 'TestContext' could be found (are you missing a using directive or an assembly reference?).
@AnkproTraining
@AnkproTraining 3 жыл бұрын
Include "System.Data" to references. Thank you for watching this video. Cheers! would you mind hitting like button and subscribe to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter.
@himanshu-varshney
@himanshu-varshney 6 ай бұрын
Nice Content. Just had one query I am not able to use DataSource -> Is this method is obsolete now similar with DataAccessMethod. Because when i am using these in my code these are not present.
@Mr_Luckiee
@Mr_Luckiee 2 жыл бұрын
How to write in Csv file
@stalinpaulrajjudha2685
@stalinpaulrajjudha2685 3 жыл бұрын
Error CS0104 'TestContext' is an ambiguous reference between 'NUnit.Framework.TestContext' and 'Microsoft.VisualStudio.TestTools.UnitTesting.TestContext' ..Hi getting this error for TestContext
@AnkproTraining
@AnkproTraining 3 жыл бұрын
Use MSTest only.
@kiranbandi5548
@kiranbandi5548 3 жыл бұрын
Could you please make a video on complete framework development from scratch?
@AnkproTraining
@AnkproTraining 3 жыл бұрын
Yes, it is cooking. POM is following. Subscribe and share the videos with your friends.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Java read CSV File 📰
9:12
Bro Code
Рет қаралды 100 М.
Automated Data-Driven Testing with Selenium C#
12:23
Test Automation 101
Рет қаралды 1,6 М.
#17 - Data Driven Testing using NUnit for Selenium with C# .NET
10:45
Execute Automation
Рет қаралды 4,9 М.
The BEST Way to Read a CSV File in C# | CsvHelper Tutorial
9:41
Roberts Dev Talk
Рет қаралды 61 М.
Read test data from a csv file using selenium webdriver
15:09
Software Testing Step-by-Step
Рет қаралды 24 М.