automation

How can I test performance of my web app at different times of the day using an automated script?

 ̄綄美尐妖づ 提交于 2019-12-12 09:11:54
问题 Basically, I have a web application that uses asp.net mvc 4 framework. I use C# as my backend. At different times of the days, I noticed that the web application lags or is slow but I would like to figure out which times of day and some other information that would be useful in figuring out how to optimize the app. I want to be able to write an automated script that tests the web application at different times of the day and correlate it to the slowness of the application. I'm pretty new to

Window defender wants to reset your setting" -ChromeDriver 2.29 issue:ChromeBrowser opening with a new tab

[亡魂溺海] 提交于 2019-12-12 09:05:29
问题 Chrome Browser open up with a new Tab asking for Window defender wants to reset your setting" Please help me to resolve this issue This is happening in chrome v.57 and chromeDriver 2.29 ,please let me know if any suggestion 回答1: There are 2 solutions to this: Option A Create a new browser profile. Restart your machine. Option B If option A does not solve the issue, then this problem is caused by a key in the registry with the name, TriggeredReset . Delete this key, but first to be safe create

Android test project is crashing with error “Test run failed: Instrumentation run failed due to 'Process crashed.'”

末鹿安然 提交于 2019-12-12 08:21:10
问题 My problem seems little different than here Test run failed: Instrumentation run failed due to 'Process crashed.' when testing multiple Android activity I have followed steps given in the pdf. I have created test project "TestAndroidCalculatorBlackbox" (do we need to have two project one test and one main project, perhaps this could be the reason, cause in Robotium "Getting Started" link they want us to create projects for Notepad), and added jars robotium-solo-5.0.1.jar , robotium-solo-1.6.0

To be a lazy developer or not to be a lazy developer? [closed]

自古美人都是妖i 提交于 2019-12-12 07:57:26
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Am I a lazy developer? Is it being lazy to use automated tools, such as code generators and such? Now, I could, if I had to, create

How to automate selection of a particular date from calendar in selenium using java

故事扮演 提交于 2019-12-12 07:24:00
问题 I have a case in which I have to pick 3 days back date from the calendar.How to automate this case using selenium.I am using java with selenium for automation.. 回答1: 1) Assumption is that you can write the date in the input field and calendar is only the icon. You can have helper method something like this public String threeDaysBefore(){ String threeDaysBefore = ""; Date date = new Date(); Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.add(Calendar.DAY_OF_YEAR, -3); Date

How to automate to get image size and url in a webpage/website

会有一股神秘感。 提交于 2019-12-12 06:59:21
问题 Can we automate to get individual image size(Kb) in a webpage/website using selenium. there is any tool/process is available to automate this process. I want to automate to get all images URL having more than 50kb in a webpage/website. Please give your suggestions on this. 回答1: To get an image size on the webpage, you could ask to server. i.e; use URLConnection class to represent a communication link between application and that URL. URLConnection urlConnection = new URL(we.getAttribute("src"

Copy text formatting in a excel to word script

天涯浪子 提交于 2019-12-12 06:31:36
问题 I have a functioning script, it copies targeted text from an Excel sheet to an open Word document, but I'm wondering if it's possible that it also copies the formatting on the text, meaning some of the text is Bold and underlined. Currently, it just copies the text over to word. Sub Updated_Excel_Data_to_Word() Dim rYes As Range, r As Range Dim sData As String Dim tData As String Dim uData As String Dim objWord As Object Set rYes = Range("B2:B34") For Each r In rYes If r = "X" Then sData =

Launch “new email” window on Mac OS X with c++

限于喜欢 提交于 2019-12-12 06:24:14
问题 Can I trigger my Mac to open the default mail client "new message" window from my C++ program. It should work just like a mailto link does. When the program runs it should open a "new message" window with a message body, a subject line, and a recipient already filled in. I DON'T need to include an attachment. I know there are some answers already on Stack Overflow addressing that question. A mailto link with the functionality I need looks something like this: "mailto:bob@domain.com?subject

How do I click on a web button that appears multiple times on a webpage?

馋奶兔 提交于 2019-12-12 06:23:24
问题 How do I click on a web button that appears multiple times on a webpage? How do I click all of them? I am testing the "Like" button on a website (Webstagram.com) that is meant for you to view and operate your Instagram page from your desktop. 20 different pictures are displayed on a page and each picture has its own "like" button assigned to it. I can't identify it by "like" and in the outerhtml there are different values for each one. How do I write a script to identify each one? Here is

How to do parellel bootstrap on different machine using chef?

二次信任 提交于 2019-12-12 05:43:30
问题 Suppose I have written five different recipes and I have five different target nodes. How can I fire a bootstrap command that will address all 5 nodes at ones and it will execute the specified recipes(one for one) in parallel on each target node. 回答1: There is way to bootstrap multiple cookbooks on multiple machines at a time using spiceweasel . In this first install the spiceweasel package on the node . U need to create a yaml file and load ur data in the file .. like node ip , cookbook name