Skip to content

Override Asset Log capture

This article is a part of the Self-paced Learning Series for the Course: First-Hand Experience of Worksoft SaaS.

Please refer to the link for more details on the Course.
 
 Mapping the Worksoft SaaS feature to the Course Context :: Lesson 16:: Topic 5


1. Override Asset Log capture in Test Cycles

    To effectively utilize the Subscription capacity, we will override the Asset log captures to:
  • Screenshot Log Capture Mode: On Error - Real-Time
  • Video Log Capture Mode: On

     Although most of the times the screenshots help us figure out failures (if any), switching on the video would help you with a complete understanding connecting the screenshots and consume lesser minutes than the screenshots with All Instructions - Real-time.

     This will be done with the help of QaCONNECT and hence we will use a JSON format to override the settings.
   
    
2. Practice
  1. Navigate to Data File "Business Test Run Driver Details"
  2. Edit row #1, go to the column "test_cycle_info" and replace the exisiting with the Following:
{
    "testCycleIdentifier": "Smoke Test_${frequency}",
    "testCycleDescription": "To perform Smoke Test for new Driver & Launcher",
    "testCycleFrequency": "Daily",
    "assetLogCapture": {
        "screenshotLogCaptureMode": "21",
        "videoLogCaptureMode": "01",
        "webDriverLogCaptureMode": "00",
        "cloudLogCaptureMode": "00",
        "networkLogCaptureMode": "00",
        "consoleLogCaptureMode": "00"
    },
    "holdAnalyticGenerationCode": 0
}

     3. This asset log capture will override screenshot & video logs based on the values provided. For more details on these value code refer to QaCONNECT docs 
Expand the post "https://www.web.worksoft.cloud/rest/v1/:domainname/executions/testcycle" service>> scroll the page up to view the asset log capture details
     4. Save the cell and save the Data File
     5. Execute the "Test Cycle Runner" Run Definition
     6. Click on "Home" link and you will be able to see the Business workflows scheduled and the 'Screenshots' are "On Error -Real-Time" and 'Video' is "On" and all 'other logs' are "off"


Feedback and Knowledge Base