Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 11 Current »

Opkey is a no-code continuous testing platform for web, mobile, and ERP applications. It enables businesses to automate test case generation, accelerate regression cycles, enhance test coverage, and reduce costs. Recognized by industry analysts like IDC, Gartner, and Forrester, Opkey is transforming the future of test automation.

FlexDeploy's runOpkeyTest operation enables seamless Opkey integration, allowing teams to execute test suites and review results directly within FlexDeploy. This integration streamlines testing within CI/CD pipelines, ensuring software quality and faster delivery.

Test Instance Properties

Property Name

Property Code

Required

Description

Opkeyone Server URL

FDOPKEY_SERVER_URL

Yes

Provide Opkeyone server URL. (ex: https://hostname.opkeyone.com/)

Opkey User Name

FDOPKEY_USERNAME

Yes

Provide Opkey username.

Opkey Password

FDOPKEY_PASSWORD

Yes

Provide Opkey password.

Opkey CLI jar path

FDOPKEY_CLI_JAR_PATH

Yes

Provide Opkey jar path. (ex: C:/opk/OpKeyCLI-0.6.jar or /u01/opk/OpKeyCLI-0.6.jar)

Inputs

Property Name

Property Code

Required

Description

Opkey Project Name

FDOPKEY_INP_PROJECT_NAME

Yes

Provide the Opkey project name.

Opkey Test Suite Path

FDOPKEY_INP_TEST_SUITE_PATH

Yes

Provide the Opkey test suite path. (ex: Project Workspace\9Test\FSM Validate)

Opkey Agent Name

FDOPKEY_INP_AGENT_NAME

Yes

Provide the agent name. (ex: Agent1,Agent2)

Opkey Plugin Name

FDOPKEY_INP_PLUGIN_NAME

Yes

Provide the plugin name. (ex: OracleFusion,web,Opkey OracleEBS)

Opkey Additional Arguments

FDOPKEY_INP_ADDITIONAL_ARGUMENTS

No

Provide any additional arguments. If you want to pass Global Variables then you can do something like

--global-variable user=FD_ADMIN

Outputs

Output Name

Description

FDOPKEY_OUT_TEST_SUITE_STATUS

Test suite status

FDOPKEY_OUT_TEST_COUNT_RUN

Total Test count

FDOPKEY_OUT_TEST_COUNT_SUCCESS

Total successful Test count

FDOPKEY_OUT_TEST_COUNT_FAILED

Total failure Test count

FDOPKEY_OUT_TEST_COUNT_SKIPPED

Total skiped Test count

Artifacts

This operation doesn’t consume or produce any artifacts.

Endpoint Selection

This operation will select all available endpoints associated to the target.

Endpoint Execution

This operation will execute on all of the selected endpoints and will execute on each of the selected endpoints.

Additional Configuration Information

Credential information or other data for your test cases is often passed at runtime to address security concerns or because values may change frequently. This ensures that test cases don't need to be modified after they've been created. To simplify this process, Opkey provides the option to pass these values using a command called --global variable.

Now, let's take a look at an example of how this can be used in FlexDeploy.

Before you execute the test suite, ensure that you have created global variables in Opkey, such as FSMUserName,FSMPassword, which can be mapped to your test case. These global variables are declared within Opkey and allow you to pass values dynamically at runtime during the execution.

For instance, FSMUserName,FSMPassword could be a global variables that stores a user’s login info, which will be referenced in your test case.

image-20250220-110324.png

Using global variables in FlexDeploy Opkey Plugin

The FlexDeploy Opkey Plugin (runOpkeyTest operation)has a input option called Additional Arguments, which enables you to pass extra commands or parameters to the Opkey test during execution. You can specify these additional arguments in FlexDeploy while triggering the test.

For example, you can pass the global variable FSMUserName,FSMPasswordas a runtime parameter, allowing the test suite to dynamically use the value assigned to FSMUserNameand FSMPassword

Example 1

FlexDeploy enables secure passing of dynamic values, such as FSMUserName and FSMPassword, by referencing either Target Group Properties or Integration Instance Properties. In FlexDeploy YAML configuration, Groovy evaluates these values first before they are passed into the test workflow. This allows you to use the current target properties directly without qualifications, simplifying the process. However, when dealing with sensitive information like password properties, you do not want them to be evaluated. Instead, these values should be passed as environment variables, which requires qualifying the property with either the Target Group Code or Integration Instance Code, depending on where the property is located.

For example, if you have a Cloud Account configured in FlexDeploy with properties for username and password, you can dynamically reference these properties and concatenate them with the Target Group account code. This approach ensures that credentials are securely passed during test or deployment execution without exposing sensitive information.

For Windows

---
testName: Opkey Demo
description: Generated Opkey Test
workflow:
  name: Opkey-runOpkeyTests
  inputs:
    - code: OPKEY_INP_PROJECT_NAME
      value: Flexagon
    - code: OPKEY_INP_TEST_SUITE_PATH
      value: 'Project Workspace/FSM/FSM Validate'
    - code: OPKEY_INP_AGENT_NAME
      value: utlwt01
    - code: OPKEY_INP_PLUGIN_NAME
      value: OracleFusion
    - code: OPKEY_INP_ADDITIONAL_ARGUMENTS
      groovy: TRUE
      value: '"--global-variable FSMUserName=%" + FDFSM_CLOUD_ACCOUNT_CODE + "_FDFSMACCT_USERNAME%,FSMPassword=%" + FDFSM_CLOUD_ACCOUNT_CODE + "_FDFSMACCT_PASSWORD%"'
    - code: TEST_INSTANCE
      value: OPKEYTEST    

For Linux

---
testName: Opkey Demo
description: Generated Opkey Test
workflow:
  name: Opkey-runOpkeyTests
  inputs:
    - code: OPKEY_INP_PROJECT_NAME
      value: Flexagon
    - code: OPKEY_INP_TEST_SUITE_PATH
      value: 'Project Workspace\FSM\FSM Validate'
    - code: OPKEY_INP_AGENT_NAME
      value: utlwt01
    - code: OPKEY_INP_PLUGIN_NAME
      value: OracleFusion
    - code: OPKEY_INP_ADDITIONAL_ARGUMENTS
      groovy: TRUE
      value: '"--global-variable FSMUserName=\$" + FDFSM_CLOUD_ACCOUNT_CODE + "_FDFSMACCT_USERNAME,FSMPassword=\$" + FDFSM_CLOUD_ACCOUNT_CODE + "_FDFSMACCT_PASSWORD"'
    - code: TEST_INSTANCE
      value: OPKEYTEST      

Test-Suite Execution Guide

Opkey Test Suite Execution Guide

  • No labels