Automatically Reinstantiate a Template Instance in Tosca - tosca

I am working with a Test Case that takes input from an excel file in Tosca. I'm using a Template Instance so the data from the excel gets loaded and I can use it in my test case. I know I can reinstantiate the Instance by clicking on the Reinstantiate button, but I'm running the Test Case from an external source, so I can't go to Tosca and click the button every time I need to update the input (the data of the excel input is different every time I run it).
Is there a way to make Tosca automatically Reinstantiate the Template Instance every time I run it?

No, unforunately there is NO way to do it automatically. It is not even possible without a great effort to (re)instantiate several templates at once.

Related

D365FO RSAT Action ExecuteHyperlink is not supported

I am using D365FO Task Recorder to document a test case where the user clicks on a hyperlink in a dropdown control to see details of a certain type of item. The downloaded XML runs in the Playback Recorder without issues but RSAT cannot Generate Test Execution and Parameters File. Here is the error message:
Cannot generate test execution files. Action ExecuteHyperlink is not supported on control ReferenceGroup. Recreate the recording without this action.
The users of my company use hyperlinks quite often so it’s impossible to record test cases avoiding this functionality.
Did anyone find or solve this hyperlink problem?
Thanks in advance, regards

Google app maker - update itself from google sheet data

I have a very simple app to learn on, just displaying parts of an imported spreadsheet, but I'm not sure how to make it update automatically and repull the data. I'm not adding any additional information inside appmaker, so clearing and repulling is fine. I just want it to update the sheet either every day or when the app is opened, either would be fine.
I was able to get the sheets data into my model in the first place with https://developers.google.com/appmaker/models/import-export but i'm not sure how to write a script so that it auto updates.
I think, if I'm not mistaken, that you want to run a process every certain time to import data into Google App Maker from a Google Spreadsheet. If that is the case, you can use a time trigger. An example on how to manage time triggers is available here.
The trigger must invoke a function that reads data from the spreadsheet using the SpreadsheetApp service and then save all the records in bulk. Here is an example of how you can update several records in bulk.

Run function on VB.NET, leave page, then have it email result to user?

I have an admin function that's rarely used that is built in VB.NET. It prepares a very long and complicated document and takes a very long time to process after user has hit the "Export PDF" button. What I would like to do is have ability for user to hit the Export button, leave the page and have it still going in the background and then when it's done, email the user to let them know report is ready with the URL of the file it generated.
I'm unsure if this is possible. It's my understanding that if you leave a page before a process is finished, it will interrupt/cancel the process. I can't reprogram my function in another language because it's just too complex for me to attempt to do that, so I need to stick with VB.NET.
I realize that it's not good practice to have a function that takes a long time on the server, but as I said, this is rarely used by a select amount of users and I'd like to make it more convenient for them.
Anyone know the best method/if any to get this accomplished?
Thanks!
I you can do one of these:
Create a child thread (spawn) and let that thread create and email PDF
Create a service and call that service to create and email PDF

How to see original script or function from RData?

I created a very small script (without saving) in RCmdr top window, but I only saved the workspace.
When I reload this I can't see anything that was in the top window originally. My mistake I know, but is there a way to see any hint of the functions etc I may have called, from the workspace file? I can see the objects - but not what created them.
If you open a new R session, try hitting the up-arrow keys. The normally invisible .Rhistory file is usually loaded at the start of a new session if the prior session ended normally. If the session is open in a GUI hten you may be able to display the list of commands with a menu command. This may also display that file:
loadhistory(file = ".Rhistory")
The history is cumulative, so unless you had a really long session intervening you may still be able to get code going back for several session. I think it keeps the last 500 entries by default. Actually turns out to be 512. See:
?history

Loading external data to InfoPath once only

Hopefully someone can help me with my problem.
Background
I have create an InfoPath form that is to assess project risk. It allow the user to select a scenario and in return the form returns a risk class and set of actions. The actions are displayed on the form as a multi selection list box, because I was unable to display the action list in a text box.
The form is going to be used in multiple locations, thus will be published to multiple sharePoint sites across Australia and so for easy of updating all of the scenarios and actions will be loaded from a universal SharePoint list. This will then not require the republishing of the form with every update.
The Problem
If a new version of the form is rolled out. E.g. any of the scenarios or actions change. I can not have any previously submitted forms change with it, as the previously submitted answers in the form may not be relevant in the old versions.
This is not an issue with the Scenario fields as they can be tagged to load only once. But the multi selection list box works differently and loads its data every time the form is opened.
The Question
Is there anyway of loading the data in the multi selection list box only once?
If not is there anyway I can load data into a bulleted list or some other field that I can load only once on open of the form for the first time?
Hopefully someone can help.
I had the same issue - I don't want data in old, previously submitted forms to refresh their data for dropdown, tables, etc when they are opened in the future. They need to always use the same data they were submitted with, regardless of weather the database values have changed or not.
To do this, I first unchecked the option "Automatically populate data when the form is opened". Then I unchecked the option to tell data to expire after X amount of days - so i always know the form will have data cached.
I then created a field to serve as a marker for weather to update values from the database or not. Then I used custom code to refresh secondary datasources from the database if needed. In my form loading event, I check to see if the from has already been submitted or not using my marker field.... if not previously submitted - refresh the data - if previously submitted- do not refresh data.
On submition of the form, i set my market field to indicate the form is locked and should never update its secondary sources
Hope you get my idea.
Cheers
If a new version of the form is rolled out. E.g. any of the scenarios
or actions change. I can not have any previously submitted forms
change with it, as the previously submitted answers in the form may
not be relevant in the old versions
I do not understand your problem since the previously created XML data forms are opened with XSN templates with which they have been created (i.e. previously created XML data forms are opened wh the use of old XSN template forms). If it is not so, then open a question why it is failing for you.
Also, I do not understand why do you need to load choices from external source, if it should be fixed once and forever, load it from resource XML file embedded into template itself or choices entered manually (Enter choices manually in properties of Multi Selection List Box). So, they will be stored in the used template
Please check
Free Training: Data-Driven Design - Using Default Data (Lab 1)
on step-by-step tutorial on better ways how to create in Infopath a Quiz form with Default Data (questions and answers in modules)

Resources