Forum Discussion
What I am doing is creating the data in a development environment website. I do not have access to the data in a database other than if I am selecting the data from the user interface. I can create multiple items with the same name as the data will be deleted in time. There are multiple testers on our systems who can lock up a record what I want to do is set up a test where I create 10 or 20 records and then randomly select one to update, clone or do other things to the data. I do not store the data as that is done by our development environment.
If you were creating these 10 or 20 records manually, how would you do it?
- Largent8034 years agoContributor
I am entering one set of data only once and entering the various fields within the environment. Then I select Create and the system automatically generates the data within the environment. What I want do is be able to have the same data 10 or 20 times.
I don't need to change the data each time I create new information. I will be looking at creating a script to do that later but all I want right now is to be able to enter one set of data multiple times.
- AlexKaras4 years agoChampion Level 3
Hi,
> I want right now is to be able to enter one set of data multiple times.
Isn't the Count column of the Execution Plan is what you are looking for?
- Largent8034 years agoContributor
I did get the system to a point where it was creating the same item multiple times. This maybe off base for this question I managed to create the dataloop but with the csv you suggested however, I have multiple required textnodes and panels with data names in them. My csv has 100 pieces of test data with the in it is there away that needs to be setup for the script to recognize those panels that need to be filled with the data from the csv.
Below is an example of the csv with the title of the item:
Source Deal Name Banker LPA/Credit Analyst Department Deal Comments SXXXX Bugs Bunny Benne Rollins Whitney Robers Accounting New Deals Starting up textnode13 Click ... Clicks the 'textnode13' control.
panelAnIndividualName2 Click ... Clicks the 'panelAnIndividualName2' control.
panel31 Click ... Clicks the 'panel31' control.
panel272 Click ... Clicks the 'panel272' control.Or is there away to make it so my script is set up to receive the random data from the csv in the Source Textnode, Deal Name Textnode, LPA/Credit Analyst Text node, Deparment Text Node and then Deal Comments.
The text nodes all have the panel information in them.
- Marsha_R4 years agoModerator
You can use a csv or Excel file and only have one data line in it for now and use the data driven test with a For loop inside it to count the new records. This has the advantages of 1) letting you edit the data outside the test so you don't have touch the code 2) being scalable, so later on you could have different versions of the data easily, again without changing the code. In your example, it would create 10 (or 20) records for each line in the file.
You can create variables to hold that data and use a For loop to go through the data entry using the variables. If you ever want to change the data, you will have to edit the variables. If you ever want to have multiple sets of data, you will have to add more variables and change your code.
Related Content
- 6 years ago
- 7 years ago
- 3 years ago
Recent Discussions
- 2 days ago