New answers tagged

0

I found myself in that very same position last year. With a team of around 12 devs and only 2 QAs we used up all our time testing features and couldn't do the (IMHO) more important work of improving processes, making our test infrastructure better and also carrying out some more long term initiatives that would improve things from a quality standpoint. Plus ...


0

try{ Assert.assertEquals(true, false); } catch(AssertionError e) { System.out.println("Assertion error. "); }


2

The whole team is responsible for quality. Test work-items are activities in a Sprint not a phase, everyone in the team can and should pickup test activities. Testers bring QA knowledge to the team, share it instead of doing all the work. Break the handover pattern. Yes test automation should be executed during the Sprint, the product should be potential ...


1

It will depend on what you mean by UI Automation. If you mean whole system testing through the UI, indeed you have a manifold of moving parts that may change asynchronously: The UI itself The services your control The services you don't control Etc.... In this case two heuristics may help to keep maintenance sane: Execute frequently: In shorter time ...


1

For what to test use the Agile Testing Quadrants to divide up testing into unit, integrated, automated ui and manual ui. For how much to test in any given area use the Agile Testing Pyramid (unit at the bottom, meaning the most, UI at the top meaning least) to generally guide the volume of tests in each area. The exact shape will vary at every company but ...


0

Regarding this "Can the decision on the charter also take place during the test? Or should the charter only be defined before the explorative test?" The decision on the charter could be made while doing other testing. (It would surprise me if that didn't happen at times.) Any time someone sees something they feel worth exploring it is worth noting. ...


2

A test charter is the basic documentation of a test session. Among others, its basic goals are to be used in during a debriefing conversation, where the tester communicates to someone his/hers discoveries and concerns, and to serve as input to future sessions. Considering that, the charter structure itself is not something set on stone. It's your ...


0

Firstly, you have to use the CSS/JQuery Extractor as a post-processor on the login thread group. It allows you to query the HTML response using CSS Selector, and save it in a variable. More info here. Afterwards, you can access this variable using the ${variable_name} notation. More info here.


0

By looking at the image of markup attached not clears the exact situation, because as per HTML markup it seems an input element and in first image it shows a drop-down. But, you can do something like this as reusable method: selectFromList(String option) { //use xpath or css selector here WebElement selectOption = driver.findElement(By.xpath("//table/...


0

Try Katalon automation tool. It is open source free and reliable. Installation is simple. To configure and how to PERFORM API Testing using KATALON you can refer these article from mundrisoft or KATALON


1

Like a lot of things in life, it depends. Both options you lay out will work for test automation. However, what is your overall goal? Are you testing a feature that is on one page? If so, you can load that page directly and test that feature. This is what you listed as option 1. Are you testing a feature integration point, like a page redirect? Are you ...


0

Based on your post and comments, I think it would be fine for you to just use the direct URL to the page you are testing. I do similar things in certain tests in my own automation solution. Having said that, I think you should also create a test that DOES go from page 1 to page 2 and on to page 3. Simply to cover the case you stated of the user experience.


2

You are not checking if the password is masked, but if it there is an input of type password. Which is good, because you do not want to test browser behaviour, but the implementation by the developers. Browser make password input types behave as you expect. In your example you could leave out the code that sets the password, because it is irrelevant as you ...


1

You would normally use an assert statement. So assert condition, "Custom message on failure of assert" I'm not 100% on python but think the formatting would be: assert error.is_displayed(),"Error - Expected incorrect password message to be displayed"


0

Thanks for all your answer and valuable feedbacks! I finally found solution putting elementid.gettext() inside xpath. It worked fine. for (int row = 0; row <=rows_count; row++){ if(ResultName.getText().equalsIgnoreCase(globalVariables.NewCorpUserName)){ Log.message("Corp User present in the list and Name found as: "+ResultName....


1

I'm more in favor of static code analyzers (e.g. Sonarqube) which also inspect code for some common OWASP issues once per sprint.


0

Tool selection, protocols to support (web, Java etc) costs/budget. Mark Smith.


0

for (int row = 0; row < rows_count; row++){ if(ResultName.getText().equalsIgnoreCase(globalVariables.NewCorpUserName)){ } } Here, you are just performing the same check (if) rows_count number of times. You need to perform the check on each row, rather than on these global variables. // Finding the table WebElement table = userListTable....


2

Hearing that your company is tasking you with creating a test automation suite/framework fills my heart with joy, congratulations! Now, on to my thoughts... Design an Architecture of "Test Automation" that would include defining proper naming convention , maintaining source code , maintaining version history and control As to the design, make sure ...


8

Agile Pilot: Automate a test in the simplest way possible Automate another test Repeat and evolve into a robust framework Your plan sounds traditional and will probably result in a lot of research and over-engineering. Start simple and let your tests form around your application and business. Tackle uncertainties as soon as possible. Don't make your plan ...


0

Following are the few automation test plan that are performed by software testing company in project:- Pick automation tools/language based on the following rules: Does the company already have licenses for a certain tool, try and see if you can use it. Look for open source(but reliable) tools Do the team members know the tool already or do we need to ...


0

The way I execute my Automation code i find some flows in your way: 1. If you have a website to automate then there is no need to use 2 Scenario Outline's. 2. Single scenario outline should have all scenarios required to automate. I have divided your automation task in 3 parts 1. Feature File 2. Step Definition 3. Logical Implementation Feature File: ...


0

PageFactory does not print out selectors by default. So it is probably something you added yourself in the base class. A good way to research this is to use step-by-step debugging in your IDE. Set a breakpoint where you use the selector. Run the tests in debug-mode and from then use the step in option to see what code is being executed. Eventually you ...


2

Testing real world objects comes up in interviews quite often. Interviews usually pick an object that everyone has seen and used before. Mostly, I've gotten "how to test a coffee mug or travel mug" question. Testing an ink pen is also common. While a bicycle might be the object, you are typically given something simple due to time constraints of the ...


0

It may not about automation and programming. As I saw the question, I would consider the attributes of the object. What makes it useful? What capabilities it could bring? Start from here.


1

James Bach's Heuristic Testing Strategy Model is a fairly simple but efficient set of heuristics for testing strategies. It creates 5 big project aspects that will impact testing: Project Environment includes resources, constraints, and other elements in the project that may enable or hobble our testing. Sometimes a tester must challenge constraints, ...


2

I think you have covered testing on different 'levels' in great detail however testing also includes testing on different 'types' as well. One may think about security, performance, reliability & safety etc as important quality parameters to test an object on. I think you may easily relate it to an 'Bicycle' and come up with additional scenarios which ...


1

There are lot of sites .You just need to google testing strategies. You can follow the following steps. Step 1 – Scope and Overview: Step 2 – Test Approach: Step 3 – Test Environment: Step 4 – Testing Tools: Step 5 – Release Control: Step 6 – Risk Analysis: Simple Tips To Write Test Strategy Document Include product background in test strategy document. ...


0

By getting feedback to guide the Design Design is the last D in TDD and BDD From customers, what's working, what do they like ? From automation and tools, what's working, what's broken ? From developers, what is robust yet easy to change, what is not ?


0

I think if the download link returns a 200 response code, you can verify that it will download correctly. Try using this method: private static string GetUrlResponse(string url) { if (url == null) throw new ArgumentNullException("url"); if (url.IndexOf(':') < 0) url = "http://" + url.TrimStart('/'); if (!Uri....


0

If you want to save "John Smith \n Flat 7 Big House", you could use this: string addrss = driver.FindElement(By.ClassName("block-item_addresses")).Text; from there, you could create a new Address object that contains string name and string address properties, then save the element string into that object: public class Address { public Address(string ...


0

C# has a Object.ToString method that can serve to this purpose. So, you can just create an object that represent this info, with attribute such as name and address and override Object.ToString, returning a String with the content you are interested.


0

This scenario is encountered commonly in a software QA company. Below are some of the points to avoid such situations. As a tester, you can involve with design team at the stage of initiation of making of designs and can share your inputs before the designs are presented to the product management team. In case of responsive application designs, you can ...


0

If you have basic knowledge of all the concepts of automation testing then try to automate any e-commerce website. Number of such websites available. Do you practice hard on one website and try to automate full functionality of it. Best of luck :)


0

Hope the dialog are alerts in browser. Try the below code. If alert will be there then that will be accepted and its message will be print in output otherwise catch block will accept that exception and "Alert not found" will print. try { System.out.println(d.switchTo().alert().getText()); d.switchTo().alert().accept(); } catch(Exception e) { System.out....


0

I've never heard about the all-in-one product, but should highly recommend Wallarm FAST as a framework for application security testing. You can easily run the Selenium test through docker-based fast proxy and it will automatically generate and run security tests based on it, including sophisticated things like base64, under JSON, under another layer of ...


0

To learn is also very good Facebook. I did my first experiments with Python and Selenium. Login process, logout on Facebook. One can expand his test according to the knowledge more and more. Upload, integrate the Facebook Api, there are no limits. There are also very good beginner tutorials that also advise.


0

I have started with the travel websites they usually cover all the real time scenarios. I started my journey with these websites.


0

You can automate your application which you are working in the company. It will be helpful for you to familiar the project or products and even you have good understanding about that project how it will work.


1

A picture would make it much easier to work out what exactly you are asking, however I'll assume it's alert messages (i.e. JavaScript popups). Selenium can work with those by using the Alert interface: e.g. Alert alert = driver.switchTo().alert(); // get the text of the alert alert.getText(); // click OK / accept the alert alert.accept();


1

Let's get practical here. You are learning automation so that you can get a job or project. Sites like Mercury Tours are good to practice but in real world actual websites/apps are much complex then this one. If you want to learn and practice automation, go for the real website/app. For example, automate your network service provider's website or app. As ...


0

If there is only one element of tag "button" and text "action" then use: //button[contains(text(),'Action')] If, on the other hand, the above is true AND there are multiple instances of that button, AND you want the first one, surround it first with parenthesis, then the subscript: (//button[contains(text(),'Action')])[1]


-1

This is the site I used: Mercury Tours It's quite old, but it's actually a pretty good test site.


0

If you're using Groovy as the language you can simplify your code to this one-liner: vars.put('currentDate', new Date().format('yyyy/MM/dd')) You can refer the generated value as ${currentDate} later on. See Date documentation of Groovy GDK for more information on available functions. Also be aware that you can achieve the same without having to write ...


0

Windows and Linux are really different. The main question that you did not address was WHY ? You say "It is a setup / installer, the main functionality to bring the state of the machine to a desired stated" but any such state is really different on windows vs unix. Why do you need to run this Ruby code on both windows and non-windows machines. That is ...


0

The integration testing, as well as any testing, as a general theory, is done against some requirements. In your case you need to have some (good) architectural / design requirements, and based on these requirements you can design the integration tests strategy. Those requirements have to present at a minimum: the list of objects / modules / units / ...; ...


1

Using MoveToElement you will be able to find or click in whatever point you want, you have just to define the first parameter, it can be the session(winappdriver) or driver(in other ways) which is created when you instance WindowsDriver. Otherwise you can set as first parameter a grid (my case), a list, a panel or whatever you want. Note: The top-left of ...


1

I would keep the method name simple and add description in the @Test annotation like this: @Test(description = "User can log into facebook and react with heart") public void loginReactHeart() { //some code }


0

Retry only works on Assertion failures. You will have to write a custom Retry attribute that retries on Errors as well. Here is one way of doing it: https://stackoverflow.com/questions/46319701/nunit-retry-on-exception-by-default


0

Pybot start script has been deprecated in RF 3.1 - and thus, this is what you get. Github Issue regarding this topic: https://github.com/robotframework/robotframework/issues/2818


Top 50 recent answers are included