qa

How to set Proxy Authentication in seleniumWebdriver for Chrome Browser

旧城冷巷雨未停 提交于 2019-12-01 20:57:38
问题 I'm trying to Automate a web application selenium 2.0 [webdriver+java].The web application is currently deployed in our UAT servers on our local network.My test cases are executing, but I have to manually enter the Proxy Authentication details for my Chrome instance at the start of the test execution. I have tried all the solutions provided on stack overflow but still, the authentication message pops out. This is the code I'm using in my driver initializing process package com.misyn.ess.ui;

Interacting with a PDF popup in Selenium

淺唱寂寞╮ 提交于 2019-12-01 18:58:19
I'm trying to test a page where clicking a button generates a popup that's in PDF form. I'd like selenium to click on the popup and either take a screenshot of the screen or save the pdf. I use the following code to get all the window handles to use the switchTo() command, but when i execute it it only returns a single window. Selenium doesn't seem to recognize the pdf popup. Set<String> handles = driver.getWindowHandles(); //converts set to array String[] array = handles.toArray(new String[0]); System.out.println(Arrays.asList(array)); Is there another way to switchTo the pdf popup? Because

Should QA test from a strictly black-box perspective?

╄→尐↘猪︶ㄣ 提交于 2019-12-01 08:59:45
Assuming that unit tests are handled by development, is there any reason for QA to have knowledge of the details of how a product works? By which I mean, do they need to know what's going on in the background and should they test segments of a product without using the normal UI? For example, would it make sense for a tester to go into a database and manually change values to see what will happen? EDIT: Let's assume that we're working with an application to be used by non-developers, we're not working on something with an API attached. It depends on the approach and the kind of software you

Should QA test from a strictly black-box perspective?

心已入冬 提交于 2019-12-01 07:21:27
问题 Assuming that unit tests are handled by development, is there any reason for QA to have knowledge of the details of how a product works? By which I mean, do they need to know what's going on in the background and should they test segments of a product without using the normal UI? For example, would it make sense for a tester to go into a database and manually change values to see what will happen? EDIT: Let's assume that we're working with an application to be used by non-developers, we're

在 Databricks 可获得 Spark 1.5 预览版

独自空忆成欢 提交于 2019-12-01 04:51:26
我们兴奋地宣布,从今天开始,Apache Spark1.5.0的预览数据砖是可用的。我们的用户现在可以选择提供集群与Spark 1.5或先前的火花版本准备好几个点击。 正式,Spark 1.5预计将在数周内公布,和社区所做的QA测试的版本。鉴于火花的快节奏发展,我们觉得这是很重要的,使我们的用户尽快开发和利用新特性。与传统的本地软件部署,它可以需要几个月,甚至几年,从供应商收到软件更新。数据砖的云模型,我们可以在几小时内更新,让用户试他们的火花版本的选择。 What’s New? The last few releases of Spark focus on making data science more accessible, through high-level programming APIs such as DataFrames , machine learning pipelines , and R language support . A large part of Spark 1.5, on the other hand, focuses on under-the-hood changes to improve Spark’s performance, usability, and operational stability . Spark 1.5 delivers

Page Object Pattern Implementation with CasperJS

▼魔方 西西 提交于 2019-11-30 18:17:34
问题 Is there anyone who have already implemented the famous "Page Object Pattern" with casperjs, it's very useful for test maintenability in the long term ? It's very very cool to use that when you have to separe the mechanics and the purpose of your tests. it become more pleasurable to write your tests this way. There are some examples with ruby and selenium: http://blog.josephwilk.net/cucumber/page-object-pattern.html https://code.google.com/p/selenium/wiki/PageObjects 回答1: Here is an exemple

Selenium Webdriver: Element Not Visible Exception

