automated-tests

What's difference between UI level testing and API level testing?

喜欢而已 提交于 2020-01-03 17:25:55
问题 I got this question while interviewing some companies. I don't think I answer the question well. However, based on my understanding: The UI level testing is more about the what end user will see and would be better to use for acceptance testing. The API level test is good for performance testing, since it's easier to simulate multiple users to access the resource at the same time. And, it's easier to look at where the problem will be. Can anyone give me more detail about that? And when should

What's difference between UI level testing and API level testing?

核能气质少年 提交于 2020-01-03 17:25:09
问题 I got this question while interviewing some companies. I don't think I answer the question well. However, based on my understanding: The UI level testing is more about the what end user will see and would be better to use for acceptance testing. The API level test is good for performance testing, since it's easier to simulate multiple users to access the resource at the same time. And, it's easier to look at where the problem will be. Can anyone give me more detail about that? And when should

TestCafe— Proper way to assert an element is visible

心不动则不痛 提交于 2020-01-03 10:59:08
问题 Based on various forum discussions, the TestCafe documentation, and trying it out to compare results, I am still not certain which is the correct (or best) way to assert that a page element is visible. await t.expect(Selector('#elementId').visible).ok(); vs await t.expect(await Selector('#elementId').visible).ok(); Or are these both incorrect and there is another way that is preferable? How does this compare to asserting that an element exists? Or other properties of the element, such as

How to automate non-interactive tests on Microsoft Surface

我只是一个虾纸丫 提交于 2020-01-03 10:55:21
问题 We have a suite of tests (test cases for a native library) that we want to run on Microsoft Surface (ARM version). It is easy to do it by hand from Visual Studio. However, we would like to automate the process in a way that we can compile, install, run and collect the output from command line (e.g. from Jenkins CI). On iOS there is Fruitstrap that emulates XCode to do similar task for iOS. Is there a Microsoft/third-party tool that could help us do this for Surface? The question about

What is the best mechanism for testing applets?

余生长醉 提交于 2020-01-03 08:06:07
问题 I'm trying to effectively build a functional test suite for an applet, and I'm trying to find a good framework for it. In the past, when I wanted to design a test suite that would serve as both functional and load testing on an application, it has always been a web-based application, or at least some kind of service-based application, and I've used something like grinder to build up test scripts and use them to simulate users. With a Java applet, it's not clear to me what, if any, mechanism

What's the best way to do headless browser testing with PHP in Linux (specifically Ubuntu)?

五迷三道 提交于 2020-01-03 05:12:13
问题 I would like to write some automated UI tests for a PHP web app, and was wondering what the best way to do it on Ubuntu would be? 回答1: http://seleniumhq.org/ http://code.google.com/p/php-webdriver-bindings/ 来源: https://stackoverflow.com/questions/7525521/whats-the-best-way-to-do-headless-browser-testing-with-php-in-linux-specifical

How to host VS IDE during integration test via MSTest?

一个人想着一个人 提交于 2020-01-03 02:56:38
问题 I have created an integration test project to test VS Extension. If I run the tests from the Visual Studio IDE, all tests are running just fine and every method spawns a new VS IDE. The test methods are marked with the following attributes: [HostType("VS IDE")] [TestMethod] public void TestWhateverMethod() { ... } However if I try to automate the tests, and run them from commandline via MSTest (or VSTest) I got the following error message, for the tests that are hosted inside the VS IDE: The

Unable to understand on getting the value

烂漫一生 提交于 2020-01-03 02:24:34
问题 I'm writing a selenium code to do the below thing. Enter value in text box. Select the dropdown value. Select a radio button. Hit the go button. When I do this, I will get a list of results and I want to get the heading of the first result block. Below is my code. import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.remote.CapabilityType; import org.openqa.selenium.remote.DesiredCapabilities; public

Azure Data Factory Test Framework

倖福魔咒の 提交于 2020-01-02 06:51:10
问题 Are there any automatic testing mechanism available for azure data factory pipelines? Does the azure data factory visual studio project come with any test suite of its own? Any help highly appreciated Thanks 回答1: Not that I'm aware of, but happy to be told otherwise. I suggest you post this on Microsoft's user voice page as a feedback idea. Then people searching will come here, go to that link and vote to get something developed. https://feedback.azure.com/forums/270578-data-factory/filters

Check if one of divs contains my values in nightwatch

醉酒当歌 提交于 2020-01-02 04:41:08
问题 I have problem with testing my webapp with nightwatch.js. I need to iterate over all div elements on the page to check if there is the one who contains all child elements I added before. For example I have: <div className = 'myclass'> <h2> text1 </h2> <h3> second_text1 </h3> </div> <div className = 'myclass'> <h2> text2 </h2> <h3> second_text2 </h3> </div> And I want to check if one of divs contains both: 'text2' and 'second_text2'. I tried to add iter function like here: Assert text value of