Re: [Sikuli-driver] [Question #270543]: Running tests with multiple sets of data

2015-08-19 Thread RaiMan
Question #270543 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270543

Status: Open = Answered

RaiMan proposed the following answer:
at the base line you can use the Python scripting features to create
loops, that run the same test with different data.

If you have any data driven test framework, that can access Java
libraries, then it might be possible to integrate SikuliX (an example is
RobotFramework)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #270543]: Running tests with multiple sets of data

2015-08-19 Thread Sahil Dev
Question #270543 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270543

Description changed to:
QUESTION 1) Data driven tests


Is it possible to run data driven tests in Sikuli? That means, if one wants to 
perform the same operations with multiple sets of data, i.e. if one wants to 
check how the application responds to ten separate sets of data one could 
either run;

A.ten separate tests each with its own set of data
B.Alternatively create a data driven test with a loop that runs ten times. In 
each of the ten iterations, the test is driven by a different data set 


Of course, option I is straight forward, right?
Is option B possible in Sikuli?

QUESTION 2: This is simple one but I think the answer for this is NO

Is recording possible in Sikuli? That is, user records as he proceeds
with a test case in his application and the script is automatically
created?

Can anyone please help?

P.S. I ahve NOT yet satrted using/evaluating Sikuli.
Firstly, I'm making a note of my requirements so that based on these 
requirements, I can test the feature of Sikuli whilst prototyping.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #270543]: Running tests with multiple sets of data

2015-08-19 Thread Sahil Dev
Question #270543 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270543

Status: Answered = Open

Sahil Dev is still having a problem:
Thanks a lot. I think, you missed my second question. Re-writing it
below;

QUESTION 2: This is simple one but I think the answer for this is NO
 
Is recording possible in Sikuli? That is, user records as he proceeds with a 
test case in his application and the script is automatically created?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #270543]: Running tests with multiple sets of data

2015-08-19 Thread RaiMan
Question #270543 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270543

Status: Open = Answered

RaiMan proposed the following answer:
Yep, missed it ;-)

no recording feature currently.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #270543]: Running tests with multiple sets of data

2015-08-19 Thread Sahil Dev
New question #270543 on Sikuli:
https://answers.launchpad.net/sikuli/+question/270543

Data driven tests


Is it possible to run data driven tests in Sikuli? That means, if one wants to 
perform the same operations with multiple sets of data, i.e. if one wants to 
check how the application responds to ten separate sets of data one could 
either run;

A.ten separate tests each with its own set of data
B.Alternatively create a data driven test with a loop that runs ten times. In 
each of the ten iterations, the test is driven by a different data set 


Of course, option I is straight forward, right?
Is option B possible in Sikuli?

Can anyone please help?

P.S. I ahve NOT yet satrted using/evaluating Sikuli.
Firstly, I'm making a note of my requirements so that based on these 
requirements, I can test the feature of Sikuli whilst prototyping.



-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #270543]: Running tests with multiple sets of data

2015-08-19 Thread Eugene Maslov
Question #270543 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270543

Eugene Maslov proposed the following answer:
Hi Sahil,
I run data driven tests with python unittest.
It's possible to modify __init__ procedure of the test template, that all the 
tests are derived from, in a way to accept parameters, and then write a hub 
python script which adds the test cases to the test suite with these 
parameters, including calling same test cases with different data sets if you 
want.

Something like that.
=
test template sample:
class testbase(unittest.TestCase):
def __init__(self,*args):
self.testname=args[0]   
super(testbase, self).__init__(self.testname)
#get parameters of the current run, coming from start.py script:
self.cleansettings=args[1]
self.start=args[2]
self.kill=args[3]
self.apptype=args[4]
def setUp(self):
pass
def tearDown(self):
 pass

=
test case sample:
class myapp_001(testbase.testbase): 
def test_001(self):
if self.start==start:
SCREEN.click()
=

The following lines add tests to test suite in the hub start.py script
('clean','start', etc.  are options of the test execution, which may
contain necessary data that you want):

thesuite=unittest.TestSuite()
thesuite.addTest(myapp_001(test_001,'clean','start','nokill','wide'))
thesuite.addTest(myapp_001(test_001,'noclean','start','kill','narrow'))
fp=file('c:/temp/result.html','wb')
runner=HTMLTestRunner.HTMLTestRunner(stream=fp,title=' My auto 
tests',description='My auto  tests')
runner.run(thesuite)
fp.close()
=

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp