@Test1 @Test2 . . .@TestN Read Different Test Data from Excel for Each Test Cases in Selenium

  Рет қаралды 22,061

Testers Talk

Testers Talk

Күн бұрын

@Test1 Test2 . . .TestN Read Different Test Data for Each Test Cases in Selenium TestNG Framework tutorial || How to Read Data from Excel and Convert into HashMap || Read Excel and Store in HashMap Java #TestDatainSelenium #readexcelfile #seleniumtutorial
Previous tutorial - • Read Data from Excel a...
Subscribe to this channel and press bell icon to get some more interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on groups - / 247868358996762
/ 10393547

Пікірлер: 35
@HafizurRahman-dr3xe
@HafizurRahman-dr3xe 3 жыл бұрын
Very much impressive, go ahead.
@vinothmurali
@vinothmurali 4 жыл бұрын
Still here, the index is hardcoded, which again will be questioned? Is it possible to get the data using testcase name rather than Index?
@testerstalk
@testerstalk 4 жыл бұрын
Thanks for watching this tutorial. There are other ways check below videos. Here is the answer for your question. Part 1 - kzbin.info/www/bejne/p4jKopZqrbR_a9E Part 2 - kzbin.info/www/bejne/aHLck2iEnL6AbtU
@AthenaTolga
@AthenaTolga 2 жыл бұрын
Thank you !
@testerstalk
@testerstalk 2 жыл бұрын
You're welcome!
@sharmilam3143
@sharmilam3143 9 ай бұрын
Thanks
@testerstalk
@testerstalk 9 ай бұрын
Thanks for watching! Please share these tutorials with your network 😊
@Knotoriouz
@Knotoriouz 3 жыл бұрын
why don't you provide the code set along with explanation in some readable document. That makes it more useful. easy to use the code and understand the implementation
@testerstalk
@testerstalk 2 жыл бұрын
Code is already in the channel comments.
@sunilpandey7197
@sunilpandey7197 2 жыл бұрын
@@testerstalk Sorry, somehow, I am not able to find the code. Could you please help me?
@akashmaurya4495
@akashmaurya4495 2 жыл бұрын
Thanks for an amazing explanation. I have a question where if we don't know the index but want to run the test case with test case name. is it possible? Thanks in advance.
@DileepKumar-wh5zf
@DileepKumar-wh5zf 3 жыл бұрын
Wonder ful Explanation.. Why only TreeMap here? Can you please explain me?
@yuvashreeravindranathrao2926
@yuvashreeravindranathrao2926 3 жыл бұрын
Hi, Can you create a video on generating testng xml from java code for test cases marked yes in excel test suite(contains class names of each test case in one column). Programmatically created Testng xml will contain all the class names which needs to be executed.
@akhileshreddy7941
@akhileshreddy7941 3 жыл бұрын
Very Useful Thank you so much, and I need to Iterate @test methed with out hard coding with get(0),Get(0) how to do that can you please explain?
@sharmilar6856
@sharmilar6856 Жыл бұрын
Is there any video that using Web element for selecting drop down from Xlsheet in selenium
@testerstalk
@testerstalk Жыл бұрын
No as of now. i will cover it in the future.
@abdelshafysoliman5031
@abdelshafysoliman5031 4 жыл бұрын
thanks alot in advance , i have a question , in your example in excel sheet if i need to delete any cell from any column like password or user ...etc how i can do it , in other mean how i can read blank cell in our coulmns ?
@testerstalk
@testerstalk 4 жыл бұрын
Thanks for visiting my channel, before answering your question... Can you tell me what point of reading blank cell.?... without a text box or any other requirement we don't have to read data from external source...
@abdelshafysoliman5031
@abdelshafysoliman5031 4 жыл бұрын
@@testerstalk thanks for your reply , i make some test cases to test login page and i read test data from excel sheet by DDT when i read negative test cases like let user name and password are empty i have error but if i entered them will work correctly , how can i read empty cells from excel sheet by DDT ?
@satishchandra6623
@satishchandra6623 2 жыл бұрын
Hi. Just one doubt ? Why can't we create List(Hashmap )
@testerstalk
@testerstalk Жыл бұрын
You can try it out!!
@namburinagarjuna2718
@namburinagarjuna2718 3 жыл бұрын
integers are not getting read with this method,do you have any updated lecture of the same code where the integers also read
@satisht.v2182
@satisht.v2182 4 жыл бұрын
Hi, I have used this code. But I'm getting nullpointer exception. I dint use any return type in my code.. still facing this issue.
@abdelshafysoliman5031
@abdelshafysoliman5031 4 жыл бұрын
check your test data in excel sheet not have a blank cell
@testerstalk
@testerstalk 4 жыл бұрын
Hi Satish, May i know where exactly you are getting this error?
@swathikurupalli9624
@swathikurupalli9624 3 жыл бұрын
Facing Nullpointerexception ,cannot invoke org.Apache.Poi.ss.Usermodel. Row.getCell(int) because row is null
@purusottamdhall5559
@purusottamdhall5559 3 жыл бұрын
Can we use that yes no flag concept over here to read the corresponding data with yes flag and execute that, if its yes it will run, or else it won't.. gone through other videos of reading excel data with yes no flag but how to modify this with corresponding to yes or no flag.
@22Shoyab
@22Shoyab 2 жыл бұрын
Hi purusottam, Can you please help me the videos which you have found where you have used yes or no flag
@i_am_reshad
@i_am_reshad 2 жыл бұрын
It is not right way to change every time test data from inside your code one by one in order to test with different data sets. it is not professional way of using data driven testing. you need to make more practice with test automation :)
@anamikasrivastava3994
@anamikasrivastava3994 3 ай бұрын
can you provide the code or git hub link?
@jonestako4721
@jonestako4721 4 жыл бұрын
Thanks
@testerstalk
@testerstalk 4 жыл бұрын
Thanks for visiting this video, keep visiting my channel for more interesting updates..
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 19 МЛН
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 27 МЛН
Taking ScreenShot ONLY for Failed Tests in Selenium using TestNG Listener
32:12
Naveen AutomationLabs
Рет қаралды 117 М.
TestNg DataProvider and Excel Integration for Data Driven Testing - Selenium
1:04:02
Read data from excel in selenium webdriver c#
9:33
Tutor
Рет қаралды 40 М.