automation

Running Serenity -Cucumber Test cases in parallel

做~自己de王妃 提交于 2020-01-01 07:06:10
问题 I'm new to Serenity and BDD. I've a small demo project based on Serenity-Cucumber and Page Based model. Below is the structure of the project: The Login and Logout features have around 8 scenarios. I want to be able to run the feature files in parallel. What is the easiest and most effective way to achieve this? So far I have Created separate Runner class for each feature and then used failsafe or surefire plugin - This is something I don't want as I don't want a new runner for each feature

How to edit the plain text version of a Mailchimp automation email?

余生长醉 提交于 2020-01-01 06:00:16
问题 I've been running an automation workflow with Mailchimp for a while, which has a simple welcome Newsletter. The Automation email editor only lets me edit the HTML version of the email, and auto-generates a text-based version. However, it only generates the plain text version when the email is first created. I have edited the HTML version several times since then, and only just realised that the plain text version is still stuck at its initial state. I can't find any way to edit that plain

Simple linux command line command to modify an option in a INI like config file

浪尽此生 提交于 2020-01-01 05:26:19
问题 I am looking for a generic command line solution that would allow me to add or modify a configuration option inside a config file (ini like format). Most linux configuration files use a INI like format, with # and ; as comment and with option=value. Mainly I am looking for something that would take filename, option and value, and that will change the config to match this. I want to use this to write some auto-deployment scripts. I have no problem on using tools that are not installed by

Error : impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found

拥有回忆 提交于 2020-01-01 05:18:10
问题 I am trying to automate an android hybrid app but getting following errors: 1) Exception in thread "main" org.openqa.selenium.WebDriverException: It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible 2) Caused by: java.lang.reflect.InvocationTargetException 3) Caused by: org.openqa.selenium.WebDriverException: No such context found. 4) NoSuchContextError: No such context found. Following is the code

Running UI automation tests on build server

ぐ巨炮叔叔 提交于 2020-01-01 04:54:10
问题 We use UI Automation and Nunit to create tests UI tests for WPF application. We've created tests that work fine when you run them from a local machine. Those tests never run successfully on our build server (using TeamCity). Build always hang after opening application window. But if I am logged in (remote desktop), on our build server all UI Automation tests also run successfully. So I am guessing that it probably has something to do with running active windows session. Any ideas how to

Change Windows 7 taskbar location automatically based on screen shape or on docking status

时光怂恿深爱的人放手 提交于 2020-01-01 04:37:09
问题 Are the following things possible using VBScript or any other programming language: detect screen shape - or whether computer is docked change the Windows taskbar location What I am trying to achieve: My laptop has a 14" widescreen: pretty wide, but not very high. I find it most convenient to have the Windows taskbar located on the left of the screen, since I can spare the width but not the vertical space. However, when in the office, my computer sits in a docking station and is hooked up to

How to get Excel cell value in C++

て烟熏妆下的殇ゞ 提交于 2020-01-01 00:48:10
问题 If someone knows how to go from Excel::Window pointer to real value in opened Excel cell, please let me know. Here is the task conditions: - Excel is currently running in one single window with one workbook on one sheet - some cells have data (to simplify let's say only one cell[1,1] has data, which is "a") The question is how to find out that only one cell has data, and cell is [1,1] and the data is "a". To start with here is a code snippet: int main( int argc, CHAR* argv[]) { CoInitialize(

Automating TestFlightApp with Xcode and Provisioning Portal

梦想与她 提交于 2019-12-31 12:42:12
问题 I currently have a fairly manual process when releasing a new build in TestFlight: Download the additional devices text files from TestFlightApp Log into the Provisioning Profile Upload devices Update the Provisioning Profile to include the newly added devices Download the generated .mobileprovision file Click on the file to add to Xcode Product -> Archive, Share, Create IPA New Build in TestFlightApp Type up the release notes Upload (wait) Select testers to notify Are there scripts or

How can I read from a website? [closed]

若如初见. 提交于 2019-12-31 07:49:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm trying to make a bot, how can I read the value like the 1800 / 1800 from a website? Console.WriteLine("Health: ") Console.WriteLine("Energy: ") Console.WriteLine("Cash: ") Console.WriteLine("Level: ") I'm making a console application, trying to get the value. Like if the health is lower then 1000/1800 then

Stale Object Reference while Navigation using Selenium

半腔热情 提交于 2019-12-31 07:01:13
问题 I have been trying a simple program that navigates and fetches data from the new page, comes back in history and open other page and fetch data and so on until all the links have been visited and data is fetched. After getting results on the below site, i am trying to loop through all the links i get in the first column and open those links one by one and extract text from each of these page. But the below program only visits first link and gives StaleElementReferenceException, I have tried