automation

Change download location and name for each file

本小妞迷上赌 提交于 2019-12-22 10:41:01
问题 I'm doing an automation using Selenium with Chrome WebDriver. The application has to do a series of downloads that need to be saved with different names (Data + Report type) and folders that match the type of report I'm downloading. The problem is that I can only set the default directory when I instantiate a new driver var chromeOptions = new ChromeOptions(); chromeOptions.AddUserProfilePreference("download.default_directory", downloadDirectory); chromeOptions.AddUserProfilePreference("intl

How to prompt user to save an automated Excel file

左心房为你撑大大i 提交于 2019-12-22 09:40:33
问题 I have searched and nothing that I have found hits directly on what I am looking for (or maybe my searches have not hit on the combo of words). In C# I have created an Excel sheet, using Interop.Excel, in which I insert some data and create a chart. This all works fine when I do a xlWorkBook.SaveAs. What I want to do is prompt the user to put the automated workbook somewhere with thier own file name. I have tried (http://p2p.wrox.com/vb-how/63900-disabling-second-excel-save-prompt.html) where

Can a GNOME application be automated? How?

前提是你 提交于 2019-12-22 09:19:42
问题 Can a GNOME application be automated? I.e., can I programatically interact with its user inteface? How? 回答1: While specifically designed to test GUIs, dogtail provides the functionality you are looking for. 回答2: While I don't know much about it, try looking into ATK. I know there was a project a while back called facade (part of FVWM?) that used ATK to figure out the logical elements of an application and interact with and modify them. 回答3: You should take a look at DBus. 来源: https:/

Which is better for web testing? Record-Play automation or coding? [closed]

旧时模样 提交于 2019-12-22 08:52:16
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I am working on a new project and I wanted to know which automation tool is the best to use. Should I record-play or code? 回答1: I've worked a lot with the Selenium browser automation software packages, and I find that recording re-inforces the existing application design,

Automating WinDBG or otherwise extracting information from Dump Files?

一个人想着一个人 提交于 2019-12-22 08:36:54
问题 Let's say I have a memory dump of a process. I want to run a report on it, so essentially I want to open WinDBG, load SOS and run a script that runs some commands, parses the output and then runs some more commands based on that. Apart from hackish stuff like SendKeys, is there a way to automate/script this process? Or can I write my own tool on top of SOS.dll/whatever? 回答1: The best way to do this is through a DbgEng based application. Essentially this serves as a replacement for WinDBG,

ASP.NET Unit Testing - WatiN and Windows 7 / Internet Explorer 8

两盒软妹~` 提交于 2019-12-22 08:34:03
问题 Any tricks in getting WatiN to run on Win7/IE8? My code: browser = new IE(); browser.GoTo("http://testserver"); browser.TextField(Find.ByName("txtUser")).TypeText("tyndall"); The third line never really runs and I get an error back: System.Runtime.InteropServices.COMException : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) The second line seems to run. IE8 appears and is navigated to the correct URL. 回答1: Reboot the machine There are windows updates getting in the way of

Writing a log file for Protractor/Jasmine tests without using command line

这一生的挚爱 提交于 2019-12-22 08:14:24
问题 I'm aware that if you were to do something like protractor config.js > file.log all the console output would be written to file.log. Is there a way to do this/access that output from within the tests though so that I can use a dynamic path that's created with my reporting tool? And also in a way that I don't lose the console output. Edits: To elaborate a little further, I'm not only interested in console.log output. I'm interested in everything that comes from what seems to be protractors

How to scroll down to click the element in Android using appium and java?

大兔子大兔子 提交于 2019-12-22 08:11:18
问题 I would like to know how to scroll down to click the element in Android using appium and java? I am having a list of elements inside " android.support.v7.widget.RecyclerView ". Since it has more than 10 elements, we need to swipe the screen to see the below elements. Each element has same id which is " com.osanda.exampleapp/textViewTitle ". But their texts are different like "Apple", "Orange", "Grapes"...... All I need is to scroll and click the relevant element using its text("Apple",

Automate the Populating of Subplots

假如想象 提交于 2019-12-22 08:07:11
问题 I am in the process of writing a python script that will (1) obtain a list of y-values for each subplot to plot against a common set of x-values, (2) make each of these subplots a scatter-plot and put it in the appropriate location in the subplot grid, and (3) complete these tasks for different sizes of subplot grids. What I mean by the third statement is this: the test case I'm using results in an array of 64 plots, 8 rows and 8 columns. I would like for the code to be able to handle any

How to parameterize Bamboo builds?

喜欢而已 提交于 2019-12-22 06:59:15
问题 Please note , although my specific example here involves Java/Grails, it really applies to any type of task available in Bamboo. I have a task that is a part of a Bamboo build where I run a Java/Grails app like so: grails run-app -Dgrails.env=<ENV> Where " <ENV> " can be one of several values ( dev , prod , staging , etc.). It would be nice to "parameterize" the plan so that, sometimes, it runs like so: grails run-app -Dgrails.env=dev And other times, it runs like so: grails run-app -Dgrails