问题
Is there any tool or methods to do automation testing for games developed in cocos2d-x? FYI: Appium and other tools try to find Android and IOS elements, I don't use them in the games.
回答1:
I highly recommend you to use Image Recognition for Mobile App Game Testing, Appium too supports Image recognition.
You can use applitools for doing automatic image comparison with Appium. In fact Applitools automates not only the capturing of the screenshot, but also it's validation, and has sophisticated algorithms to avoid false failures of the image comparison. Applitools' Selenium SDK works out of the box with Appium as well as with any other WebDriver implementation, and is cross-platform and cross-device. Applitools have a free registration plan, and the SDKs are open source and available on GitHub.
For More Information Use below links Image Recognition Part 1 and Image Recognition Part 2 also take a look at Sikuli
来源:https://stackoverflow.com/questions/32331448/cocos-2d-x-automation-testing-tool-for-mobile-games