viff icon indicating copy to clipboard operation
viff copied to clipboard

ViffReport unable to generate report

Open u03024218 opened this issue 10 years ago • 1 comments

I use the example: 'use strict' // build_prod.config.js module.exports = { seleniumHost: 'http://localhost:4444/wd/hub', browsers: ['firefox'/, 'chrome', 'safari', 'opera'/], envHosts: { build: 'http://localhost:4000', prod: 'http://www.ishouldbeageek.me' }, paths: [ '/404.html', '/', '/page2', '/page3', '/page4', '/page5', '/strict-mode', ['/', function clickLink(browser) { // need to return a promise return browser.elementByPartialLinkText('viff').click(); }], ['/', '#main-content'/*, function (browser) { } */], { 'this is a testcase description' : ['/', '#main-content', function(browser) { return browser.maximize(); }]} ], reportFormat: 'file' };

Execute a command :viff build_prod.config.js generate contrast images。but ViffReport unable to generate report。VIFF does not generate the JSON file? I need a grammar for viff。i need【How To Write config.js File】 thankyou。 另外,我英语很差劲。我就在用中文说一遍。我下载了viffreport 想用它生成好看的报告。但是viff生成的结果中没有json文件,我猜测是因为没有这个文件导致打开index。html的时候只能显示为一个框架,而里面的图片没有显示。但是我不知道如何写js来生成对比图片和json,根据首页上的例子,无法实现生成报告的功能。尤其是最后一句【 reportFormat: 'file'】 是不是和这个有关系呀?

谢谢大家帮忙

u03024218 avatar Mar 22 '14 12:03 u03024218

能把viff命令的console error贴上来看看么?

winsonwq avatar Mar 24 '14 00:03 winsonwq