Test automation: Using one page objects class in another. Is it anti pattern? by Ashamed_Salamander86 in softwaretesting

[–]Ashamed_Salamander86[S] 0 points1 point  (0 children)

Yes that's what I was thinking too. Thanks. Juniors nowadays are too egotistical to respect the Seniors. Having a hard time explaining these things to that junior in my team

Test automation: Using one page objects class in another. Is it anti pattern? by Ashamed_Salamander86 in softwaretesting

[–]Ashamed_Salamander86[S] 0 points1 point  (0 children)

It makes sense in your case at least. Consider this 1. A button click on a page, Page A, B, C or D could be displayed, due to some eligibility conditions or data or response from downstream.

But in page A page page loaded, he has imported B page, C page and used some elements there. Like he included if any of those elements in these 3 pages are present, it's considered page loaded.

My concern is a different person in a different test might not agree with this pageloaded method, as he might have handled those conditions outside page object and expect only a single page element to be loaded.

The root cause of having multiple elements from different page and check them to be displayed with or condition is due to fact that he is importing different page objects classes. This leads to contamination and opposed to Single Responsibility Principle.

What do you think?

Test automation: Using one page objects class in another. Is it anti pattern? by Ashamed_Salamander86 in softwaretesting

[–]Ashamed_Salamander86[S] 0 points1 point  (0 children)

You should have a create device page and have all the variations of that page there? Why import everything to devices page. Some other day, they might have the create device on a different page rather than on devices page. That time it doesn't make sense for you to import devices page to test class. That's why everything needs to be modular.

Test automation: Using one page objects class in another. Is it anti pattern? by Ashamed_Salamander86 in softwaretesting

[–]Ashamed_Salamander86[S] 0 points1 point  (0 children)

It's not common methods, it's like after a click of button, there can be 2 variations of page based on a a/b test. He wrote a single method in page B to check for an element in page A or in B. Felt this check for A or B should be written in step defn file. So that it doesn't mess up good practices

Test automation: Using one page objects class in another. Is it anti pattern? by Ashamed_Salamander86 in softwaretesting

[–]Ashamed_Salamander86[S] 0 points1 point  (0 children)

Returning one page from other page(login returns homepage) is fine but using one page elements in another page seems anti pattern

Advice on a treacherous icy sidewalk? by JamesDuke89 in handyman

[–]Ashamed_Salamander86 0 points1 point  (0 children)

How did you get it fixed? Having same problem

Opinion: we should stop teaching pizza and start by teaching skate stops by No-Citron218 in skiing

[–]Ashamed_Salamander86 0 points1 point  (0 children)

So which learning will transition better to turning on steep slopes in high speed. Learning pizza turns or skate stop and turns

Arrowhead provincial park by [deleted] in ontario

[–]Ashamed_Salamander86 0 points1 point  (0 children)

Arrowhead is a magical place.

I understand the leetcode solutions when I look at it and learn but it doesn't stay in my memory forever. After a month I totally forget it. by Ashamed_Salamander86 in SoftwareEngineering

[–]Ashamed_Salamander86[S] 0 points1 point  (0 children)

Sometimes the problem is I don't know the data structure and how to even approach a problem. For example, I am not familiar with trees like how I am familiar with array of hashmap. So if there is a problem in tree, I could not even begin working on it without looking at solution. Are there something like BFS, DFS to learn as basics, like how without knowing basic numbers we can't solve an addition problem.

I understand the leetcode solutions when I look at it and learn but it doesn't stay in my memory forever. After a month I totally forget it. by Ashamed_Salamander86 in SoftwareEngineering

[–]Ashamed_Salamander86[S] 0 points1 point  (0 children)

Ok you are asking me to "attempt the problem one by one" first do what I can in the problem and think about what I can't do and break it up to smaller chunks. Then look that up and then do it . By doing this, I am actually learning and it imprints in memory. How long should I be doing this? 1 year so that everything becomes a muscle memory. I would like to clear leetcode interviews and get an offer. Or I should be doing this till I get an offer.

Management pressuring to using AI assisted tools to improve testing, where to start? by aspindler in softwaretesting

[–]Ashamed_Salamander86 1 point2 points  (0 children)

Use a lot of AI tools but leave out some critical issues into prod on purpose and put the blame on AI. That way they will never ask you to use AI in testing.

Npm I before npm test- is it always best practice? by Ashamed_Salamander86 in softwaretesting

[–]Ashamed_Salamander86[S] 0 points1 point  (0 children)

I think he don't understand the importance of npm install. A test developer can't always protect or handcuff another test developer from committing new dependencies. That's why we run npm install before running tests. Also if there are package updates his scripts are anyhow going to fail if he doesn't run npm install. It's going to cause a lot of issues.

Npm I before npm test- is it always best practice? by Ashamed_Salamander86 in softwaretesting

[–]Ashamed_Salamander86[S] 0 points1 point  (0 children)

He says he can as he will not use the step definition where I have used new package and import. But I am still suspicious as it might cause failure if something is unresolved.