Unable to see ZIP FileType in packIn dialog while trying to import webservice in Idempiere - idempiere

I created a webservice in Idempiere. Exported it as a ZIP. But while trying to import at pack-in window, I am unable to see "ZIP" FileType. It is showing "CSV" only. How to get "ZIP" FileType in that dropdown?

Packin (2pack) can imported at pack in window.
Follow below steps.
Open window "Pack In"
Create new Record
Give any name and save record
Attach zip file using attach button on toolbar
Click on Pack In button. It will launch process which imports 2pack.

Related

How to handle file auto download in internet explorer/chrome using robot framework?

I am trying to download few files with file type as tsv, csv, txt, xls and xlsx using Robot framework through IE/chrome but each time ,it is asking either to open, save or cancel file after clicking on download button. I want it to get auto-downloaded to specific location without asking user to perform open/save or cancel.Is there any way around this?

File upload with file browse window in Nightwatch

Working on a test script in Nightwatch.js that will test the file upload action on the page. The webpage has a button that opens a file browse window to select the file to upload. I can pass the path and the file name into the browse window but cannot access that window or the "open" button in it to select the file and start the upload. Any ideas?
You might do something like this
filePath = process.cwd()+'/uploads/'+ youruploadfile ; assuming process.cwd gives your the current directory the nightwatch is executed
and then set the value (replace by the right element id )
browser.setValue('input[type="file"]',filePath)
Which will set the file you want to upload for that form and you do not require to click and open the file browser dialog as we will have no control over the same via selenium.

How to handle File Download pop up in Firefox using AutoIT in (selenium RC)

I need to download a file from application in my selenium RC test.
When i click on the link/button to save a file, first i get a pop up which asks me to either open or save the file, when i select 'Save' and click 'OK' then i get one more pop up asking me to provide the path where file is to be saved and file name also.
I goggled and found that this could be done via AutoIT but i am facing some problems while doing that.
so could some one please provide me the .exe file for file_download in Firefox and also where i can mention the path to save that file too.
and also if you could provide me what exactly the code, i need to write in my test case.
Please let me know how to handle this.
You can achieve that without using autoit also. follow below steps.
Create new firefox profile.
Change the preferences in that profile manually before starting the automation with that profile. (Change the settings like below)
Now start the automation using that profile so that files will be downloaded to default location.
Starting selenium server using specfic profile
java -jar selenium-server.jar -firefoxProfileTemplate "C:\Users\UserName\AppData\Roaming\Mozilla\Firefox\Profiles\234saddsf.customProfile"
I found this link: http://qtp-help.blogspot.com/2009/07/selenium-handle-dialogs.html
Unfortunately it is for the old style dialog boxes that do not have the open vs save radio buttons. I'm searching for a solution to this part of the problem.

Spring, petclinic, Do you want to save this file, or find a program online to open it?

I downloaded the spring mvc petclinic, when I run it, and clicked in the link :
Display all vitiranians
I got a pop up dilog box saying :
Do you want to save this file, or find a program online to open it ?
in the controller that link is defined like this :
#RequestMapping("/vets")
public ModelMap vetsHandler() {
Vets vets = new Vets();
vets.getVetList().addAll(this.clinic.getVets());
return new ModelMap(vets);
}
My question is :
why it does not dsplay vitiranians and just propmpt me withat dialog box ?
any idea or help will be appreciated.
thanks
The application to be used to open a content of a certain type can be customized in some browsers (I know only for Mozilla and Opera):
Mozilla Firefox users
Open Mozilla Firefox
Click Tools and then Options
Within the Options window click Applications
Select the Content Type you wish to adjust. For example, if you want
to change how a .PDF file opens in Firefox, select Adobe Acrobat Document.
In the Action section, change the action to how you wish to open the
file. If you want to download .PDF files instead of opening them,
select Save file.
Opera users
Open Opera
Click Tools and then Preferences
In the Advanced tab click Downloads
Locate and highlight the file extension you wish to adjust. For
example, pdf (or application/pdf). Tip: You can sort these columns.
Once highlighted, click the Edit button.
Within the file type window, specify how you wish for the file to be
handled.

How to display selected file name in VisualC

I created a small MFC application which has a brose button and then a dialog box. on the button event, I am able to successfully open the select file option, but when I select the file, it doesn't get displayed in the Dialog box.
How can I do that?
Please help...
Presumably you are using CFileOpenDialog? - after it returns, you need to get the selected file name from the CFileOpenDialog -
by using
GetModuleFileName(0, PathBuf, PathSize); You can get the pathname and by doing CString PathName = FileDlg.GetPathName(); you can get the path completely.

Resources