qa

pytest run tests inside a class with a constructor

空扰寡人 提交于 2019-12-13 07:16:57
问题 I want to write a test suite for an API. my project tree looks like: project tree I need to have a 'client' file with classes where we initialize all the helper functions(e.g. the actual request that is sent with the params, asserts, configs etc.). And the actual test class. so I have class Client() __init__() def helper_function() class TestBackend(Client) __init__() def test_something() Then I try to run my tests with pytest. I keep getting PytestWarning: cannot collect test class

How to use CSS locator with tag + class name + inner html text to identify a button in a span

这一生的挚爱 提交于 2019-12-13 00:46:03
问题 I am using selenium FirefoxDriver to automate a test case (I am new at this) I need a way to locate a Button (which I think is implemented as a div/span) This xpath locator works when I try that in Selenium IDE //span[contains(text(), 'Login')] Also I can use this CSS locator using the span tag and the classname css=span.x-btn-button What I need is a way to use CSS locator with tag + class name + inner html text. (This will help me in handelling some of the other UI element in my application)

TestNG parallel classesAndMethods without XML

只谈情不闲聊 提交于 2019-12-12 22:21:34
问题 I'm trying to have both classes and methods running in parallel. For example: Method Tests public class MethodTests(){ @Test(groups = "testMe") public void methodTestOne(){ ... } @Test(groups = "testMe") public void methodTestTwo(){ ... } } Class Tests -> Hoping the Test annotation on the class level would do it @Test public class ClassTests(){ @Test(groups = "testMe") public void classTestOne(){ ... } @Test(groups = "testMe") public void classTestTwo(){ ... } } I've included the surefire

Automation UI Testing tool for silverlight 5

你说的曾经没有我的故事 提交于 2019-12-12 19:12:17
问题 as you might know, silverlight 5 beta was resleased a while ago, and alongside its new features, I've encountered a serious problem. There isn't any testing tool that I've found that is able to test the Silverlight UI. I've tried Selenium, Coded UI, Telerik, Test Complete and perhaps even a few more I forgot to mention, all of which doesn't exactly support silverlight 5. The main problem is that they are unable to identify the silverlight 5 objects Does any of you know of a an automatic UI

When is it time to have a QA department? [closed]

跟風遠走 提交于 2019-12-12 08:27:15
问题 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 . The Quality Assurance (QA) department is roughly a bunch of testers debunking your app(s) all day, giving the green light for releases, handling Alpha / Beta programs. And much more. But without a QA department in a software company, issues arises too often in the field, and problems costs more to fix. However,

Selenium Webdriver and TestNG

核能气质少年 提交于 2019-12-12 02:36:47
问题 I'm running a code on webdriver with TESTNG... the first test works perfectly fine but after when I try executing test2 ... the driver.findelement gets underlined in red and doesn't execute at all. Previous driver.findelement was brown but after test2 is blue, any reason to why its not working? @Test(priority=1) public void launchSandBoxTestingTestNG() throws InterruptedException{ // Import FireFox Driver WebDriver driver = new FirefoxDriver(); // Open up Sandbox Page driver.get("****"); //

How to use curl request in JMeter?

末鹿安然 提交于 2019-12-12 02:27:35
问题 I have such curl command: curl -X POST -T "{sample_data.csv}" -H "Content-Type: text/csv" https://api.mysite.com/v1/jobs/upload.json?key={api_key} The problem is I don't understand in which component in JMeter I should pass "{sample_data.csv}" file to upload to the endpoint. Now I have such configuration: When I run test it shows me: "error":{"message":"Un-Acceptable format, Content-Type must be one of those listed in \"formats\" but you sent \"multipart/form-data; boundary=E-VEr1

Exctract data from encoded response in Gatling

跟風遠走 提交于 2019-12-11 14:38:01
问题 I have a problem with extracting data from one response, I check it in Fiddler and I get message that this response is encoded: https://i.postimg.cc/G3VfMtxh/2019-10-15-12-31-41-Progress-Telerik-Fiddler-Web-Debugger.png When I copy this content to https://jsonpath.com/ I see https://i.postimg.cc/rpYP4wh4/2019-10-14-22-41-19-jsonpath-online-evaluator.png So I tried to use regex, I checked it here https://regex101.com/ https://i.postimg.cc/DZ6m6RX1/2019-10-14-22-58-57-Online-regex-tester-and

execute rft test script using agent controller?

孤者浪人 提交于 2019-12-11 09:42:48
问题 I need to execute a test script that generated by Rational Functional Tester using Rational Agent Controller please can you help me to know how can i do that? and if that not possible what should i do to execute the script on a computer that hasn't RFT installed on? 回答1: Post RFT 8.2.0.1 , to be able to execute a script on a remote machine RFT must be installed on that machine. ** * ** EDIT *** RFT's installation is a complete package installation ,meaning when you install RFT it installs a

Selenium Server Setup Errors

落花浮王杯 提交于 2019-12-11 09:14:26
问题 I am trying to start a Selenium server in the command line, but it returns the following message: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\a607270>java -jar selenium-server-standalone-3.4.0.jar -role hub 09:49:50.198 INFO - Selenium build info: version: '3.4.0', revision: 'unknown' 09:49:50.199 INFO - Launching Selenium Grid hub 2017-05-30 09:49:52.134:INFO::main: Logging initialized @2625ms to org.seleniumh q.jetty9.util.log