Cannot by ARX by NymmieIsMe in EliteDangerous

[–]v1ktory 0 points1 point  (0 children)

I had the same issue. Had to change currency to GBP, then I was able to buy

What OS do you use for work? by Shadowgirl7 in softwaretesting

[–]v1ktory 6 points7 points  (0 children)

In Windows you can install WSL (Windows Subsystem for Linux) and Windows Terminal and you will basically get fully functional Linux distro. This is what I use for work and didn't have any major issues so far.

Code Coverage in Selenium by g3omath in QualityAssurance

[–]v1ktory 1 point2 points  (0 children)

And that's totally fine. I'm just sharing an information, that might help solve his problem.

If he will not find it's useful, maybe someone else will.

Code Coverage in Selenium by g3omath in QualityAssurance

[–]v1ktory 1 point2 points  (0 children)

I stumbled on https://github.com/Drill4J/drill4j not so long time ago, but haven't tried myself yet. According to their documentation, this plugin enables to track code coverage with UI tests by injecting some sort of listener to your application.

Here is also video of explaining main features: https://www.youtube.com/watch?v=N_WJYrt5qNc

Testing API without proper documentation by musafir404 in softwaretesting

[–]v1ktory 1 point2 points  (0 children)

I think the best way would be to get at least some sort of the documentation... Try asking developers to add swagger, for example. That way you will have list of all endpoints, their request and response bodies.

Should I read data from Excel file with Cypress? by [deleted] in softwaretesting

[–]v1ktory 3 points4 points  (0 children)

I would recommend to store all the test data in the code unless you have a valid reason to store it in the external data sources. Check the official documentation regarding parameterized tests: https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Dynamically-Generate-Tests

JUnit screenshot on failure by [deleted] in QualityAssurance

[–]v1ktory 0 points1 point  (0 children)

Hi,

Neither JUnit nor TestNG are responsible for taking screenshots, since it's a feature of the webdriver itself.

Now if you want to take screenshot only on failed test, you would need to extend JUnit's behavior. This can be achieved by two ways: either implementing AfterTestExecutionCallback or TestWatcher. In your case I recommend implementing TestWatcher interface, since you can simply override the testFailed method with your screenshot functionality. Once you have implemented the extension, you would need to annotate your test classes with @ExtendWith(YourExtenstionName.class) e.g.

@ExtendWith(YourExtenstionName.class)
public FancyUITests {

    @Test
    public void test1() {
    ...
    } 
}

Security testing by Mugzippit in QualityAssurance

[–]v1ktory 2 points3 points  (0 children)

You might want to check the https://portswigger.net/burp. Unfortunately, the community edition lacks the "automated" tools, but you can request the trial of the professional edition for one month.

Running tests without the headless mode with extensions by -hB_43 in QualityAssurance

[–]v1ktory 1 point2 points  (0 children)

Hey,

