question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for calling other TagUI scripts within a script

See original GitHub issue

It would be great to have the the ability to create a library of functions that include actions, blocks of code that I can reuse from script to script.

example: include include.filename

This feature would allow us to create reusable code and provide the ability to rapidly create new scripts based on previous work.

best regards, Terry

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
terrygoldmancommented, Mar 6, 2018

Sure, will do over the weekend and get back to you on this.

BR, Terry

On 6 Mar 2018, at 23:50, Ken Soh <notifications@github.commailto:notifications@github.com> wrote:

Hey Terry no probs at all, I’m closing the issue to focus on working on some of the outstanding ideas to explore. Do let me know if you run into issue calling subscripts using the above tagui step and I’ll reopen the issue to track when needed.

Let me know too your thoughts, if there is a way to improve on the current implementation. I chose the word tagui instead of programming convention call or include or require, so that the same word can be used even for other languages. As TagUI supports writing scripts in over 20 human languages, something like call or include can be translated and I got a hunch doing that can introduce bugs later on.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kelaberetiv/TagUI/issues/80#issuecomment-370826685, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AiI5Tc7KtzUfu6-hB_NMPmshSzNdw7Pjks5tbrAwgaJpZM4SUKWR.

0reactions
kensohcommented, Mar 8, 2018

Adding on, besides following naming convention -

tagui filename

Users can also use something like below to make it easier to organize their ‘action libraries’. By naming the filename as some context . followed by some action.

tagui context.action

For example, below will expand a TagUI script named as mainscreen.login to perform the login actions.

tagui mainscreen.login
Read more comments on GitHub >

github_iconTop Results From Across the Web

Support for calling other TagUI scripts within a script · Issue #80
The ability to call other TagUI scripts for reusability, and an extension framework are two areas which I had been holding back on...
Read more >
Advanced concepts — TagUI 6.110.0 documentation
You can write Python code in TagUI flows. Python needs to be installed separately. The py step can be used to run commands...
Read more >
Tagui - npm.io
TagUI converts your intentions from various human languages to lines of working JavaScript code that perform UI automation. Under the hood, it uses...
Read more >
Running TagUI File Scripts - VerdaPress
Run a Script File. In the terminal type: tagui example.tag. Press Enter. Typing tagui and the name ...
Read more >
tagui - UNPKG
83, // append comment on flow path variable in casperjs script ... 92, // section to handle calling of other TagUI automation scripts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found