This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How would be the Linux OS Build number if ALM called from Linux via REST

Manually when we start the ALM Test Execution, Windows OS build number is fetched automatically from server side and audited in History Tab, since ALM application is on Windows machine.

but we have developed a REST based framework from which ALM application is interacted from Linux machine using REST API and ALM application resides in Windows machine.

So now do we need to store OS Build Number and Operating System as Windows details or Linux details via REST API?

If Linux, Operating System name can be fetched easily but what would be the way to fetch Linux OS build number?

I have tried to fetch Client OS details from any REST API response headers (user-agent), but no details found there as-well.

  • 0  

    Hi,

    I assume you're talking about the OS information uploaded while we're performing automatic execution of a test?

    This is actually the OS information of the host, on which the test is executed automatically. And it is uploaded as the properties of a Run entity when the new Run entity is posted, by the test agent. So this information originally comes from the test agent.

    Currently all the test agents are Windows hosts, like UFT or LRP, and I assume you developed your own Linux test agent. So you will need to collect the OS information by your agent, and then when you post the run, upload the OS information as its "Operating System" and "OS Build Number".

    Hope it helps.

    - David

  • 0 in reply to   

    Hi David, can you please share the Linux command or a sample snapshot that locates the OS Build Number for Linux Machine, such that it unblocks our issue.
    We're unable to get exactly what we need to store in this OS Build number param in case of Linux Machine.

  • Verified Answer

    +1   in reply to 

    It is a bit out of ALM area, but as i googled i can see below - 

    www.cyberciti.biz/.../

  • 0 in reply to   

    David, I have already got this info as below using Python language, but my question is, in ALM for Windows OS build number is considered from version (22621), but in case of Linux that number is not found in any of the uname result, so what exactly the value I need to consider from below Linux uname result.

                For Windows machine:

                >>> import platform; platform.uname()
                uname_result(system='Windows', node='LP-21328XXXX', release='10', version='10.0.22621', machine='AMD64')

                For Linux Machine:

    >>> import platform; platform.uname()
    uname_result(system='Linux', node='ubuntu', release='4.15.0-202-generic', version='#213-Ubuntu SMP Thu Jan 5 19:19:12 UTC 2023', machine='x86_64', processor='x86_64')

  • 0   in reply to 

    Isn't it 213?

    Sorry I'm not familiar with it as we don't have test agents based on Linux. It's more a question on Ubuntu Linux.

  • 0 in reply to   

    ok no problem David, thanks for the info and quick response