Skip to main content

Selenium based automation on Oracle CPQ UI

Project description

Oracle CPQ UI Automation

Selenium based automation bot to do routine and time consuming tasks on Oracle CPQ Cloud application.

Pre-requisites

  • Chrome Browser should be installed
  • Supports Python >= 3.9
  • CPQ account should have admin access with proxy login option

Installation

pip install py-oracle-cpq-ui-automation

Usage

Just type import oracle_cpq_ui_automation in the module you want to use Oracle CPQ UI Automation.

Example

import oracle_cpq_ui_automation

#Initialise the automation class with SiteName, username, password
main = oracle_cpq_ui_automation("<cpqInstanceName>","<userName>","<password>") 

#It will autolaunch the Chromedriver browser

#Login into the CPQ Site
main.login()

Automation Functions

1) Partner Orgs: Create Groups

Navigate to Partner Orgs page and check if the given groups exists in the partner org, else it will create the group

Inputs:

  1. groupsToCreate = [ [<groupName | string>, <groupVarName | string>, <addAllUsersToGroup | boolean> ] ]
  2. exceptionListOfCompanies = []
  3. noOfPagesToSkip = -1

Code:

main.createGroupsinPartnerOrg(
    [["<groupName>","<groupVar",True]], #groupsToCreate #2D Array of mixed datatype
    [], #exceptionListOfCompanies = [] #Array of strings
    -1 #noOfPagesToSkip = -1
)

2) Extract and Save BML Libraries as Text files.

Navigates to Util library page and save all the util libraries as text file

Inputs:

  1. skipLibraries = 0 #Skip no.of.libraries to save

Code:

main.extractBmlLibrary(skipLibraries=0)

Output:

The output folder will be created and files will be saved locally in the below path

D:\
   > <cpqInstanceName
      > BML Library
          > library1.txt
            library2.txt

Bot Features

  • Automation Bot will automatically download the compatible chrome driver version based on your installed browser.
  • Automations are UI-based so users can monitor, if any unexpected behaviour occurs then can close the automation to avoid problems.

Authors & Contributors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-oracle-cpq-ui-automation-1.0.3.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_oracle_cpq_ui_automation-1.0.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file py-oracle-cpq-ui-automation-1.0.3.tar.gz.

File metadata

File hashes

Hashes for py-oracle-cpq-ui-automation-1.0.3.tar.gz
Algorithm Hash digest
SHA256 106bc54fa6cf60ef8bc1dd8706109ad020c53ae4dc31c376e4836efb39abbbd0
MD5 6e618ee56014427b965d9a7f90e4e781
BLAKE2b-256 a4f04bef79f73ce8c940f17a4c3d6116ce9ab1c95f17c5382123f59b17194479

See more details on using hashes here.

File details

Details for the file py_oracle_cpq_ui_automation-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for py_oracle_cpq_ui_automation-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6e3fb048d5be5be6f44731edb64f1f6f4f97e9f1f821caa1b48a48f34159d29b
MD5 8172a96703b0fe761e0990187750ca97
BLAKE2b-256 201954c8cc0cb9d3197653de4efc5d408eac2804d80fa08c34fd25b997693f35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page