Blue prism Calculator by fetching excel sheet - calculator

I wanted to launch calculator application in which we have to fetch value from excel and update the result back in the excel sheet.
Automate the process using windows application type available in the automation tool.

What exactly is your question?
If you are a beginner and want to know how to start, here you go:
To launch and work with calculator(windows) application - use object studio.
To work with excel ( to read and write back to excel using MS Excel VBO provided by Blueprism).
Create separate action pages (for addition, subtraction, multiply etc.,) in object and publish them and then call those published actions from process studio using Action stage (by passing input values read from excel)
If you can share your exact question - I will be able to help you out.

Related

Create a desktop app that generate ms word file

I'm now working with tons of MS Word files and trying to find a way in improving my workflow.
I'm wondering if there's a way to create a desktop app which can preview certain parts from a Word file, select them and generate a new one with controls in Word's text style, paragraph, etc.
I supposed that this would take MS Word API and some frame structure particularly. I've been using Electron/node.js to create some cross platform applications, wondering if it can do as well? Or is there any reference that I can dig in?
Sorry if this sounds like a rookie one. I've tried to search but still can't find out where to start.
There are three possible ways to get the job done:
Automate MS Word to get job done. See Automate MS Office Applications using Python win32com module for more information. For example:
import win32com.client
word = win32com.client.Dispatch("Word.Application")
Use the Open XML SDK for generating Word documents at runtime, see Welcome to the Open XML SDK 2.5 for Office for more information.
Use third-party components.
If you are on Windows, there seem to be some way to access Word files in Python: https://www.blog.pythonlibrary.org/2010/07/16/python-and-microsoft-office-using-pywin32/. Maybe in node too.

Reading Data from excel sheets in Katalon studio

How to read data from excel sheets(sheet 1,sheet 2...etc) in Katalon Studio.
I am able reading the data from one sheet.But I am facing the difficulty with multiple sheets.
Without knowing exactly what the problem you face is, here are my first suggestions to check:
You do have to create different Test Data files for each sheet in your file that you want to use. Two Test Data files for the same spreadsheet file
In your new Test Data inside Katalon, just select your file and then you can select the different sheet. Sheet selection options
If you can't see a sheet in the drop down on your Test Data page (perhaps you just added it to the spreadsheet) refresh your project, or at the very least refresh the Test Data. (ctrl-F5 to refresh the entire project, highlight the Test Object and then right-click and select or hit F5 to refresh the Test Data)
Hope this helps.
You cannot switch excel sheets from Katalon, at least natively. Maybe with some custom programming.

How to check the file is download on button click using code first api

I am using code first api for UI Automation.
I want to check whether file is downloaded or not on button click.
I am able to find the button and click is working fine .
i dont know how to check the file is downloaded or not.
I am new to this technology. sorry if it is a basic question.
Thanks in advance.
Coded UI does not have any built-in facility for checking that a download completed and actually downloaded a file. However, Coded UI tests can use the full facilities of the language they are written in plus the .Net libraries.
In the Coded UI test method, at the place where you expect the download to have been completed, add some code to check the properties of the file that should have been created. For example: its existence, its creation and/or modification date and time, its size. Use the normal file IO operations to perform the checks. Microsoft provide details on How to do basic file I/O in Visual C#.
After performing the checks it may be beneficial to delete the file, to reduce wasted disc space.

Create a "fake" file to pass in to Crystal Report API

Attempting to create a PDF from a Crystal Report file in C# using the Crystal Report API (version 13) - The API requires that the Crystal Report file be passed in as a file. I currently have the report as a memory stream and would prefer to not save it to a file, use it, then delete the file when done.
Is there any way to "fake" sending a file without creating an actual file? (Parameter it requires is a filename.)
This application runs on a server in the cloud and will have multiple instances and other things that make me not want to try to deal with permissions and file structure and things like that that may crop up when creating a "real" file.
Thanks for your help!
Of course not. If it's expecting a filename as a parameter, it's using OpenFile() or the equivalent to open a physical file on disk. How do you fake it?
Every OS I've ever worked with has a mechanism for getting a temporary filename; in .NET, you can use System.IO.Path.GetTempFileName for exactly this sort of purpose.

create jrxml file at run time and modify at run time

I have a requirement to develop custom reports where we already have some reoprts developed using JasperReports using iReport tool. Now the requirement is to modify those reports design at run time. I should use those existing jrxml files and save as to new report then change the design at run time. Also I should see those newly created reports whenever I want.
I have gone through the Jasper API and Dynamic Reports where we can create the reports dynamically at run time but we can't save the design (like JRXML).
I am looking for any other JRXML design API to create and modify and save the Jasper Reports at run time.
I appreciate if any one can help me.
Thanks in Advance
Srinivas
It seems DynamicJasper can do this.
First thing you will need to draw a flow chart of how you want to do things.
For example, if the report already exists, and you want it as is, what will you do?
In case you want to modify it a little, do you want to save as jrxml and compile each time?
Or do you want to compile to jasper, store on local storage then populate later.
It seems you want to build a reporting engine and answering all those questions is basic. In that case here is something to start from.
Find a factory called DocumentBuilderFactory which will help you parse the XML into DOM object, modify then save it.
Here is a good tutorial on using it