Test Loop System

Asked by Georg Steyn

Hello

I know a similar question have been asked:
https://answers.launchpad.net/sikuli/+question/141373

But i want to go bit further. Need some advice and help. Please

Basically imagine a create account screen where you fill in unique info that you want to use later.

I want to parse a file with names. Parse another file with surname and another with ID number ect ect.

It would be some kind of "parse" and "for" system i guess and import the .sikuli folder with the .py names and other .sikuli folder
with the .py surnames ect ect.

Don't know how to go about it really. Bit new with python also.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Cam (ccreynolds2015) said :
#1

You described what you're doing, but why are you doing it? Wouldn't it be easier to access the database for something and add users that way?

Revision history for this message
Georg Steyn (georgsteyn) said :
#2

That is one way but for a other type of test.
The whole ideas is to test the software for manual input.

Just like 5 or 10 new users and then after that do few other processes and
use the same users.

We are testing the GUI. Thats why we are using sikuli after all.

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

These are basic questions, about how to read from files and then use the input you got in some scripted workflow on the automated screen.

To get nearer to a solution, you have to do the following steps:
- design and create the files, that you need as input
- learn how to read files in Python (tutorials in the net)
- decide how to use the file input in your script
- try to script a sample workflow

if you get problems in the last step, then you might come back to here with your script and ask concrete questions.

Revision history for this message
Georg Steyn (georgsteyn) said :
#4

Thanks RaiMan, that solved my question.

Revision history for this message
Georg Steyn (georgsteyn) said :
#5

Thank You very much.

So basically do it the Python way.