Unable to record "Save file" action in Microsoft VSTS - vb.net

The scenario is to record the following actions:
Download an excel file.
Save it in the local machine.
Edit the file.
Upload the edited one into the application.
I tried recording this in VSTS. But didn't happen to see any events or path recorded during the "Save file" action. Eventually upload action is failing.
How do I get through this problem?
Please help.

Related

I have recorded a test plan for Files Upload processs from Blazemeter, still when I try to run it for the second time, get "Bad Request-->400" error

I did as follows:
recorded a test script regarding file upload using Blazemeter.
tried to upload another file, so I replaced a new file with the previous one inside the "Jmeter --> Bin" directory.
Before running the script just changed the filename "Parameter -->vale" like the screenshot:
When I run the scripts, it shows error:
This request doesn't look like a proper one to me, my expectation is that the file should go to "Files Upload" folder of the HTTP Request sampler and Use multipart/form-data box should be checked.
I would rather recommend re-recording it using HTTP(S) Test Script Recorder, just make sure to copy the file you're uploading to JMeter's "bin" folder before executing the file upload request in browser. More information: Recording File Uploads with JMeter

automate image upload from windows explore with selenium and AutoIT

I have to automate a scenario like a upload an image from windows explorer to TinyMCE component using Selenium. Since Selenium does not support OS control, I used AutoIt to upload the image.
AutiIt sets the image path to "File name" and seems like it clicks on 'Open' button as well. But the image is not loading to my "source" field.
Here is my Selenium command:
Runtime.getRuntime().exec("C:/XXXXX/src/test/resources/uploadImage.exe");
// Path of the AutoIT script file
AutoIT script:
WinActivate("Open")
Send("C:\LCNGProjects\Screenshots\Images\GifImage1.gif")
Sleep(5000)
Send("{ENTER}")
Refer the attached screenshot
Not sure if I have got the questions correct, Did you compile the script.
Can you please go through link below for script compilation and step by step info how to upload a file.
https://www.guru99.com/use-autoit-selenium.html
You do not need to use AutoIt. Auto will make your script dependable on windows machine only.
Instead of it find element using locator(i.e. xpath) of upload button which is having tag as type="file". Now pass this simple sendKeys with absolute path of your image in your machine like below:-
button2.sendKeys("C:\\UsersDesktop\\logo\\Summit-Logo-900px.png");
Or use
System.getProperty("user.dir"));
Append the path of file exluding your project path and filename inside your project
Example :-
button.sendKeys(System.getProperty("user.dir")+"\\logo\\Summit-Logo-900px.png");
below link contains more option to upload file like below :-
Using SendKeys command.
Using AutoIt scripting.
Using Jacob com interface.
http://www.techbeamers.com/handle-file-upload-selenium-webdriver/#h3
Hope it will help you :)
I'm not going to add full source code here. You can call the AutoIT script using this command inside your test case.
// Call to AutoIT script to upload the image
Runtime.getRuntime().exec("C:\\xxxxx\\src\\test\\resources\\uploadImage.exe");
AutoIT Scrip
ControlFocus("Open","","Edit1")
ControlSetText("Open","","Edit1","C:\xxxx\Images\jpgImage")
ControlClick("Open","","Button1")
For more information refer the following link
https://www.guru99.com/use-autoit-selenium.html

Sitecore WFFM :- File Uploading Issue in CD Server in via Custom Save Action

In Sitecore.NET 8.1 (rev. 160519) + Web Forms for Marketers 8.1.rev. 160523,
We are getting problem into executeing WFFM Custom Save Action in CD environment with Submitting form with image. If we do not upload any image and submit the forms, WFFM Custom Save Action work fine. In CM sever form is submitting perfectly with/without image.
TO Fix the Issues i trying following thing :-
I followed this article but in CD server when I add "remoteWfmService" in connectionStrings.config I gets error "The entry 'remoteWfmService' has already been added". Also instead forms.config we have sitecoreforms.config there already we have this setting
Sitecore Web forms for marketers 2.4 file upload on content delivery server error (WFFM)
I tried this article as well by enabling the Clint Action checkbox true but no luck .
http://sitecorecode.com/index.php/2016/05/23/wffm-custom-save-action-not-woking-on-cd-environment/
In Log file I got this entry against my Save Action Item ID
WARN [WFFM] Could not find configuration node: databases/database[#id='master']
WFFM form submit action will upload the file on Master database Media library.
As you are on CD server, so WFFM form will not get Master database and hence you are getting error "Could not find configuration node: databases/database[#id='master']".
For this you should configure WFFM CD modules which comes in ZIP file with name "Web Forms for Marketers CD 8.0 rev.zip". So you have to unzip this and manually paste the WFFM config and DLL files on your CD server.
Also check the presence of SwitchMasterToWeb.config file in App_Config\Include folder on your CD server. It must be there.
I hope this will work for you.

Essbase dataload error

I'm on a Windows 10 box using Oracle Essbase Admin Services console 11.1.2.4. When I load data I get an error. My problem is that the dataload.err file will not write to my c:\ drive or any network drive to which I have access. If I manually create the dataload.err file in Windows Explorer and run the load data process, I can watch the dataload.err file disappear. I've tried a different file name and different directories, but it won't save.
Why won't the dataload.err file save? Any help would be greatly appreciated.

How do you set the commit message when editing a text file in a Visual Studio Teams Services git repository? (Visual Studio Online)

When browsing a repository under the "Code" tab of a project in Visual Studio Team Services. If I browse to a text file in the git repository and select it I see the contents of the file and I have the option to edit the file.
If I edit the file and then save it a git commit message is automatically generated, which is of the form "Updated PreBuild.ps" - if I edited the file Prebuild.ps
I like my git commit messages to be written in the future tense:
If this commit is accepted it will update PreBuild.ps to add some console logging
How do I either type my own commit message or edit the commit message after it has been created in Visual Studio Team Services?
You can enter the commit message by editing the string "Updated PreBuild.ps" directly before saving the updated file. And you can also click dropdown icon to add more detailed description if you want.
And there isn't anyway to edit the commit message from VSTS Web Portal, you need to pull the changes to local and use "git commit --amend" command to update the commit message and then force push it back to remote. You can refer to this question for details: Edit an incorrect commit message in Git