View Issue Details

IDProjectCategoryView StatusLast Update
0010038CTT UA Test Case1 - Script Issuepublic2024-11-26 12:20
ReporterGigantic Heisenberg Assigned To 
PrioritylowSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version1.04.11.504 
Summary0010038: writableTestItems cannot be incremented.
Description

When executing ServerProjects\Standard\maintree\Subscription Services\Subscription Publish Min 02\Test Cases\004.js stand-alone,
writableTestItems are empty and neither be incremented nor written.

For fixing this I added

    //  We only need the data types of writableTestItem to make UaVariant.Increment( { Item: writableTestItems[i] } ) runnig properly;
    // So make a read request to obtain Value and type.
    // Write the result to writableTestItems
    if( ReadHelper.Execute( { NodesToRead: writableTestItems } ) )
    {
        for( var i=0; i<testItems.length; i++ )
        {
            // keep data type but delete value, i.e. set it to min
            dataType = writableTestItems[i].Value.Value.DataType;
            UaVariant.SetValueMin({Type: dataType, Value: writableTestItems[i].Value.Value});   
        }

    }
    else {
        addError("Unable to get initial values. Aborting.");
        stopCurrentUnit();
    }

in the initialize.js (just before // after each test, rever the values of the test-items back to their initial state
Test.PostTestFunctions.push( __revertOriginalValues );)

Steps To Reproduce

Execute the mentioned test standalone

TagsNo tags attached.
Files Affected

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-11-26 12:20 Gigantic Heisenberg New Issue