Best way to integrate UI.Vision RPA into Cucumber

thanks for your replay. I think I didnt explain that very well, have a look at the following example:

Given(“the input {string}”) do |string|

system(’“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” “file:///C:\Users\NBA\Desktop\calculator\DemoAutofill-1.html?direct=1”’)

end

When(“the calculator is run”) do
pending # Write code here that turns the phrase above into concrete actions
end

Then(“the output should be {string}”) do |string|
pending # Write code here that turns the phrase above into concrete actions

end


how do i tell cucumber in each step if the macro run was successful? use the .txt file?