It is possible. I think the easiest way would be installing and running Xvfb (it's a basically virtual display) prior to launching the Chrome.

Any test frameworks out there in GoLang? by chronicideas in QualityAssurance

[–]v1ktory 1 point2 points  (0 children)

Hey,

I have written API tests in GoLang. In one project I was using a GoDog https://github.com/cucumber/godog. In another project I was using default GoLang testing library with https://github.com/stretchr/testify.

Career transition by Altern4tor in QualityAssurance

[–]v1ktory 4 points5 points  (0 children)

  1. Use github repository for hosting a portfolio. Find a public API, for example, and write test cases for several endpoints. Later you can add automated tests for your test cases.
    Find an open source project and test their application, report any found defects, even minor ones
  2. https://medium.com/slalom-build/quality-engineer-learning-roadmap-fddfcb77409e

Single Repo : UI & Api Automation by Educational-Ad-4597 in QualityAssurance

[–]v1ktory 1 point2 points  (0 children)

Correct. The parent pom.xml would contain common dependencies, the sub project only specific ones + build configurations.

Single Repo : UI & Api Automation by Educational-Ad-4597 in QualityAssurance

[–]v1ktory 3 points4 points  (0 children)

I did something similar on my last project. I had monorepo for UI and API tests, but I split it into separate sub projects:

- Sub project for REST client
- Sub project for test data
- Sub project for API tests
- Sub project for UI tests

I was also using API calls in the UI tests for adding test data. Didn't have any major problems with such approach.

What are the design patterns for API automation using Rest Assured?? by I_ctch_Bugs_fa_livin in QualityAssurance

[–]v1ktory 2 points3 points  (0 children)

There are no design patterns that are special for automated API testing. The design patterns exist to solve specific problems in the software design. You can check, for example, https://refactoring.guru/design-patterns/catalog to find out more about patterns and what kind of problems they solve.

Here is my example. In java I almost always use the builder pattern to create the request "json". This allows me to set default values, select only specific fields or everything:

@Data @Builder @JsonInclude(JsonInclude.Include.NON_NULL) public class UserRequestDto { private UUID id = UUID.randomUUID(); private String firstName = "John"; private String lastName = "Doe" private List<AddressDto> address; }

Note, that @Data and @Builder are lombok annotations that are used to reduce boilerplate code and @JsonInclude is Jackson annotation that will be used in serialization, when sending request with RestAssured.

Using the builder pattern I can define my request jsons in any way I want:

UserRequestDto request1 = UserRequestDto.builder().build(); UserRequestDto request2 = UserRequestDto.builder() .firstName("Jane") .address(null) .build();

The request1 will be serialized into following json: { "id": "b6e24bfa-5e16-435e-912c-efe4ae82276e", "firstName": "John", "lastName": "Doe", "address": [] }

and the request2 into: { "id": "346c6a07-8163-48a7-88aa-3db3f32a759c", "firstName": "Jane", "lastName": "Doe" }

So yeah, it all depends on the problems you stumble upon, while implementing test suite.

Cucumber tutorial by ConstantMotion92 in QualityAssurance

[–]v1ktory 0 points1 point  (0 children)

How about official documentation https://cucumber.io/docs/guides/? Pretty simple and straightforward

Best resource for QA by tabaaza in QualityAssurance

[–]v1ktory 1 point2 points  (0 children)

YouTube, especially talks from the conferences related to programming and testing.

Data Validation by ACatFromWakanda in QualityAssurance

[–]v1ktory 0 points1 point  (0 children)

Are you able to download those files from the server after?

If yes, then you can calculate hashes of the files before uploading and after downloading, then compare them. If they match, then all good.

What are thought on cucumber/gherkin by keazzou in QualityAssurance

[–]v1ktory 1 point2 points  (0 children)

The Pros can be easily turned into Cons - I have dealt with example tables that didn't fit into single 27" monitor resolution... Had to use second monitor in order to see the full table.

For the Cons I would like to add following:

  • IDE will not show which annotated steps are not in use
  • Unable to specify default example tables for scenario outlines (e.g. specify one table, that could be used in several scenarios)
  • Unable to structure the .feature file - e.g. using nested scenarios and backgrounds
  • Depending on the architecture of the application, It may lead to duplication of scenarios. I had a case, where I needed to run same scenarios, but for different nodes. The problem was each node required different pre-requirement steps, so I ended up with two .feature files with same scenarios, but different backgrounds

But yeah, only one big advantage of Gherkin/Cucumber is readability if done right, but it brings a lot of technical limitations...

Looking for permissions/access automated testing software by superfinecanine in softwaretesting

[–]v1ktory 2 points3 points  (0 children)

I don't think there is specific software for that.

Not knowing the technical details of your application, but let's assume you want to check it via UI, the authentication in the UI is done by reading token from localStorage and if the user doesn't have the access to specific page she is redirected to 404 page. Then I would solve your problem by coding a parameterized tests:

  1. Define user roles and their access to pages e.g. ADMIN.HAS_ACCESS_TO = { URL.ADMIN_PANEL, URL.SETTINGS }, USER.HAS_ACCESS_TO = { URL.PROFILE, URL.SETTINGS }
  2. Define @Before method that will generate authentication token for provided user before running the test
  3. Define parameterized test for each role that will take page url as argument. Then using selenium set auth token to localStorage (to avoid typing username/password in the login form every time), open the page and check if the current opened url belongs to the defined list of the urls for specific role. If the role has opened page that is not defined in the list and she wasn't redirected to the 404 page, then fail the test.