automation

Are there any automation test example source code using .NET

一笑奈何 提交于 2019-12-22 06:48:37
问题 Are there any source code example of software automation testing with System.Windows.Automation ? because i'm realy having problems with this... 回答1: These links should give you a start: System.Windows.Automation The Microsoft UI Automation Library (MSDN article) 回答2: You might want to look at White. It uses the System.Windows.Automation heavily and includes a lot of samples and tests. 来源: https://stackoverflow.com/questions/4294097/are-there-any-automation-test-example-source-code-using-net

How to build a winium Driver service on Windows 10?

♀尐吖头ヾ 提交于 2019-12-22 06:35:26
问题 I am using the following class code for launching calculator via WiniumDriver. Before creating an instance of WiniumDriver, I am starting a winium driver service. import java.io.File; import java.io.IOException; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.winium.DesktopOptions; import org.openqa.selenium.winium.WiniumDriver; import org.openqa.selenium.winium.WiniumDriverService; import org.testng.annotations.AfterClass; import org.testng

Automate the process of publishing Android app

大城市里の小女人 提交于 2019-12-22 06:28:52
问题 We have several Android apps and found that the process of uploading apps for each release via Android Developers website slow and ineffective . We like to automate the process. To be more clear, we have automation for compiling and building the apps, it's a matter of uploading them to Android Market and fill in the app details for publishing. This is where we are left with manual publishing . I am interested to learn how people automate this publishing process ? Does Google have a web

Excel VBA SendKeys not causing IE 9 to save download

那年仲夏 提交于 2019-12-22 06:00:42
问题 I am writing a macro to download a csv file from my company's internal website. For many reasons I can't use any xmlhttp objects. The macro will download the file. The problem is Internet Explorer 9 prompts the user with Open, Save, and Cancel buttons. While in IE, Alt+Shift+S will save the download, but I can't get the Sendkeys "%+s" method from Excel VBA to work. Here is the relevant code: Function followLinkByText(thetext As String) As Boolean 'clicks the first link that has the specified

Setting AssemblyFileVersion with MSBuild-call?

一曲冷凌霜 提交于 2019-12-22 05:26:11
问题 We have a batch-based buildprocess and we are using MSBuild only for compiling our project-files from visual studio. We also have integrated wix into our build-process. To set the version of our software we specify in the main-build-script some environment variables, that we use during the build-process. My problem is, that i have to set the FileVersion of the Assembly (AssemblyFileVersion) in my assembly-informations. Is there a way to give the MSBuild-call a property with the version to set

Windows Task Scheduler Doesn't Run VBScript

泄露秘密 提交于 2019-12-22 04:56:06
问题 I am trying to automate a VBScript by using Windows Task Scheduler. However, I tried to use cscript.exe + "C:\...\script.vbs" but it didn't run. I also tried to directly run the same command in CMD ( cscript.exe "C:\...\script.vbs" ) and it worked. What might be the problem? EDIT : I just tried to switch the setting to "Run only when user is logged on" from "Run whether user is logged on or not" and it worked. I am wondering if there is a way to make my task scheduled run even when the user

Protractor wait command is not able to wait for the bootstrap modal to appear

那年仲夏 提交于 2019-12-22 04:18:27
问题 Scenario: Whenever user sign in using incorrect credentials, a bootstrap modal appears for 1-2 second with message "sorry, incorrect credentials". Below is the HTML of the modal. <div class="modal-content"> <div class="modal-body note-error text-center ng-binding"> Sorry, invalid credentials! </div> </div> I need to verify if the expected error text is equal to actual error text. My code PageObject.js var errorModal = element(by.css('.modal-body.note-error.text-center.ng-binding')); this

How to simulate mouse click on blank area in website by Selenium IDE?

五迷三道 提交于 2019-12-22 04:06:08
问题 I want to perform mouse click on blank area outside a form in order to wake up the data traffic in some website by Selenium IDE. Any ideas? I've tried to do click by x,y but it doesn't effective for my test case. The scenario is below: fill the email field click outside the form in order to make the client to send data request to the server for check if this email is already exist in the DB and then it does auto complete and enable the continue button. 回答1: You can use the command: driver

How to simulate mouse click on blank area in website by Selenium IDE?

£可爱£侵袭症+ 提交于 2019-12-22 04:05:12
问题 I want to perform mouse click on blank area outside a form in order to wake up the data traffic in some website by Selenium IDE. Any ideas? I've tried to do click by x,y but it doesn't effective for my test case. The scenario is below: fill the email field click outside the form in order to make the client to send data request to the server for check if this email is already exist in the DB and then it does auto complete and enable the continue button. 回答1: You can use the command: driver

How to keep an application activated/in foreground while a script is running?

≯℡__Kan透↙ 提交于 2019-12-22 01:40:34
问题 I'm using Applescript to automate deployment of applications from Xcode 4. I use System Events to click the menu items in the menu bar for that. I have the whole thing working, but with one quirk. If the user clicks elsewhere while my script is running, that is the XCode 4 window goes out of foreground, my entire script fails. Is there a way to force Xcode to be in the foreground from my script? Now, if only Xcode 4 was at least as scriptable as Xcode 3, I wouldn't have to resort to GUI