Did you know that you can run a command inside your Specman test?

Here are two ways to go about it:

  1. With a system() function
  2. With a compute() function

Both of them can get the same job done, the only difference is that system() returns a value, indicating if the command was executed successfully,and holds the result of the executed command.

Whereas compute() just executes the command with no return value.

For example, when trying to run a python script with arguments inside a test, you could do:

Contact Us

Please, enter your details below. We will get back to you as fast as we can.

This website uses cookies to ensure you get the best experience on our website.

Get Cogita

Please, enter your details below. We will get back to you as fast as we can.

Thank you!

We will get in touch soon.

Get a Quote

Please, enter your details below. We will get back to you as fast as we can.