I have the Webpage that need to perform the multi test cases for automation test and currently need to hard code the text variables from WebDriver Sampler by Groovy. And I would like to know that JMETER WebDriver can pickup the data from MS. Excel and performing the test? Like says the I need key in the login page and select the items from dropdown box from the webpage. The next step will be confirm the order by input the Credit Cards information. Thanks.
The easiest is to convert MS Excel file into CSV file, if you're able to do it - you can read the values using CSV Data Set Config
If the file is coming from external location and it's in one of binary formats (.xls or .xlsx) - it's still can be done, but you will have to do some scripting like:
Download tika-app.jar to JMeter Classpath
Restart JMeter to pick the .jar up
Use Apache POI library for reading data from Excel. The code will be different for different file formats and your Excel structure so I can only provide a couple of links with examples and snippets:
Busy Developers' Guide to HSSF and XSSF Features
How to Implement Data Driven Testing in your JMeter Test
Related
I am having a JMeter test case to upload an .xls file with multiple tabs of data . The data should be unique for each iteration
Each tab has 100 values as
ASDFG0002
ASDFG0002
POIUY0002
The ‘0002’ needs to be replaced for each iteration in multiple tabs .
How can I achieve this using Groovy/beanshell script
Not knowing the exact structure of your Excel document it's not possible to come up with the exact code so I can only provide generic instruction:
Download tika-app.jar and drop it into JMeter Classpath
Restart JMeter to pick the .jar up
Amend the content of the file using Apache POI API and save the file under the different name
Configure HTTP Request sampler to use the new file
Here are examples of reading/writing Excel documents from Java/Groovy:
Busy Developers' Guide to HSSF and XSSF Features
How to Implement Data Driven Testing in your JMeter Test
I have tried to find a way to get Google Analytic data into my Excelsheet using VBA, I can find a lot of information, but it seems to be either depricated April 30 2015 or comercial, and I only want it for my private project...
The best point I have found is this:
http://analytics.blogspot.se/2009/08/analytics-data-in-excel-through-our-api.html
Right now I collect data from GA as a csv file, add my VBA script and run my function, but it would be a lot nicer to be able to collect it directly from my workbook...
Frankly I think Selenium is your best chance for automated collection of data from GA. It could work as follows:
Create a simple Python script where Selenium downloads the csv file from GA
From your workbook run the script using Shell ("python your_script.py")
Next upload the csv file to your workbook e.g. via ADODB.Connection
Google Sheets has a really user-friendly and feature rich integration with GA via the Google Analytics Spreadsheet add-on. You can run regular, automated reports this way and export as CSV if you like.
I have to run almost 50 queries daily for daily reports and copy-paste the data into Excel sheets. Is there a way to schedule a job on SQL Developer that exports data from all the queries in an Excel Workbook?
You could link the excel spreadsheets to your queries so they automatically update themselves.
Insert > Data from External Source. I do this with SQL Server a lot, and you can do it with Oracle too if you know the connection strings.
I would comment, but I dont have the rep yet.
I would advise using your operating system to schedule the task. Assuming that this is Windows (as you want to write to Excel) then you can use Task Scheduler to set off a cmd script or powershell script which can call SQLPLUS passing in a parameter for the the sql file that you wish to run. It would not be too difficult to output this to a CSV file which can be opened in Excel. If you actually need to write the data to a .xlsx (or similar) file then there are options (e.g. Python libraries that can do this), but it will not be as straight forward.
I am not sure exactly what part of this you need help with, so can I suggest that you consider the steps below, if you want to proceed do some research and have an attempt at each step and then post a question for each that you are stuck on with details of what you have tried:
Schedule a job from your operating system;
Write a script to call SQLplus and execute a .sql file;
Change query output to csv and redirect to file (or find a way to write directly to an Excel file if this is what you need to do);
I have a system with an Excel spreadsheet template file which is used for invoicing. I would like the user to be able to click a button on an Xpage, which will then open the spreadsheet and enter the latest invoicing data in Excel. I don't mind if Excel is either the application on their machine or on the server, but my preference would be the application locally on their machine.
I've looked into Xagents, as I feel this is probably the answer. I know they can be used to create Excel but I have not been able to locate any mention of opening an Excel file, and entering data into specific cells.
Is this possible?
EDIT: you can use Apache POI for editing and creating Microsoft Office documents. This is a java project which gives you a handle to office documents and this can be used using java.
A good starting point can be the blog of Christian Guedemann from webgate:
http://guedebyte.wordpress.com/2012/09/17/documents-and-spreadsheets-with-xpages-building-the-kernel-part-ii/
(end of edit)
The only way I KNOW and tried to write data from Notes to Excel is exporting the data to an HTML page and setting the Content Type accordingly (e. g. as described here (there are a lot more resources available for taht):
http://www.dominoguru.com/pages/developer2010_xpagexlsexport.html
I am not sure if this is of help but it seems that this project can help you:
http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=ZK%20Spreadsheet%20for%20XPages
As far as I can see this project can load Excel files from XPages - and then it should also be possible to edit the files.
Besides that the only solution I can think of is a Notes Agent that is called from the XPage. This agent can then run in background and do all the excel stuff. After running, the XPage can show a link to the Excel file. Actually this is the solution I would consider to implement - but maybe others step in with better answers here.
You don't want to introduce a dependency on Excel in your application -- wouldn't work with an iPad front-end. Rather have a look at the ZK Spreadsheet, it will fulfill your needs.
However if you have to have Excel, then you need a roundtrip solution: load the Excel from an URL (probably generated by an XAgent (?) and save it back. The saving back part is the tricky one. Normal HTTP doesn't allow that. What you need there is a webDAV capable server. Watch out for a project on OpenNTF soon (just clearing IBM legal) that provides webDAV.
However the ZK Spreadsheet looks much better for your needs.
I have a sample database at the following URL --> http://www.nnsu.com/nnsusite.nsf/%24%24OpenDominoDocument.xsp?documentId=B65507CB2DE15B3286257986005F061D&action=openDocument
Download the APCC.nsf. This will allow you to create/read a new EXCEL spreadsheet and then stream the resulting file to the requesting browser. There is not need to have EXCEL or office installed on the Server.
THe examples create a new workbook, but you can also store a "template" on the server or in a notes document and use it as a starting point and then save it to a document or stream it to the requesting browser.
With Apache POI you can read/write to a spreadsheet using data from the notes document the process is initiated from.
I'm looking to download a list of issues from our JIRA issue list, to process further in VBA and generate a report from the issue list. I want this process to be automated from start to end so e.g. I run a java or VB or C# program, which does a search and download from JIRA (somehow) then runs a VBA program to extract and format the issues into a report. Is there anyway this can be done? I'm using JIRA 3.13.
I've looked at the JIRA and Atlassian plugins but don't quite understand how they work. Aren't plugins meant to be deployed into the JIRA instance. I don't see how plugins can achieve what i want to do.
You'll likely want to use the JIRA SOAP web service via a SOAP client in your program. This can call the getIssuesFromFilter method to return the results of a filter. Then generate the csv file for Excel to import or whatever you want.
Better Excel Plugin was exactly designed for these type of usage.
You can export your issues to a worksheet, then instruct the XLS template to process them using the Excel tools, like formulas and functions, charts, pivot tables and pivot charts, to produce full blown reports. It is fully automatic and the report can be generated by a single click.
If you look for automation, like generating and emailing the report periodically, or generating and saving the report when an issue event occurs, the companion add-on Excel Automation Plugin is super useful.
Here is a sample report to give you an idea about the capabilities: