How does your organisation setup testing data? [cl

2019-04-16 04:56发布

I work as a tester for an organisation that has a web service as it's critical application. Currently we load massive amounts of test data through the web front end, as this is how it would be done in the real world.

This gives the data an amount of legitimacy and prevents errors in the format of the data. However it is very time consuming to load the data in this way and I often wonder if loading data directly to the database would be more productive.

Have other people had this decision, which option did you opt for? Is there another solution that would give both speed and legitimacy of the data.

4条回答
Lonely孤独者°
2楼-- · 2019-04-16 05:22

In the end we decided to migrate from a system where data is setup via the front end to a data insert system. But keep an eye on the data to make sure it is real world. This has worked well and the tests run much faster.

查看更多
We Are One
3楼-- · 2019-04-16 05:31

This comes from a developer's perspective rather than a tester's, so it may or may not apply.

I can't speak for the organization as a whole, but in our project we have spent some time creating "real-world-like" data that we load into the test database using SQL scripts. This data is a combination of real data from the production environment and data that is tailored to represent specific "problem situations" in our product.

The scripts are run automatically as part of building our software and are used by automated integration tests, driven by a unit testing framework. These tests will test finding, creating, editing and deleting data through various interfaces that are available.

During such a build and test run the test database is reset and reloaded with data on a number of occasions. This is done in order to remove dependencies between tests; one test should not rely on data created or modified by another test, and also because the data for some tests might differ from that data of other tests. A majority of all tests are executed based on the same test data though.

Setting up this test data (and maintaining it) has been (and is sometimes) somewhat of a headache, but in the long run it has worked well in our case.

查看更多
做个烂人
4楼-- · 2019-04-16 05:31

In most of same situation, Tester prefers to load test data using scripts cause not possible to load the data [time consueming] using UI part.And for tester key-point, each test should be perform on only single row data or whole db data. So for better testing follow way to make scripts to load data. and one more pont here, Make script is once time investment to load data for whole project.

查看更多
聊天终结者
5楼-- · 2019-04-16 05:39

I had the same problem with test data. In our organization, there is a batch job which populates the database with production like data. I co-ordinate with functional testers to get the testdata for my loadrunner scripts.

查看更多
登录 后发表回答