What are strategies to construct reusable Sikuli screen shot libraries?

后端 未结 4 1665
-上瘾入骨i
-上瘾入骨i 2021-01-31 06:20

I would like to use Sikuli to automate both GUI apps and Web apps running within browser on Mac OS X and Windows. My purpose is currently less for testing, and more for GUI auto

4条回答
  •  没有蜡笔的小新
    2021-01-31 06:54

    As a Java developer (not sure if this applies to many sikuli users): I rolled my own implementation. I created a singleton FileDirectory object which has methods for default directories (resources, patterns, screenshots). And whenever I had sikuli take a screenshot I would save it to this default directory (which was created if it didn't exist on start-up). My application would than log the screenshot. Using an html logger I could link to the screenshot directory. So my html logs had links embeded in them to the images the application took.

    I know this might seem difficult at first, but it ended up providing exactly what use case needed.

提交回复
热议问题