2017-02-26 122 views
0
工作

我想設置詹金斯爲執行的一些在線應用連續測試。 我已經在Ubuntu 16.04安裝詹金斯和具有運行Windoze 10 我已經從安裝鳥哥,我試圖讓VncRecorder記錄測試會話的奴隸。 此刻,我的工作只是做一些隨機的東西。控制檯輸出如下:獲取VncRecorder對詹金斯

Started by user anonymous

Building remotely on Nove1 (UITest) in workspace

C:\Users\Jenkins\workspace\TestTester

[WS-CLEANUP] Deleting project workspace...

[WS-CLEANUP] Done

Starting xvnc

[TestTester] $ "C:\Program Files\uvnc bvba\UltraVNC\winvnc.exe" -connect host:76 Recording from vnc server: 172.24.27.210:0

Using vnc passwd file: /var/lib/jenkins/secrets/vncpassword

job/TestTester/14/Recording from server: 172.24.27.210:0, to: /var/lib/jenkins/jobs/TestTester/builds/14/archive/TestTester_14.swf

[TestTester] $ cmd /c call

C:\Users\Jenkins\AppData\Local\Temp\hudson6483326613410629302.bat

C:\Users\Jenkins\workspace\TestTester>echo "Start" "Start"

C:\Users\Jenkins\workspace\TestTester>exit 0

ERROR: File /var/lib/jenkins/jobs/TestTester/builds/14/archive/TestTester_14.swf doesn't exist.

Feature "Record VNC session" failed!

Terminating xvnc.

Finished: FAILURE

我已經花了近2天的谷歌搜索,發現什麼都沒有,所以唉你們好鄉親幫忙嗎?

謝謝!

保羅

回答

0

問題步驟記錄器是一個很酷的Windows工具,它可以記錄你的行動爲一系列圖像。你可以使用這個工具,它是內置到Windows :)

psr.exe [/start |/stop][/output <fullfilepath>] [/sc (0|1)] [/maxsc <value>] 
    [/sketch (0|1)] [/slides (0|1)] [/gui (o|1)] 
    [/arcetl (0|1)] [/arcxml (0|1)] [/arcmht (0|1)] 
    [/stopevent <eventname>] [/maxlogsize <value>] [/recordpid <pid>] 

/start   :Start Recording. (Outputpath flag SHOULD be specified) 
/stop   :Stop Recording. 
/sc   :Capture screenshots for recorded steps. 
/maxsc   :Maximum number of recent screen captures. 
/maxlogsize  :Maximum log file size (in MB) before wrapping occurs. 
/gui   :Display control GUI. 
/arcetl   :Include raw ETW file in archive output. 
/arcxml   :Include MHT file in archive output. 
/recordpid  :Record all actions associated with given PID. 
/sketch   :Sketch UI if no screenshot was saved. 
/slides   :Create slide show HTML pages. 
/output   :Store output of record session in given path. 
/stopevent  :Event to signal after output files are generated. 

PSR Usage Examples: 

psr.exe 
psr.exe /start /output fullfilepath.zip /sc1 /gui 0 /record <PID> 
    /stopevent <eventname> /arcetl 1 

psr.exe /start /output fullfilepath.xml /gui 0 /recordpid <PID> 
    /stopevent <eventname> 

psr.exe /start /output fullfilepath.xml /gui 0 /sc 1 /maxsc <number> 
    /maxlogsize <value> /stopevent <eventname> 

psr.exe /stop 

Notes: 
1. Output path should include a directory path (e.g. '.\file.xml'). 
2. Output file can either be a ZIP file or XML file 
3. Can't specify /arcxml /arcetl /arcmht /sc etc. if output is not a ZIP file. 
+0

謝謝你的建議! 不幸的是,我的確需要一個視頻,但是,這很可能是一個臨時的解決方案工作,直到我能得到VNCRecorder工作:-) – Paul

+0

查找命令行控制的錄像機通過互聯網或採取開源的視頻記錄,並添加命令線觸發它 – SACn