Automate NSP Inventory Export Using WorkFlows
This tutorial shows the sample workflows to get/find NSP network inventory and output its data. This can be used in automation testing.
This tutorial requires a NSP managed network with at least one SROS device. In order to exercise all examples, a minimum of 3 SROS devices is recommended. Devices can be either classic managed, via NFM-P, or model driven.
This tutorial is meant as a proof of concept and as an example method for configuring devices. It is not designed to be implemented, and must not be used as is, in a production network. It is intended to guide development of an OSS.
This tutorial has only been tested with SROS-based network elements in a lab environment and may not be suitable for performance or scalability in a production network.
This tutorial has been tested with and is supported in NSP 25.8.
Go to NSP workflows
Import NSP Inventory workflows. Click the Import on the top right, choose "File System". (In this example, we are using File System).
Imported workflow for automation test case inventory APIs.
The following link provides the access to all the workflows above
https://network.developer.nokia.com/static/InventoryExportAPITestCase.zip
Run the AtcTestSuite-InventoryReport, select this workflow, then choose "Execute" from its drop down menu. This is the main workflow, would trigger all the rest inventory APIs listed in the above window and execute all of them. You can also run each workflow individually.
To check the result, go to Workflows -> Workflow Executions, you would see all the test result:
You can select the testSuite Inventory Report and from its drop down menu, choose Quick View, it has the complete report for each individual workflow's result:
Here is an quick view of individual workflow portUp sample:
This use case demonstrates how workflows can be used to run automation tests for retrieving data from the NSP network inventory. You can clone or modify the workflow APIs to access the information according to your specific requirements.