Selenium Python Tutorial #61 - Data Driven Testing in Selenium using DDT

preview_player
Показать описание
In this Selenium Python Tutorial, we will learn how to perform data-driven testing in selenium using DDT. Python DDT module is used to easily perform data-driven testing in selenium python. This video will help you understand why separating data from your tests is important and how we can data drive our selenium python script using the DDT module in Python.

Help me in spreading the knowledge, please hit LIKE, SHARE, and SUBSCRIBE for the latest tutorials. More tutorial playlists below:

🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶

🔶 FOLLOW US ON TWITTER 🔶

🔶 LIKE US ON FACEBOOK 🔶

🔶 OUR TUTORIAL WEBSITES 🔶

🔶 GET MY TRAININGS ON UDEMY 🔶

#SeleniumPythonTutorial #PythonSelenium #SeleniumPython #PythonSeleniumTutorial #SeleniumWebdriver #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor

Join this channel to get access to perks:
Рекомендации по теме
Комментарии
Автор

It seems that ddt can't work without unittest so in order to avoid errors like 'fixture not found' we must import softest (it's the extension of unittest) or import unittest. Here are the code examples that worked for me:

1.solution
import softest
from ddt import ddt, data, unpack

@ddt
class
@data(("string", "string"))
@unpack
def test_sign_in(self, email, password):

2.solution
import unittest
from ddt import ddt, data, unpack

@ddt
class
@data(("string", "string"))
@unpack
def test_sign_in(self, email, password):

lalun
Автор

I get, fixture not found error
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, extra,

swatigupta
Автор

How is DDT different from pytest mark parameterize?

koushikshirali
Автор

you guys should put softest.TestCase before using data driven testing. it works for me

nobitalua
Автор

Can you please go over renaming tests with DDT? Im using Pytest and DDT working but my tests are named test_smoke_01, test_smoke_02, etc. i want to name them using the URL being tested. Like test_smoke_urlA, test_smoke_urlB

kevinevanssr
Автор

Hi, why are we not using JSON to pass the data?

himanshushinde
Автор

What can be done to fix the error "fixture groingfrom not found"?

jesusmedina
Автор

I'm not able to implement ddt, testcase method doesn't take the value from ddt. Please help.
ddt- 1.4.4 version
python - 3.10.0
pip - 21.3.1

anushapandit
Автор

Not working causing, TypeError: ddt.add_test() argument after ** must be a mapping, not str

YogeshBecse
Автор

I am getting an error "fixture goingfrom not found" when i pass the parameters in my test function, help?

jijoshjoshua
Автор

I am also getting an error which says "fixture goingfrom not found" . Please advise

ankur