重放示例会话

介绍如何使用多个 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

要运行 replay 命令:

  1. 在命令提示符窗口中,导航到安装了 EPM Automate 的相应目录;例如 C:\Oracle\EPM Automate\bin
  2. 服务管理员身份登录到环境,然后执行 replay 命令:

    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