範例重現階段作業

描述如何使用多個 HAR 檔案執行重現命令。

本節假設如下:

  • 您建立了下列 HAR 檔案。每個 HAR 檔案可能包含相同的一組活動。請參閱建立 HAR 檔案以取得詳細資訊。

    • C:\Oracle\EPM Automate\forecast_vision_plan1.har
    • C:\Oracle\EPM Automate\forecast_vision_plan2.har
    • C:\Oracle\EPM Automate\forecast_plan2.har
  • 您建立了一個包含下列內容的重現檔案 C:/Oracle/EPM Automate/vision_forecast_replay.csv (請參閱建立重現檔案以取得詳細資料):

    註:

    在重現檔案中的檔案路徑中使用斜線 (/) 作為目錄分隔符號;請勿使用反斜線 (\)。

    john.doe@example.com,examplePwd,C:/Oracle/EPM Automate/forecast_vision_plan1.har
    john.doe@example.com,examplePwd,C:/Oracle/EPM Automate/forecast_vision_plan2.har
    john.doe@example.com,examplePwd,C:/Oracle/EPM Automate/forecast_plan2.har

若要執行重現命令,請執行下列動作:

  1. 在「命令提示」視窗,導覽至安裝 EPM Automate的目錄,例如 C:\Oracle\EPM Automate\bin
  2. 服務管理員的身分登入環境,然後執行重現命令:

    epmautomate login john.doe@example.com examplePassword https://test-cloud-pln.pbcs.us1.oraclecloud.com myIdentityDomain

    epmautomate replay "c:/Oracle/EPM Automate/vision_forecast_replay.csv" duration=12 lagTime=5.5 trace=true

    EPM Automate 會於主控台顯示重現資訊,並在指定期間過後結束處理 (在上述範例中為 12 分鐘)。它也會建立追蹤資料夾和檔案,因為前面的命令包含 trace=true 參數。

    因為命令是從 C:\Oracle\EPM Automate\bin 執行,EPM Automate 會將追蹤檔案儲存在下列資料夾。請注意,這些資料夾是根據 HAR 檔案名稱來命名。

    • C:\Oracle\EPM Automate\bin\2017_01_08-12_52_37-forecast_plan2-jdoe@example.com
    • C:\Oracle\EPM Automate\bin\2017_01_08-12_52_37-forecast_vision_plan1-jdoe@example.com
    • C:\Oracle\EPM Automate\bin\2017_01_08-12_52_37-forecast_vision_plan2-jdoe@example.com
  3. 登出環境:
    epmautomate logout