Ranorex to read data from an Excel spreadsheet - ranorex

I have an Excel spreadsheet with lots of data that needs to be entered to a desktop app.I do not want to manually type in all this information because it can take me forever to do that. Is there a way i can make a recording on ranorex for only one row (first row) of data and somehow instruct Ranorex to follow what i did on the first row to load the rest.

Your question isn't very clear, so I'll try to answer what I think you're asking.
Ranorex has built-in support for working with Excel spreadsheets.
Basically, you need to create a data source that uses your Excel spreadsheet file. Ranorex will then be able to map the values in each row to module variables. You can find the Data Sources dialog by right-clicking on a Test Case in the rxtst file.
Ranorex will automatically rerun the test case for each row in the spreadsheet. You can limit it, if you want, to just the first x number of rows in the Data Sources dialog.
You can find a lot more info about this on Ranorex's User Guide in the Data-Driven Testing Lesson.

Related

Some fields in Google sheet are not recognized by GDS

I have a simple Google sheet that has 9 fields as shown below
Google sheet data source
When I connect this file as a data source using Google Sheets connector, I get ONLY 7 fields instead of 9 as shown below:
Data Source Editor
There are two missing files that cannot be recognized by GDS which are scenario and feedback fields respectively.
In order to solve this issue, I tried the following:
disconnect and reconnect the data source file again. But it did not work.
Also, I tried to use refresh fields but in vain too.
I tried also.
I could not find any reason for that behavior. please help if you can.
Here is a link to a sample Google Sheet file.
https://docs.google.com/spreadsheets/d/1GIHjwPp0uodUiJeXeX9RVr58hFz2re-6ilZYAeFU_Lc/edit?usp=sharing
Are these missing columns in your original google sheets file also empty? If yes, this is the reason why GDS is not recognizing those table. If you add some value in at least one row of these columns and reconnect the data source, they will show up.
If you intend to keep those columns empty for whatever reason, you can make a row with 'test' as values and filter those out in the report after connecting the data source.

How do I import a Google sheet in a chrome extension project?

I wish to enhance an existing web page by adding statistics that can be regularly fed by a large amount of people.
I chose to use Google Sheets to retrieve the data so that anyone can access the tables and make their addition but I have no clue of how to display the sheet's results in the concerned web page.
In my case, I'm editing the webpage's text from Javascript.
I thougth of two tools that might help:
Importing the google sheet in Javascript (I can't find how to do that, an alternative would be welcome if not possible)
Importing the google sheet in Python and then exporting its results as an internal .txt file which I should be able to read with Javascript but that would require the .txt file to be updated every now and then.
Could you guys lend me a hand in how to do this?
Thanks in advance!

Google Sheet data update before opening document

Is there a way to update spreadsheet data automatically before opening the spreadsheet ?
Let's develop a little bit. In a main Spreadsheet I'm doing some IMPORTRANGE to get data from 2 other Spreadsheets (these data are refreshed twice a day). Then I used the imported data to present a kind of summary / dashboard with some complex formulas.
When I open the main spreadsheet, it takes looooong time to update.
I noticed that this long time is driven by the change of imported data.
Is there a way to do this update offline and not trigger a calculation when opening the document ?
Hope I'm clear, don't hesitate to contact me for further clarification.
I think this can be done with a script, but this is not my area (I found a solution on an external link, but don't want to post it here):
function myFunction() {
SpreadsheetApp.getActive().getRange('A1').setValue('IMPORTRANGE('https://docs.google.com/spreadsheets/d/abcd123abcd123', 'sheet1!A:B')')
}
Then within the current project's triggers, select a 'time-driven' event source based on minutes of your choice.

Connecting Sheets to BigQuery

I want to connect a Google Sheets to a new BigQuery table that populates and updates the data automatically from Sheets to BigQuery. I'm using this tutorial from Google itself to do the setup.
My problem: the table connected with spreadsheet was created empty so I had to query it and save the result as another table to see and use the data.
I can't post images yet so I ask you please to check this imgur post, please.
I'm not expert in these things but does not seems to be the best way to do it. I found some spreadsheet add-ons but I'm trying to avoid them.
Any ideas what's the best way to do this kind of setup/connection?
I had to configure each column manually
BigQuery provides a variety of tools which make it pretty simple to connect the external table to BigQuery.
One option is to simply use the WebUi and the Auto Detect option which help you not to enter each column manually
This works perfectly for me also when inserting and adding data to the external table.
You can refer to BigQuery official manual on an external table for more help

Archiving data in google sheets - multiple rows and multiple columns

Hello everyone I am attempting to modify a script that I found in this post (Archiving in Google Spreadsheets with Date Using Apps Script). The goal is to set it up on a time trigger/button to a specific range of cells into a sheet within the same workbook. When it is archived it should overwrite the previously archived data within the range of cells on the "archive" sheet. I have played with this script with this suggested script from this post and removed the "delete" and "priorities" components of the action, but am still having problems getting it to simply overwrite what is already there. I will continue to work with it withing my limited knowledge as I continue to learn, but would greatly appreciate any help or tips. Or if their is a preexisting code that would serve the purpose that I have missed I would love to hear about it.
Thank you for any insight you can provide and for all the help in the past.
*and thanks to Jad and the User1786546 for the original posting.
I had a quick look at the script post.
If you wanted it to delete the archive data before writing to it, you might need to clear the contents of the sheet first before writing the data.
targetsheet.clearContent();
This will clear the whole target sheet, (the target sheet is a variable in the script you linked to, this name can be changed), including column headers.
If this is undesirable, then you may wish to use
getRange().clearContent();
Please see this link for more info.
https://developers.google.com/apps-script/reference/spreadsheet/range#clearContent()
If you still need further help, try sharing a dummy spreadsheet, with realistic data and sheets.

Resources