Fetch Test data from Excel using TOSCA - automated-tests

This is about TOSCA Automation tool.
I have an excel and loaded all my test data in it.
All i need to do is getting this data from excel using TOSCA.
Please help me on this.

There are two kind of scenarios that originate when you say you have your test data in excel.
Scenario #1: If you have a single test scenario that needs to be tested against different datasets, then TOSCA provides you with a very good feature of TemplateInstances, which will not only create the desired number of test cases for you from your data set but will also import your excel's data and embed it in Test Case steps. For more details, please see the documentation of TOSCA Commander on TemplateInstances.
Scenario #2: If you have different test cases and want to just import data from an external source then you can use the common modules provided by Tricentis along with standard TOSCA installation under the name Excel Engine. Alternatively, you can also write your own Keywords using VBScript and import your excel into TOSCA.

TOSCA has its own Excel engine add-in which can be used as parametrization of data from excel workbook.
Other then that I've also searched on this topic and found some Worx.tce predefined module which we need to import as a subset, to use the excel as a test data provider.

If you want to use excel to fetch data for test scripts you can use excel module in standard module section provided by tosca and can use buffer as input type to store and data for later use OR you can use test sheet module where you can store data and can use it in future it would be more helpful as it will remove the dependency of excel file in your test scripts and handling test sheet is better way.

Related

How to read relational R:BASE data into a data frame(s) in R

My employer historically used R:BASE to store important information, but we no longer have access to the program and the data are sitting unused. It's four files (survey.rx1, survey.rx2, survey.rx3, and survey.rx4) that together form a relational database. I believe these are binary data from searching for information on the program and ".rx" extension.
I would like to convert these data into a format that is usable in R or Excel (.csv, .xls, .xlsx, .RDS, etc.), but the free trial version of R:BASE does not allow exports and trying to import the data into MS Excel isn't working (using the get data, from file, from folder feature. It recognizes it as binary and shows some metadata but doesn't display the actual content).
Trying to read these data in R I explored using readBin, but am struggling to determine an appropriate value for "what" as the columns represent different modes and I don't have a connection object to provide that information. I explored using RevoScaleR which looked like it could be relevant but the Documentation says it was built on R 3.5.2 and the Machine Learning Server you need to run it is no longer being supported as of this year.
So, if anyone knows how to convert these data or knows of a free alternative to R:BASE that works for these data types I would be very appreciative. Thank you!

TestCase for multiple files

I created one TestCase which I want to use on multiple files in one folder. The TestCase is for each file the same. Is there a possibility to do that in the Execution Section?
If possible I want to see after every File if it was successful or not.
Thank you and best regards
I have a similar use case where I have 1 test case executing several iterations from a file. Currently, I'm leveraging Tricentis TDM solution to store the data rather then pulling from a file(s). You can create multiple repositories to store data ie: SQL Lite, MS SQL and other source systems. Check out https://www.tricentis.com/products/automate-continuous-testing-tosca/test-data-management/

How to use data retrieved from a web API?

I have a simple concept where I want to retrieve a table from a website and use it in that exact format. This can be for example imported into Excel.
This is the website that I want to get the table from:
http://www.dota2.com/leaderboards/#europe
This is the API that the website uses to get the data:
http://www.dota2.com/webapi/ILeaderboard/GetDivisionLeaderboard/v0001?division=europe
In all the ways I attempted to get the data from the website, it is poorly formatted into one line, and I was wondering what is the best way to format/use this data through code or other tools available. I have tried:
Excel web importing
Writing a simple VB program to read each line (but it reads it all as one line)
Copy and pasting the table to Notepad to try format it by line(still one single line)
Any tips/suggestions regarding any form of website data retrieving is very much appreciated.

How to read data stored in MS Excel file?

i'm trying to perform simple automated test on my Adobe Air Application. I decide to store some test data in external MS Excel file to decrease hardcode quantity. But I discovered, that this is not a trivial task, when you're working with Adobe Air.
Actually, i need to correct initialize an excelApp object, the rest part of logger is already implemented. I tried the following approach, but I can't find a package with ActiveXObject class defined.
excelApp = new ActiveXObject("Excel.Application");
Can you give some ideas, where can I find such a class?
There's a simple as3 xls reader library called as3xls that should provide the functionality you need. However, if you need to write out excel files, it's a little bit rough.

Filehelpers Excel to Oracle db

I want to import excel data to oracle DB. I got enough help for Excel part, can you guys help me in Oracle side?
Is it possible to import to oracledb with filehelpers? Please provide some sample code for reference.
Thanks
Dee
If you save the spreadsheet data as .csv files it is relatively straightforward to import it into Oracle using SQLLoader or external tables. Because we can use SQL with external tables they are generally eaiser to work with, and so are preferable to SQLLoader in almost all cases. SQL*Loader is the betterchoice when dealing with huuuuge amounts of data and when ultra-fast loading is paramount.
Find out more about external tables here. You'll find the equivalent reference for SQL*Loader here.
A simple and relatively fool-proof way to do that for one-off tasks is to create a new column in the excel sheet, containing a formula like that:
="insert into foobar values('"&A1&"','"&A2&"');"
Copy that to all rows, then copy the whole column into an editor and run it in SQL*Plus or sql developer.
I am using Sqlloader to upload data from CSV to Oracle DB.

Resources