Questions tagged [ddt]

Eclipse-based IDE for the D programming language

DDT is an Eclipse-based IDE for the D programming language, aiming to support rich IDE functionality, particularly semantic functionality (code completion, find definition, find references, etc.).

17 questions
5
votes
1 answer

Does @ddt work with py.test?

Does @ddt work with py.test or it must use unittest format? I have a tests where the setup fixture is in the conftest.py file. When I run the test, it error out because it didn't run the setup fixture. E.g: @ddt class Test_searchProd: …
KaGo
  • 123
  • 1
  • 8
3
votes
1 answer

Eclipse without JDT

How can I get Eclipse without JDT or other plugins, so that I can install D Development Tools and make an IDE for D only?
user1779715
3
votes
3 answers

DDT error: D Standard Library [Error: none found]

I have installed dmd and ddt as instructed: DMD64 D Compiler v2.066.0 Copyright (c) 1999-2014 by Digital Mars written by Walter Bright Documentation: http://dlang.org/ but when I create a dub project in eclipse, I dot an error that says standard…
qed
  • 22,298
  • 21
  • 125
  • 196
2
votes
0 answers

like TestNG @dataprovider is used for provide multiple data to the test case...like that any methods or package is used in playwright?

In playwright is their any methods used for handle dataprovider concept or how to create own data provider for handle multiple inputs from multiple sheets.can anyone give some example here. Thanks in Advance.
Karthi C
  • 31
  • 6
2
votes
2 answers

How do I set up the test data and the test cases in a single python script

I am writing a unit test and trying to set up the test data to use for the test cases in the same python script. However, When I run the script, it does create the test data, but prints an error message that the data do not exist, leading to the…
jsy
  • 55
  • 5
2
votes
2 answers

AttributeError: type object 'TestPages' has no attribute 'test_sort_by_price'

For some reason I can't run ddt.py. Could you explain what is the problem? In official documentation it looks like this. @ddt class TestPages(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome() …
2
votes
1 answer

Test fail when run together, passed when run individually

When I implement cross browser testing with nunit using TestFixture my tests fails when run together, passed when run individually. Exception was throwed when SendKeys method was called because argument was null, but this is not the cause, because…
Marcin
  • 65
  • 1
  • 9
1
vote
1 answer

TypeError: test02_logout() missing 2 required positional arguments: 'email' and 'password'

login_data1.json file { "Admin1" : { "email": "some1@nomail.com", "password": "123" }, "Admin2" : { "email": "some2@nomail.com", "password": "1234" } } testdata.py file valid_login_json_file =…
Charu Jain
  • 29
  • 2
1
vote
1 answer

How to modify debug (run) configuration that gets called after saving source file?

Whenever I save the app.d file in DDT, the file gets compiled using dub build. What to do, when I want to customize the options, for instance to get unittests (i.e. run dub build -b unittest)? Editing run/debug configurations doesn't help.
Adam Ryczkowski
  • 7,592
  • 13
  • 42
  • 68
0
votes
3 answers

Cypress: How to create loop for fixture file with multiple arr

Here is image from page Hi all, I'm new here. How to create loop for fixture file with multiple arr in Cypress to check all the list? [ { "firstName": "John", "email": "jsmith@gmail.com", "due": "50$", "webSite": "www" }, { …
0
votes
1 answer

pytest, Test Case is throwing fixture 'sort_by' not found when we try to pass test data using ddt

Executed the following code in Pycharm from ddt import file_data, ddt import pytest @ddt class TestCase: @file_data('../testdata/testdatajson.json') def test_ddtfile(self, sort_by, sort_id): print(sort_by, sort_id) Test Data…
K A S
  • 11
  • 2
0
votes
1 answer

How to run tests one by one using just one row from CSV file?

Hi everyone it's my first post here. I'm learning test automation with Python and I have a problem. I have a test class, something like that test_scenario_1.py class TestClass: @pytest.mark.run(order=1) …
Sqv
  • 1
0
votes
3 answers

How to read data from JSON file in ddt Python

I am using ddt with python. I have code to read csv which looks like this - import csv def getcsvdata(filename): rows = [] datafile = open(filename, "r") reader = csv.reader(datafile) next(reader) for row in reader: …
Charu Jain
  • 29
  • 2
0
votes
1 answer

Python Unittest: make sure patched class is called

I have the following code @ddt @patch('mymodule.myclass', MagicMock) class MyTest(): @data([val1, val2]) @unpack def test_run(self, val1, val2): ClassA().run(val1, val2) How Do I assert some methods inside mymodule.myclass…
user1187968
  • 7,154
  • 16
  • 81
  • 152
0
votes
1 answer

Where to configure D compiler flags in DDT

My build requires that I consider some flags, as the following command: rdmd -unittest --force --main myDFile.d Where is supposed to the right place for configuring required flags for D compiler in DDT?
User
  • 952
  • 2
  • 21
  • 43
1
2