问题描述
我想通过 Jenkins 运行 .qvw 文件.
I want to run .qvw file through Jenkins.
要运行 qlikview 文件,我正在使用批处理文件,它工作正常,我在批处理文件中使用以下命令"path\qv.exe"/r "path\myapplication.qvw"
To Run a qlikview file I am using batch file it is working fine ,I am using below command in batch file"path\qv.exe" /r "path\myapplication.qvw"
这个命令正在重新加载我的应用程序,我想由 Jenkins 来完成.有没有人做过这个.
This command is reloading my application ,I want to do it by Jenkins.Has anyone done this before.
当我尝试通过 jenkins 作业在批处理命令之上运行时,它一直在运行.
When I am trying to run above batch command through jenkins job it is continuously running.
"path\qv.exe"/r "path\myapplication.qvw"
"path\qv.exe" /r "path\myapplication.qvw"
推荐答案
一种选择可能是使用 VBS 来打开、重新加载、保存和关闭,就像下面提供的 OpenSaveClose.vbs.然后就可以在CMD文件中使用了:wscript OpenSaveClose.vbs QvDoc.qvw
One option may be to have VBS for opening, reloading, saving and closing, like OpenSaveClose.vbs provided below.Then you can use it in CMD files: wscript OpenSaveClose.vbs QvDoc.qvw
REM OpenSaveClose.vbs
Dim MyApp, MyDoc
Set MyApp = CreateObject("QlikTech.QlikView")
Set MyDoc = MyApp.OpenDocEx(Wscript.Arguments.Item(0),0,False)
MyDoc.GetApplication.WaitforIdle
REM MyDoc.Reload or whatever
MyDoc.SaveAs(Wscript.Arguments.Item(0))
MyDoc.GetApplication.WaitforIdle
MyDoc.CloseDoc
MyApp.Sleep 2000
MyApp.Quit
Set MyDoc = Nothing
Set MyApp = Nothing
这篇关于如何通过 Jenkins 运行 .qvw (qlikview) 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!