automation

Workspace Editor Macros in Eclipse

别等时光非礼了梦想. 提交于 2019-12-23 03:44:07
问题 Is there a way to record permanent workspace macros in Eclipse and assign them a shortcut key or template? I'd like to automate some of the actions I routinely do. Workspace editor templates are not a solution since I need to include some conditional logic as well. For example check what is a symbol to the right/left of the cursor. 回答1: See my answer at How can I launch more than one debug session in Eclipse from a single click? . The same plugin can work for you as well. 来源: https:/

Doing Selenium Automation on Lookup Field of MSCRM 2013

余生长醉 提交于 2019-12-23 02:58:08
问题 I am Unable to execute the selenium script on lookup FIeld of MSCRM I am trying to select an item from lookup list in MSCRM 2011, it is not like drop down list. If you click the lookup image on the lookup field then a new window will open. In the new window a list of records is displayed and user has to select the particular record by clicking on the check-box corresponding to it and then click OK Button. Finally the selected record will appear in Lookup field. DOM Structure of Lookup FIeld

How to write java program in Sikuli?

可紊 提交于 2019-12-23 02:54:12
问题 I have recorded the GUI desktop application using SIKULI as below: App.open ("C:\\Program Files\\acd\\bin\\VPNClient.exe") sleep(1) type ("mganda1") sleep(1) click( ) //click OK I want to convert this script into Java. So I am trying as below: package com.arcot.test.vpn; import org.sikuli.script.*; public class AuthLogin { public static void main(String[] args) { Screen s = new Screen(); App myApp = new App("application-identifier") ; myApp.open ("C:\\Program Files\\acd\\bin\\VPNClient.exe");

Why does automating SFTP with Expect hang after sending the password?

痴心易碎 提交于 2019-12-23 02:52:53
问题 I am attempting to automate uploading some files from my Linux server to an FTP-enabled Windows server. I am successfully doing so manually using SFTP and then issuing the put command. However, when called from cron, my script keeps stopping for a password. Below is the code I am attempting to use: #!/usr/bin/expect #!/bin/sh clear spawn sftp remoteuser@43.123.0.10 expect "password" send "world" expect eof As it stands, it stops each time to request a password. Why doesn't send "world"

Object level (non-pixel dependent) automation for QT-based GUIs?

若如初见. 提交于 2019-12-23 02:42:24
问题 I'm looking for some advice and insight on how people approach creating Object-level GUI automation. Technically the type of functionality I am trying to achieve is easily described by Squish software. I want to be able to simulate Key-Press and Mouse Click events without relying on Platform-specific pixel displays, and screen sizes. I've tried to use tools like Sikuli, but unfortunately my application varies too from platform to platform to make reliably re-repeatable tests. Basically what I

Using Windows.Automation, can I locate an AutomationElement by regex?

血红的双手。 提交于 2019-12-23 02:42:22
问题 I have an object tree that has row objects within a table parent. I'm attempting to put all these rows into an AutomationElementCollection AutomationElementCollection asdf = ParentTableObj.FindAll ( TreeScope.Children, new PropertyCondition ( AutomationElement.NameProperty, "I want to use regex here" ) ); All of the rows' AutomationElement.NameProperty contains the string "row". However, they are variations of that string - e.g. "Row1", "Row2", "TopRow", ... It seems like I may be missing

TestNG does not continue execute tests after failure

ぐ巨炮叔叔 提交于 2019-12-23 02:32:32
问题 I have test automation framework with a page object model. All my test are located in separate classes in same package. In testng.xml i have <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > <suite name="Smoke Test"> <test name="SmokeTest"> <classes> <class name="name.test1"/> <class name="name.test2"/> <class name="name.test3"/> </classes> </test> </suite> Problem is that after running TestNG.xml if the 1st test will fail, it will stop test execution. But i want to continue

How to capture Server Error Pages using selenium Web driver?

爷,独闯天下 提交于 2019-12-23 02:30:48
问题 I had an issue with handling the server error page using selenium web driver.While navigating from one page to the other the webpage got crashed and the code which I wrote for fetching the Web Element which were in place is not responding. //Function Call by passing the arguments commFunction.ElementTitleValidation(driver,props,"CustomerPricing_SubMenu_Title"); //Method for ElementTitleValidation public void ElementTitleValidation(WebDriver driver, Properties props,String MenuTitle) { boolean

TWebBrowser modal print dialog?

自古美人都是妖i 提交于 2019-12-23 02:17:08
问题 I've found many ways to make the TWebBrowser show a modeless print dialog box, but how do I make it show a modal one? I would like to print an html page, that's why I need the modal dialog. I'd really appreciate your ideas on this one. Thanks! 回答1: I cannot think of a reason why there would be lots of ways to show a modeless dialog. Why would you want to continue interacting with the web browser while a modeless print dialog is displayed? If you want to initiate the print by program, but need

TWebBrowser modal print dialog?

人走茶凉 提交于 2019-12-23 02:17:03
问题 I've found many ways to make the TWebBrowser show a modeless print dialog box, but how do I make it show a modal one? I would like to print an html page, that's why I need the modal dialog. I'd really appreciate your ideas on this one. Thanks! 回答1: I cannot think of a reason why there would be lots of ways to show a modeless dialog. Why would you want to continue interacting with the web browser while a modeless print dialog is displayed? If you want to initiate the print by program, but need