How to make QTP recognise different application windows which are opened at run time - identification

I am testing an application that pulls up different document of different document types ( like doc, xls,ppt,pdf,mp3 e.tc.) problem is when an document is open, the respective application is launched ( like MS WORD, MS excel, zip,Adobe) . How to make QTP recognise the application that is used to open the respective document, I need to save the document after viewing it thr automation.

Related

Word VBA / Macro run on server Application.Run, ASP.NET, DCOM

I am not a coder but need a task done.
We have a website that builds a word doc file using ckeditor based on answers from clients.
This documents needs afterwards to be formatted (TA/TC functions of word) which cannot be done with ckeditor.
Therefore we have a VBA/ macro that needs to be run in MS word after the doc file is generated.
I want to automate this step and have the VBA/macro run, before the doc is send to client.
So from my understanding, you have to take the CKeditor doc, run the macro on the server, and store it in the current database..
Possible or not?
This should not be done server-side. Working with Office applications server-side is not supported - Office applications are end-user applications. They can easily appear to "hang" when used, due to waiting for user input.
More information about using Office on a server can be found here
Possible: theoretically, yes, but impossible for anyone to guarantee as the code and document content are unknown. But, theoretically, if it works on a desktop it can work when run on a server.
The more "correct" way to manipulate Office documents on a server is to work directly with the Office Open XML files, instead of opening them in the application interface. The file formats were designed for this scenario and execution is also much faster. I'm guessing, however, since TC and TA fields are mentioned that the macro also builds TOCs? If yes, then the document would also have to be opened in order to generate the TOC (update the field). Server-side, that would mean using Word Automation Services, which is part of SharePoint.

harmon.ie bit9 execution block

Our company recently joined a larger company that utilizes Bit9 for application whitelisting. Previously, we had a large amount of users using Harmon.IE to interface with our Sharepoint-based document management system. I'm trying to figure out what to allow in Bit9 to allow the document open process to work in the Harmon.IE outlook add-in.
What's happening is the user tries to open a file from the Harmon.IE pane and Bit9 blocks the auto-generated, randomly-named vbs file used to launch the file from Sharepoint. Since this file is different each time and has a different hash, we can't simply approve the vbs file.
We also can't set wscript as a trusted source as many malware sources utilize wscript. Likewise, can't really allow anything that comes out of Outlook as that would open the door for malware delivery via email.
I'm trying to find out if there's a dll that I can trust somewhere in the stack that will allow these VBS files to be trusted and allowed to run.
Add OpenFilesUsingScript key with default value "False"- harmon.ie will launch files directly without using VB script
[HKEY_CURRENT_USER\Software\Mainsoft\Prefs\OpenFilesUsingScript]
#="False"
A custom rule with an action of Execute Allow on the path of the VBS with the name wild carded as deep as possible should cover you just fine.

Unable to execute query on MS Access db on network

I have ASP.Net website that imports data from MSAccess database on some shared network location into the SQL Server. People before have implemented the ASP.Net timer to update the progress bar on UI and Actual import process takes place on separate thread.
When I try the process by launching website from visual studio it works fine for files on both local and network location. But when I host the website on IIS, it works fine only for the database files located on local drive, if any database file shared on network drive the first select query on the database table just does not returns control, system just stops there and nothing happens. And UI progress keeps on showing the same message.
I have given the required permissions to the folder, for the User Account I have used on Application Pool.
What could be the reason?
I got the solution, actually that select query was to get the count of records it was doing count(*) instead of count of any column name. Table had many columns, so it was taking long. I just put the column name instead of * and it is working fine now.
But interesting thing to notice is the amount of time it takes.

Application server hangs up the Queue when multiple docs are uploaded

This question is about the structure I want to create for a application.
I have developed an application for document viewer.
* Application is hosted in IIS Server.
* Doc Conversion .EXE is hosted in 1st APPLICATION SERVER.
* Doc Repair .EXE is hosted in 2nd APPLICATION SERVER.
The flow is like, when user uploads multiple documents, the uploaded documents are given to a APPLICATION SERVER to convert it from any format to Image format.
Then user will see docs on grid, and can click on them to view.
Now in view mode, if documents are not converted properly, then on viewer there is option to "repair". By clicking this, the document will be given to another APPLICATION SERVER to repair documents.
If user click on doc, then that doc will be given to 2nd APPLICATION SERVER to repair it.
Now problem is, if user clicks on more then 2 or 3 documents with 100's of pages, it will queue all 3 and will be stuck on later documents until it repairs the 1st one.
So my question is, how do I manage that repair request for multiple documents with 100's or 1000's of pages?
Do I need to add app servers or any thing else?

Launching MS Word from Internet Explorer with parameters

I have a requirement for within an ASP.Net application to open a Word template from within the browser and pass in some parameters to a MS Word plugin that will be installed on the client.
Is it possible when opening Word from the browser to pass in any parameters and if so how do you go about this?
You cannot launch an application from the browser. You can cause an application to run by downloading a document for which the application is the startup application. I do not believe you can supply parameters in that case.
You can use DSOFile to edit word document properties on the server very efficiently and the client-side plugin can read the parameters using the word object model. This applies to *.doc files. I'm not sure what the exact equivalent is with *.docx.
http://support.microsoft.com/kb/224351

Resources