??θ???React Native????????
?????mengyidan1988 ???????[ 2016/9/12 11:10:12 ] ??????????????? ???????
??????? Macaca ?????????????? ??????????????????????????????????????ζ? Native ????????в???????? React Native ??????????????? Native ????????? iOS?? Android ????????????????????????????Macaca??Native???ü??ɡ?
???????
??????????? React ??? autoresponsive-react ?????????? UI ????????Щ???????????????????У?顣
describe('base'?? function() {
this.timeout(5 * 60 * 1000);
var driver = wd.initPromiseChain();
driver.configureHttp({
timeout: 300 * 60 * 1000
});
before(function() {
return driver
.initDriver();
});
after(function() {
return driver
.sleep(1000)
.quit();
});
it('#1 login picture should be the same.'?? function() {
return driver
.sleep(40 * 1000)
.waitForElementByName('autoresponsive')
.takeScreenshot()
.then(imgData => {
var newImg = new Buffer(imgData?? 'base64');
var screenshotFolder = path.resolve(__dirname?? '../screenshot');
var oldImgPath = path.join(screenshotFolder?? process.env.platform === 'android' ? 'android.png' : 'ios.png');
var diffImgPath = path.join(screenshotFolder?? process.env.platform === 'android' ? 'android-diff.png' : 'ios-diff.png');
return diffImage(oldImgPath?? newImg?? 0.3?? diffImgPath);
})
.then(result => {
result.should.be.true();
})
.catch(e => {
console.log(e);
});
});
});
??????????? Native-CI
????Native-CI ?????????????Macaca????React Native UI?????????????????????????????????Build?????
????Comparison
????Image diff ??????????????????Σ???UI???н?????????????????ó????????????????????
?????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11