You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Video Transcript

Hello, this is Amir Shehata with another quick tip for the LUTF.

Let's dive right into it and look at a simple "Hello Lustre" script.

First we can show the script like this:

suites['samples'].scripts['sample_01.py'].show()

Each script must have a run()  function. That's what the LUTF executes.

So let's run it and see it in action:

suites['samples'].scripts['sample_01.py'].run()

Now let's say we want to edit that script and change a couple of things and re-run it:

suites['samples'].scripts['sample_01.py'].edit()

I use VIM as the default editor, but you can change that by using the set_editor() function:

lutf.set_editor(<name as string>)
example:
lutf.set_editor("emacs")

You can then make whatever changes you want in edit mode. In this case, we'll just change what's being printed.

After you're done with the changes, save it and run it:

suites['samples'].scripts['sample_01.py'].run()

That's it for this quick time. In the next quick tip, I'll go over the process to create a test plan using the LUTF.


  • No labels