Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ViffReport unable to generate report #28

Open
u03024218 opened this issue Mar 22, 2014 · 1 comment
Open

ViffReport unable to generate report #28

u03024218 opened this issue Mar 22, 2014 · 1 comment

Comments

@u03024218
Copy link

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'】 是不是和这个有关系呀?

谢谢大家帮忙

@winsonwq
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants