Questions tagged [dataprovider]

A property of the Flex DataGrid and AdvancedDataGrid used to specify a data source.

497 questions
3
votes
1 answer

PHPUnit DataProvider for functional test in symfony2

I am trying to do a functional test on a form as following // happy scenario public function testRegisterActionInvalidCase($password, $confPassword, $gender, $country, $city, $schoo, $schoolName, $shortName, $keyWords, $expectedMessage) { $user…
Dahab
  • 518
  • 1
  • 5
  • 23
3
votes
1 answer

Can you use TestNG's dataprovider with JBehave?

I'm looking for a BDD library that will work with TestNG (this is important because we already have a configured CI server that is integrated with TestNG). I found JBehave but want to know if it is possible to use features such as TestNG's data…
Jack Allan
  • 14,554
  • 11
  • 45
  • 57
3
votes
2 answers

Extending PHPUnit_Framework_TestCase while using dataProviders

I'm fairly new to using PHPUnit and I'm trying to use it more effectively by using data providers. I can get data providers to work when writing a normal test case, however I find that I'm rewriting my setup code for across several testcases. So…
Jordan
  • 183
  • 1
  • 10
3
votes
2 answers

SubSonic, SQLite and Unable to find Data Provider?

I am getting started with SubSonic. I wanted to change my db to sqlite and i have this in my config file
user34537
3
votes
1 answer

Yii dataProvider the data order given by an array

I've searched a lot about that and didn't got the answer so far. Here's the problem: I'm creating CDbCriteria object to get proper data: $criteria = new CDbCriteria; $criteria->compare('id_post', $arrayContents); where $arrayContents is an array…
user2399760
  • 27
  • 1
  • 6
3
votes
1 answer

Testing Included or Local Files in PHPUnit

I have a simple method inside of a class that does the following class ToBeTested { public function getLocalSettings() { require_once 'local.php'; return (isset($configSetting['foo'])) ? true : false; } …
DaOgre
  • 2,080
  • 16
  • 25
3
votes
4 answers

Flex datagrid sorting not preserved across dataprovider changes

I have a flex datagrid. it is bound to an array collection. if the user sorts on column X it works fine. then, if the user causes the array collection to change, the datagrid forgets that it was sorted on column X. what do I need to do to preserve…
Jorel
  • 153
  • 2
  • 14
3
votes
2 answers

CBO.FillCollection throwing "No parameterless constructor defined for this object." error

I'm trying to fill a collection from an IDataReader that was returned by another method... for some reason it keeps throwing a "No parameterless constructor defined for this object." error for this line: List names =…
Matt
  • 5,547
  • 23
  • 82
  • 121
3
votes
1 answer

How do I download the DB2 Data Server Provider 9.7 for .Net?

I have been successfully using Entity Framework 4.1 with my Sql Server for quite a while now. The company is integrating with corportate now, which uses DB2 iSeries 5.4. I need to figure out how to integrate Entity Framework. From what I can…
Scottie
  • 11,050
  • 19
  • 68
  • 109
3
votes
1 answer

How to configure MvcMusicStore .Net WebApp with MySQL?

I'm completely lost. I'm trying to setup the MvcMusicStore .Net app (http://mvcmusicstore.codeplex.com/) with MySQL but I got several errors when I compile the project; I've read the documentation at http://dev.mysql.com about using .Net Entity…
Max
  • 4,965
  • 17
  • 49
  • 64
2
votes
1 answer

DropLink datasource item reference with custom dataprovider in Sitecore

How do bind a DropLink using a custom dataprovider? More info: I am trying to build a product catalogue site using Sitecore. Each product in the sitecore content tree can have a star rating and short text review attached to it (which will be linked…
Bevan
  • 281
  • 6
  • 17
2
votes
1 answer

Error: Unknown dataProvider function: toJSON

import restProvider from 'ra-data-simple-rest' const dataProvider= process.env.REACT_APP_API+'/api/link'
Nuhman pk
  • 23
  • 3
2
votes
1 answer

The response to 'getList' must be like { data : [...] } , but the received data is not an array. React admin error

The response to 'getList' must be like { data : [...] }, but the received data is not an array. The dataProvider is probably wrong for 'getList' Response { "data": [ { "id": 6, "product_title": "Foam chair", …
indianwebdevil
  • 4,879
  • 7
  • 37
  • 51
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
1 answer

Vaadin Crud UI. Axes are not sorted correctly

Why am I getting my axes like this? How can I sort them currectly. I'm using Vaadin Crud component (not Grid). Crud crud = new Crud<>(OpvUser.class, createUserEditor()); crud.getGrid().addItemDoubleClickListener(e -> crud.edit(e.getItem(),…
Sayer Arab
  • 21
  • 4