functional-testing

SoapUI Testrunner giving error about TestAssertionRegistry

徘徊边缘 提交于 2019-12-14 01:30:12
问题 I am able to run my test case successfully with valid assertions, but when running via testrunner, it starts off with these errors - ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Match] ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Match] ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Match] ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Match] Where do these errors come from? I disabled all my test steps but to

Publishing test assemblies with artifacts in order to use them during functional tests on VSTS

笑着哭i 提交于 2019-12-13 16:13:42
问题 I am having a really hard time trying to figure out how to properly configure functional tests on my realease pipeline. I have a solution that contains some web projects being built using the default build configuration in VSTS. The artifact is ok and I can publish them using a release pipeline. So far so good, now I want to implement functional tests using CodedUI and have them integrated on my releases. We have a development server with a vsagent that was installed when I configured the

Imports in vanilla/pure JS testing with protractor and relative paths

不问归期 提交于 2019-12-13 05:36:45
问题 Until now, I was testing my non-Angular website (I only have JS, no node, not even ES6) using Jasmine, Karma and Travis CI. I am now trying to write functional tests (in case my vocabulary is off, I mean scenario tests for which I want to test "visual/UI" tests) and google directed me to Protractor. Importing For now, I will completely disregard Travis CI . The only way I have found to "reach" my page was with a local path browser.get('file:///C:/local/path/to/project/index.html'); For now, I

Functional Test: SIKULI doesn't work with basic Google Chrome

此生再无相见时 提交于 2019-12-13 04:46:34
问题 Someone mentionned me sikuli http://sikuli.org/ seems great. I just try to go to yahoo with google chrome and it fails to paste the url at step 6 why ? 回答1: If you perfrom a mouse click on the textfield with www.google.com in it, it will be marked with blue and so the picture changes. This means that the paste operation will fail because it cant find the picture in your screen. In this case it would be better to just skip the image and paste it directly after the mouse click. find("icon.png")

Test Suite Execution Jubula

谁都会走 提交于 2019-12-13 03:53:14
问题 I've been looking at Jubulas automated functional testing tool and following along with the tutorials, but I've become stuck before I ever even got off the ground with it. The user manual provided with the installation hasn't given any answers and I can't find anything in blogs dedicated to Jubula. My question: I have my test suite, complete with test cases & steps, all set up and ready to go. I've mapped my objects using the editor. I've started the AUT and connected to it. All I have to do

Writing a Python functional test which requires a username and password

ε祈祈猫儿з 提交于 2019-12-12 23:06:42
问题 I have an API wrapper class WfcAPI written in Python 3 which I want to test using PyUnit. The setUpClass() for WfcAPI involves logging in to the external API server. The current functional test implementation has the password obfuscated with Base64 encoding, but this is far from an ideal solution for security reasons. import unittest import base64 from pykronos import WfcAPI class Test(unittest.TestCase): @classmethod def setUpClass(self): password = base64.b64decode("U29tZVBhc3N3b3Jk")

Functional test of an android app using appium and python

旧巷老猫 提交于 2019-12-12 11:11:57
问题 This is the python code to check if the recording works fine : def setUp(self):"Setup for the test" desired_caps = {} desired_caps['browserName']='' desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '4.4.2' desired_caps['deviceName'] = 'd65d04425101de' # Returns abs path relative to this file and not cwd desired_caps['app'] = '/home/karthik/appiumworkspace/tests/app-debug (2).apk' desired_caps['appPackage'] = 'com.prueba.maverick' desired_caps['app-activity'] = '

How do I test multipart form data requests for file uploads in Play Framework 2.0 using Java?

情到浓时终转凉″ 提交于 2019-12-12 10:38:09
问题 I understand that you can do this using the Scala API as suggested here: https://groups.google.com/forum/?fromgroups=#!topic/play-framework/1vNGW-lPi9I But there seems to be no way of doing this using Java as only string values are supported in FakeRequests' withFormUrlEncodedBody method? Is this a missing feature in the API or is there any workaround? (Using only Java). 回答1: For integration testing you can use apache DefaultHttpCLient like I do: @Test public void addFileItem() throws

How to organize and run unittests and functional tests separately using nosetests

不打扰是莪最后的温柔 提交于 2019-12-12 10:36:30
问题 I have the following typical python project file structure packageA +----subpackage1 +----classa.py +----subpackage2 +----classb.py +----test +----subpackage1 +----classa_test.py +----subpackage2 +----classb_test.py I am currently trying to organize my unittests and functional tests so I can run unittests and functional tests separately using nose but also have the option to run all tests. The tests would live in packageA/test/subpackage1 and packageA/test/subpackage2. What is a good way to

How to continue testing an iOS app, using UIAutomation instrument, even after the app exits?

一笑奈何 提交于 2019-12-12 08:49:52
问题 I have an app. There is a button in the app, which, if clicked, exits the app. I am testing the app using UIAutomation instruments. I want to test this button. But after the app exits, the instrument stops giving an exception. What I want to do is that after the app exists, I want to reopen the app and continue with the rest of the test. Have anyone else been in the same scenario? If so, can you please share the solution, if you have found any? 回答1: This is not possible because Instruments