无法使用服务器创建Klov报告

时间:2018-08-28 13:35:01

标签: specflow

数据未显示 在服务器上运行mongodb和klov报告

代码

var enter code here klovReporter = new KlovReporter();

    klovReporter.LoadConfig(configFilePath);

    // specify mongoDb connection
    klovReporter.InitMongoDbConnection("192.168.28.88", 27017);

    // specify project ! you must specify a project, other a "Default project will be used"
    klovReporter.ProjectName = "CsharpReports";

    // you must specify a reportName otherwise a default timestamp will be used
    klovReporter.ReportName = "Build " + DateTime.Now.ToString();

    // URL of the KLOV server
    klovReporter.KlovUrl = "192.168.28.88:8090";

    _extent = new ExtentReports();
    _extent.AttachReporter(klovReporter);

0 个答案:

没有答案