arjuna.tpi.engine.data_markup module¶
Data Driven Testing Markup
Provides data source builder classes that can be provided to drive_with argument of @test decorator.
The names of the classes have been kept in lower case for aesthetic purpose of the @test decorator.
- class arjuna.tpi.engine.data_markup.data_class(dsclass, *vargs, **kwargs)¶
Bases:
arjuna.tpi.engine.data_markup._DataMarkUp
Data Class Data Source
- Parameters
dsclass – Class to be instantiated
vargs – Any number of objects for instantiating the class.
*kwargs – Arbitrary keywrod arguments for instantiating the class.
- build(context='Test') arjuna.engine.data.source.DataSource ¶
Create corresponding DataSource
- class arjuna.tpi.engine.data_markup.data_file(path=None, *, delimiter='\t')¶
Bases:
arjuna.tpi.engine.data_markup._DataMarkUp
Data File Data Source
- Parameters
path – Path of the file
- Keyword Arguments
delimiter – (Optional) Delimiter to be used for text files. Default is tab ( )
- build(context='Test') arjuna.engine.data.source.DataSource ¶
Create corresponding DataSource
- class arjuna.tpi.engine.data_markup.data_function(func, *vargs, **kwargs)¶
Bases:
arjuna.tpi.engine.data_markup._DataMarkUp
Data Function/Generator Data Source
- Parameters
func – Function object to be called.
vargs – Any number of objects to be passed to function when calling it.
*kwargs – Arbitrary keywrod arguments to be passed to function when calling it.
- build(context='Test') arjuna.engine.data.source.DataSource ¶
Create corresponding DataSource
- class arjuna.tpi.engine.data_markup.many_data_sources(*dsources)¶
Bases:
arjuna.tpi.engine.data_markup._DataMarkUp
Multiple Data Source
- Parameters
*dsources – Any Arjuna Data Source
- Keyword Arguments
delimiter – (Optional) Delimiter to be used for text files. Default is tab ( )
- build(context='Test') arjuna.engine.data.source.DataSource ¶
Create corresponding DataSource
- class arjuna.tpi.engine.data_markup.record(*vargs, **kwargs)¶
Bases:
arjuna.tpi.engine.data_markup._DataMarkUp
Data Record Data Source
- Parameters
vargs – Any number of objects
*kwargs – Arbitrary keywrod arguments
- class SingleDataRecordSource(record, *, context)¶
Bases:
arjuna.engine.data.source.DataSource
- get_next()¶
- reset()¶
- should_exclude(data_record)¶
- build(context='Test') arjuna.engine.data.source.DataSource ¶
Create corresponding DataSource
- get_record(*, context='Test')¶
- class arjuna.tpi.engine.data_markup.records(*records)¶
Bases:
arjuna.tpi.engine.data_markup._DataMarkUp
Multiple Data Record Data Source
- Parameters
*records – Any number of record objects
- class DataArrayDataSource(records, *, context)¶
Bases:
arjuna.engine.data.source.DataSource
- get_next()¶
- reset()¶
- should_exclude(data_record)¶
- build(context='Test') arjuna.engine.data.source.DataSource ¶
Create corresponding DataSource
- get_records(*, context='Test')¶