微笑、不失礼 提交于 2019-11-30 14:09:52
Here is my code to click a simple login button on this Website import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class Reports { public static void main(String[] args) { WebDriver driver = new FirefoxDriver(); driver.get("https://platform.drawbrid.ge"); driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS); driver.findElement(By.xpath(".//*[@id='_loginButton']")).click(); } } I am getting following error: Exception in thread "main" org.openqa.selenium

Positive test cases and negative test cases

时光总嘲笑我的痴心妄想 提交于 2019-11-30 12:49:12
问题 what are positive test cases and negative test cases ? Upon googling about it i have found answers that are very confusing. Can anyone explain with example? 回答1: A positive test case tests that a system does what it is supposed to. Example: will allow you to login when valid credentials are supplied. A negative test case tests that a system does not do things it shouldn't. Example: should not allow you to login when invalid credentials are supplied. 回答2: Positive case is a case where the

软件工程第三次作业——关于软件质量保障初探

戏子无情 提交于 2019-11-30 11:15:05
1、对教材与参考资料阅读后关于软件质量保障你的体会是什么? (1)了解了程序的质量和大致如何评测一个软件工程的质量,软件质量在工程中和程序多个方面都有体现。 (2)软件的质量保障和软件测试是有很大区别的,软件的质量保障的工作必不可少。 2、如果你是一个项目的QA,那么你认为你的工作职责范围是什么? (1)对程序的质量测试,对软件工程的质量各个因素进行管控。 (2)对软件工程的质量问题负,并进行书面保证。 (3)优化程序的功能,节约开发的成本。 3、如果你是一个项目经理,那么你认为这你的项目中需要专职的QA么?还是只需有Test即可?如果一旦出现问题,你如何界定由谁担责? 我觉得只需要Test就可以。 开发人员本来要测试自己写的软件,如果开发人员不懂测试,或是对测试不专业,那么这不是一个专业的开发人员。 开发人员了解整个软件的设计和开发过程,开发人员是清楚应该怎么测试的,这包括单元测试,功能测试,性能测试,回归测试,以及Soak Test 等。 开发人员知道怎么测试是有效的。开发人员知道所有的function point,知道fix一个bug后,哪些测试要做回归和验证,哪些不需要。开发人员的技术能力知道怎么才能更好的做测试。 很多开发人员只喜欢写代码,不喜欢做测试,或是他们说,开发人员应该关注于开发,而不是测试。这个思路相当的错误。开发人员应该关注的是软件质量

软件工程第三次作业——关于软件质量保障初探

半城伤御伤魂 提交于 2019-11-30 10:53:14
博文软件质量保障初探 192401-陈雪健-20194585 - (1)对教材与参考资料阅读后关于软件质量保障你的体会是什么? 质量在软件的研发领域几乎可以说是重过其他一切,开发进度来不及可以延期,方案搞不定可以变更,裁决不做,唯有质量不可妥协。 (1) 质量是一个企业的代名词,质量都做不好,客户肯定会有不好的体验,并质疑你的能力。 (2) 对于大型的软件工程活动,如果前期版本到处挖坑,那么后期版本将会越做越痛苦,而且定位和解决问题所消耗的时间和金钱将会更多。 (3) 从软件开发的角度来看,越早引入问题,带来的人力消耗和经济损失就越大。 如果开发阶段,引入一个和其他地方关联性比较强问题,一直没被发现,然后几个版本之后发现,那么可能很多代码都是基于这个错误的逻辑继续开发的,到时候修改起来,很可能会牵一发而动全身。 再比如,需求分析没做好,或软件架构设计不合理,开发完之后才发现,那代价就会更大。 - (2)如果你是一个项目的QA,那么你认为你的工作职责范围是什么? - QA是对整个公司的一个质量保证,包括成品,原辅料等的放行,质量管理体系正常运行等。 - QA主要职能为质量体系的建立\完善,以及成品质量的保证.并对市场状况的追踪。 - QA偏重于质量管理体系的建立和维护,客户和认证机构质量体系审核工作,质量培训工作等。 - QA的工作涉及公司的全局,各个相关职能,覆盖面比较宽广。 -