automated-tests

Naming Cucumber's Data Table

£可爱£侵袭症+ 提交于 2019-12-24 19:53:15
问题 I am creating test cases on forms that could contains over 50 parameters, some of them would show up when a certain set of questions would be answered specifically. The data tables were getting very long so I broke them into multiple data tables, each for a specific section of form. I don't want to add every heading in the step so I want to use the data table's name instead. Instead of: Scenario: . . . When I fill in <title> <first name> <surname> ... |title|first name|surname|...| . . . I

Unit test definition - Scope and Mocking external dependencies

限于喜欢 提交于 2019-12-24 18:57:28
问题 I have a confusion regrading the definition of unit test. I think unit tests is about mocking external dependencies, the scope can be large like IT test (more than one class). In this way of thinking, I can test in my UT complete flow and that can help me catch bugs fast, (I'm not using Spring, I'm not using external dependencies), I want to catch bug fast because if I'm doing refactoring, I want to run my tests every few minutes to see if something's broken so I need my tests to run fast.

WebDriverException Element is not clickable in Selenium [duplicate]

谁都会走 提交于 2019-12-24 17:19:59
问题 This question already has answers here : Element MyElement is not clickable at point (x, y)… Other element would receive the click (3 answers) Closed last year . Here is the error message: org.openqa.selenium.WebDriverException: unknown error: Element <div class="col-md-2 col-sm-2 hidden-xs days" id="lblday3">...</div> is not clickable at point (799, 308). Other element would receive the click: <div class="modal-body text-center">...</div> (Session info: chrome=69.0.3497.100) Hi everyone, the

Why am I getting an illegal value error using PpShapeFormat in Office 2013 Interop

孤人 提交于 2019-12-24 13:19:32
问题 I wrote an MS JScript utility (for use in SmartBear's TestComplete) that exports images that are embedded in a Word document to PNG files on disk. When I run this utility on Win7, with Office 2010, everything works fine. But when I run it on Win8 with Office 2013, I get an "illegal value" error when passing the PpShapeFormat filter to the Export method. Here's the relevant portion of my script: //get the list of shapes from the word doc, and how many there are var iShapeList = DocObj

Using SendMessage for Simulating User Mouse Clicks

家住魔仙堡 提交于 2019-12-24 11:06:05
问题 I need to use SendMessage fro simulating user clicks in a target program as SendMessage blocks until the event that it triggers is finished processing. The reason for this is that this blocking gives opportunity to detect if any dialogs have opened up as a result of the clicking. My problem currently is that although I can get the click to work using WM_LBUTTONDOWN and WM_LBUTTONUP messages consecutivly on a button in a mocked up form which opens a model dialog, I cannot get it to work on

How to get parameter values from a test case on azure devops (former vsts) in C# tests?

自古美人都是妖i 提交于 2019-12-24 10:20:19
问题 I am trying to get the parameter values defined in a test case in Azure DevOps (former VSTS). My test case looks like this- Azure devops test case I am trying to get the values in a test method that looks like this- [DataSource("Microsoft.VisualStudio.TestTools.DataSource.TestCase", "https://[companyName].visualstudio.com;[projectName]", "5843", // this is the test case number DataAccessMethod.Sequential), TestMethod] public void DataOverlapsBottomRowOfFilterFromTestParameter() { string

How do you store an elements text with selenium in a javascript variable?

a 夏天 提交于 2019-12-24 09:58:47
问题 I have this html: <div class="title"> <div class="subtitle"> <div id="flhcd1> <h3>Hello</h3> <span></span> </div> <div class="subtitle2"> </div> </div> I want to be able to use selenium and javascript to store the text in the <h3> (Hello) in the variable titleText . I will be using this code in browsermob for monitoring tests. 回答1: In BrowserMob you can do var titleText = selenium.getText("//div[@id='flhcd']/h3"); and then use titleText like you would any variable. 来源: https://stackoverflow

How to select specific element in Powerbuilder window using HP UFT

╄→尐↘猪︶ㄣ 提交于 2019-12-24 09:10:12
问题 I am trying to record/automate an application developed in Sybase' Powerbuilder. I am currently using HP UFT v12.54. Using the default recording process, the object spy is only seeing the area on my PB Window, not the specific field/dropdown. In short, I am unable to select a specific object in the window. Please see the following image: I am trying to select the Authorized Signatory field, but instead, UFT does not see the specific element, but the field area Customer Data instead. UFT just

How/What is the best way to auto create/save text file version of automated test reporter logs

隐身守侯 提交于 2019-12-24 08:31:06
问题 It's my first time building proper selenium tests (I've touched on IDE before). I'm using Selenium with NodeJS, WebdriverIO, Mocha framework, wdio-spec-reporter and wdio-browserstack-service. I have managed to create my tests, suites specified in conf.js , hooked into browserstack (so when i run in command line, it creates a text log and video in browserstack). Now I've been asked to do something so that when a test/suite is run it will automatically save the text logs as a text file. My

Testing links in a web app

≡放荡痞女 提交于 2019-12-24 08:13:56
问题 I need to test links inside a web application. I have looked at a couple tools (Xenu, various browser plugins, link-checker(ruby)). Nothing quite fits my needs which I will detail below. I need to get past a login form test needs to be rerun for different types of users (multiple sets of login credentials) would like to automate this under a ci server (Jenkins) the ability to spider the site Does anyone have any ideas? Bonus if I can use Ruby to do this! 回答1: What you are asking for is beyond