testing

How to do fuzzing testing with Selenium

北战南征 提交于 2019-12-30 01:36:15
问题 I'm new to Selenium, and also fuzz testing. I see that Selenium IDE only allows the fixed test cases. But then fuzz testing seems to be helpful. So what's behind a fuzz testing, what kind of tests does Selenium offer, is this a black box or white box testing. Any help would be appreciated. 回答1: For a short answer: Selenium is mostly about black-box testing, but you could do some whiter testing also with Selenium. Selenium RC gives you much more freedom to do fuzz testing than Selenium IDE.

Using Non-Production Activity for Testing with Android Studio

不想你离开。 提交于 2019-12-30 00:31:05
问题 Before Android Studio, testing and Android app involved a separate Android project that would be ignored when building for production. With Android Studio, production code and test code exist within the same project, which itself only has one set of anything else (manifest, assets, resources). This being the case, how would I define a custom Activity to be used only for testing? For Android to allow any Activity to be started, it must be declared in the manifest. Is there a way around this

Selenium cannot find SVG element in XPath

别说谁变了你拦得住时间么 提交于 2019-12-30 00:15:25
问题 I have the following HTML: <div id="imageholder> <svg> <g> <image href='blah.gif'> </g> </svg> </div> And I cannot seem to locate the svg with selenium IDE on firefox at all. I have tried: //svg //svg:svg //*[name()='svg'] //*[namespace-uri()='http://www.w3.org/2000/svg'] None of them can locate my svg element. Sometimes I get the error: error = TypeError: e.scrollIntoView is not a function I'm using this as a means to use the locator in JUnit 4 testing if that helps. 回答1: Try the following

How do you set up a Flask application with SQLAlchemy for testing?

北城以北 提交于 2019-12-29 18:36:07
问题 It seems common practice in Flask to start like this: from flask import Flask from flaskext.sqlalchemy import SQLAlchemy app = Flask(__name__) SQLALCHEMY_DATABASE_URI = 'something' app.config.from_object(__name__) db = SQLAlchemy(app) And then import and use app and db everywhere. But when you create db like this, it grabs configuration from the app, and it seems that this configuration can't ever be overridden once it happens. There are some pages on Flask's website about making application

Public SAML v2 service providers for testing? [closed]

泪湿孤枕 提交于 2019-12-29 10:08:32
问题 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 months ago . I'm wondering if there are any publicly available SAML v2 SPs that I can use to test with. I think Salesforce and Google apps both have an SSO solution which is compatible, but I'm just not sure how to go about getting access (and unclear whether it costs.) Maybe I should just set up an SP (using OpenSSO or

Public SAML v2 service providers for testing? [closed]

末鹿安然 提交于 2019-12-29 10:08:12
问题 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 months ago . I'm wondering if there are any publicly available SAML v2 SPs that I can use to test with. I think Salesforce and Google apps both have an SSO solution which is compatible, but I'm just not sure how to go about getting access (and unclear whether it costs.) Maybe I should just set up an SP (using OpenSSO or

Test User Data (Fake Data) [closed]

社会主义新天地 提交于 2019-12-29 10:07:40
问题 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 . Where can I get, or how can I generate a large formatted collection of fake user data (names, email address, locations, etc.) that can

Junit: splitting integration test and Unit tests

孤人 提交于 2019-12-29 10:03:45
问题 I've inherited a load of Junit test, but these tests (apart from most not working) are a mixture of actual unit test and integration tests (requiring external systems, db etc). So I'm trying to think of a way to actually separate them out, so that I can run the unit test nice and quickly and the integration tests after that. The options are.. Split them into separate directories. Move to Junit4 (from v3) and annotate the classes to separate them. Use a file naming convention to tell what a

Check if my javascript is loaded on a site

扶醉桌前 提交于 2019-12-29 09:22:22
问题 I have asked this question before but it seems i got misunderstood therefore i decided to ask again but this time with alot of information: For the lazy reader my goal here is: Is there a way to check if a javascript is enabled on an external site either from PHP or through Ajax Detailed description: Okay, so my company, has many clients, when these clients sign up on our website, they are handed a javascript . They can then use this script on their own website to get some extra features. Now

Check if my javascript is loaded on a site

萝らか妹 提交于 2019-12-29 09:22:05
问题 I have asked this question before but it seems i got misunderstood therefore i decided to ask again but this time with alot of information: For the lazy reader my goal here is: Is there a way to check if a javascript is enabled on an external site either from PHP or through Ajax Detailed description: Okay, so my company, has many clients, when these clients sign up on our website, they are handed a javascript . They can then use this script on their own website to get some extra features. Now