testing

How do i get my CSV file?

房东的猫 提交于 2019-12-23 05:21:17
问题 I have done the following changes in the jmeter.properties file : jmeter.save.saveservice.output_format=csv jmeter.save.saveservice.assertion_results_failure_message=true jmeter.save.saveservice.default_delimiter=| But still I could not find where my .csv file. Can anyone please help me. 回答1: Please see first answers to these posts: How to save JMeter Aggregate Report results to a CSV file using command prompt? How do I save my Apache jMeter results to a CSV file?. In addition to your

How to test a WSDL

一笑奈何 提交于 2019-12-23 05:12:52
问题 How to do WSDL testing? What is Schema Validation of WSDL. Any open source tool, or any API's available to achieve the same? 回答1: If I want to verify WSDL file then I use Eclipse + Web Tools plugin. There is WSDL editor and validator. If I want to test WSDL both as client and server then I use soapUI. There is wsdl import and after that you can query real WebService or if you can create "mock" response. Both tools are free. 回答2: The WS-I organization (http://www.ws-i.org/) publishes the BSP 1

Element.getText() in Protractor [duplicate]

强颜欢笑 提交于 2019-12-23 05:07:57
问题 This question already has answers here : Protractor: element.getText() returns an object and not String (3 answers) Closed 2 years ago . I want to write a test case in which I compare the value of an element clicked in previous page to that of an element's value in the current page. I am using the following code - validateText = SoftwaresUnmappedPage_POM.checkFirstSoftwareName.getText(); expect(validateText+"*").toBe(SoftwareSummary_POM.softwareName.getText()); For example - If I click on a

Building CUnit with cygwin on windows

好久不见. 提交于 2019-12-23 04:43:34
问题 Can anyone explain me, how to build CUnit on Windows using cygwin? Only found an example using mingw Building CUnit on Windows Call of make Fails (no such command). Anyone help me? 回答1: There was a Problem with the make and the "config"-file was missing. After this I can create the libs. 来源: https://stackoverflow.com/questions/29891151/building-cunit-with-cygwin-on-windows

PowerMock in Scala: java.lang.NullPointerException when getPackage

怎甘沉沦 提交于 2019-12-23 04:41:49
问题 This code just getPackage and getName of a class (not use any mock techniques yet), but it failed. Anyone see this problem before? Code: import mai.MyScala1 import org.junit.Test import org.junit.runner.RunWith import org.powermock.modules.junit4.PowerMockRunner import org.scalatest.junit.JUnitSuite @RunWith(classOf[PowerMockRunner]) class MyTest extends JUnitSuite { @Test def test1() { classOf[MyScala1].getPackage // this one returns null classOf[MyScala1].getPackage.getName // raise java

Run CodedUI from MTM 2013

霸气de小男生 提交于 2019-12-23 04:33:55
问题 I want to run a codedUI test case using MTM 2013 Here is what I already have so far: I have codedUI test cases to test my web application. The solution of these test cases has got nothing to do with my web application. Now I have few test cases written in MTM 2013 (initially for manual execution). Later I had plan to automate these Test Cases Using codedUI and associate these automated Test cases to MTM test cases so that I don't have to open VSTS to run my automated test cases. Also this may

How to check checkbox in repeater with protractor

僤鯓⒐⒋嵵緔 提交于 2019-12-23 04:03:53
问题 I am having difficulty checking a checkbox in an AngularJs repeater with protractor. The model looks like this: environments: [ { name: 'Proof of Concept', checked: false }, { name: 'Non-Production', checked: false }, { name: 'Production', checked: false } ] The view like this: <div class="checkbox" ng-repeat="environment in vm.assessment.environments"> <label><input type="checkbox" ng-model="vm.assessment.environments[$index].checked" ng-click="vm.checkboxChanged()" ng-required="!vm

Mock request/post with mockito

时光怂恿深爱的人放手 提交于 2019-12-23 03:59:08
问题 I am having trouble covering the following function ' postJson ' with tests (JUnit/Mockito), and can't find a way to mock the line response = getTarget(path).request().post(entity, Map.class); //Constructor public HttpService() { this.client = ClientBuilder.newClient(); } Client client; public Map<String, ?> postJson(String path, Map<String, ?> data){ Map<String, ?> response = null; try { Entity<Map<String, ?>> entity = Entity.entity(data, MediaType.APPLICATION_JSON); response = getTarget

Selenium - How to match image presence and location on page

好久不见. 提交于 2019-12-23 03:46:11
问题 My query is that - I have my images on webpage- a logo or say navigation bar i can store as an image. Can i test using selenium presence of these images on a webpage when loaded along with the position of the image on page. What my issue is that i need to actually look at image objects in HTML and also may be images not in HTML but they are partial screenshots of webpage which i want to match. This test will help me pick alignment issues - in case my navigation bar is now going to second row

Karma: Is it possible to load JavaScript files statically before the requirejs framework?

情到浓时终转凉″ 提交于 2019-12-23 03:20:06
问题 I'm wondering if it's possible to configure Karma (0.10.9) to load certain JavaScript files before its requirejs framework? The reason I'm asking is that Knockout registers as a module with RequireJS if the latter has been included before Knockout, and this breaks another module (which doesn't support RequireJS). Basically, our karma.conf.js looks as below: module.exports = function (config) { config.set({ basePath: "Scripts", frameworks: ['mocha', 'requirejs'], files: [ "knockout-2.2.1.debug