Using Sikuli with BDD (Behave or Lettuce)
Hello,
I am an active user of Sikuli !
I use sikuli with python language and I use to run my scripts by calling java -jar sikulix.jar myscript.sikuli
I would like to know if there is a way to use BDD with my Sikuli test scripts instead of unittest.
My script are looking like this:
--- script sample -------
# -*- coding:utf-8 -*-
"""
ok 2/19/2018 - Windows
"""
import unittest
import os
import datetime
import HTMLTestRunner
import testscontext
import applications
class ApplicationsTes
def setUp(self):
def testLaunchChrom
def testLaunchChrom
if __name__ == '__main__':
tests = unittest.
now = datetime.
filename = "{}-{}-
now.year, now.month, now.day, now.hour, now.minute
)
with open(os.
runner = HTMLTestRunner.
stream = rf, description="Unit testing src/applications. Environment: {}.".format(
)
--- end script -------
Then can I write something like that instead ?
--- script sample -------
Feature: Test Applications launching
Scenario: Launch Google Chrome
When I launch "Google Chrome"
Then I shoud see "google chrome menu icon"
-------
With steps definitions in another .sikuli/.py module of course.
So the main question is: is sikuli behavior compatible with BDD testing and Jerkhin language ?
If yes how to implement Behave/Lettuce BDD tests ?
Thanks,
Adrian
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Adrian Pothuaud for more information if necessary.