Latest / BrowserStack Talks / Navigating the Shift in an AI-Driven Testing World, Benjamin Bischoff , Trivago
Transcript
- David Burns: My take is that AI slows you down. It also can give you a cognitive overload. Testers are there to keep everything together, to also be at the start before something is developed. Like in the discussion, what features actually necessary, what could actually be counterproductive. So what's great about the QA engineers here is that they always have the power to roll back something, which is not usual in the industry. One of the best books I've read on testing was Welcome everyone to BrowserStack Talk, conversations that turn testing pain points into playbooks. I'm your host David and today we are joined by a great guest who brings truly unique perspective to the world of software quality. He spent many years as a developer before moving into test automation and now is a key figure at Chavago. Welcome Benjamin. Please introduce yourself to everyone. Hello, David. Hello, everyone. Thanks for inviting me. My name is Benjamin Bischoff. As you said, I've been a developer for roughly 15 years before ⁓ turning into a test automation engineer slash QA engineer. So I kind of changed my career in the opposite direction than many others do. And I haven't regretted this ever since. So I've been a test automation engineer for the last roughly 10 years now. Wow. Okay. Yeah. As you said, like most people tend to go the other way. I started out that way. ⁓ But I started out before kind of a lot of the test frameworks were out there. And then it like, actually it's a lot more fun to write test frameworks. And that's how got involved in the Selenium project because I was like, I want to do these really cool automation things and I managed to do it. ⁓ And you've gone the other way. kind of how did you moving that way? Because like I've always been testers are amazing humans. They think incredibly outside the box constantly. And they tend to be rather empathetic to our users, right? Where developers are like, I've got this feature, bang it out next. ⁓ And I say that as a developer, right? Like there's a lot of times where I'm doing that. ⁓ How did your move from developer into tester change your view of how testers should be viewed and their role in the space? Yeah, it's quite interesting. Also interesting that you mentioned Selenium, of course, because that was a major reason why I moved into the test automation engineer direction. It was just super fascinating to see my browser being remote controlled. ⁓ So my view of testers shifted completely. mean, when I was still doing dev work, I can be honest with you, I viewed them like a necessary evil at the end of when the development work was done. like the gatekeeper ⁓ that said, no, you have to work on that again because it's not perfect yet. But This is not how it is. Due to my shift, I now know how, like you said, amazing people the QA engineers actually are and what broad perspective and what broad knowledge they possess. They know more about what's being developed than the developers in many cases because the developers are in their ⁓ smaller context. I would say, whereas the QA engineers have the broader perspective, also the user perspective. even though I'm working in that field now, I still have a lot to learn about testing. Yeah. And I think I agree with everything you said there, right? Like, it's a, ⁓ yeah, when I got started, Selenium could barely do some of the things that it does nowadays like in We Take For Granted and ⁓ it's the magic of it was what got me into wanting to be more into automating and things like that. And I think it's an important problem that was solved and now is creating its own flame wars to the lack of a different word, right, between all of these companies and frameworks and things like that. But at the end of the day, I think as you say, testers are useful in knowing everything at the same time, right? And it's because kind of they might not only have a shallow knowledge of everything, but they need to know kind of everything of like, ⁓ data is coming from here to here, right? Where like a front-end engineer was like, I just need the data to arrive when I call for it, Never mind, like. Oh, by the way, this has gone like halfway around the planet to a data center and all the way back, right, when a user uses it and that creates performance issues and things like that. And people don't tend to think of it that way unless you, again, at that higher level. And I think there's, to me, there's an interesting similarity between like the way principle engineers work, because they will like, they're trying to look at the bigger picture as well, the whole time, right. and product managers and testers. Is that something that you've noticed as well, kind of that transition? Yeah, for sure. There's a difference between the roles in the team. ⁓ testers are also there to break up this conflict. mean, product managers, of course, they want to have the features in the product. ⁓ And the marketing people want to be able to... market certain features, but the testers are there to keep everything together and to also be at the start before something is developed. Like in the discussion, what features actually necessary, what could actually be counterproductive if we add this to the product, what are major pain points that users have? that we should maybe tackle first. And also what's great about the QA engineers here is that they always have the power to roll back something, ⁓ which is not usual in the industry. They are the ones who decide what is ready to be released and also can say when something is released to production. okay, this doesn't make sense the way it is. And then they can roll it back by themselves. How do you, like, because obviously you've been doing this role for a while. assume you kind of mentor juniors as they come up through the ranks of Travago. ⁓ Is there a kind of skill that you kind of go, ⁓ by the way, you should know this thing or think about this from your developer days that you find like, is so like, this is, I need to know this information all the time. I need to tell people that they need to know it too. ⁓ I can only speak for the automation side of things. I would say there, my developer experience is super valuable because of things like software architecture, knowledge, design patterns, ⁓ clean code principles, and just the more technical side. It also helps a whole lot if you're able to read code that other people or AI has written, especially when debugging something. when you find a bug as a QA engineer, it's also good to be able to go to a pull request or a feature branch that might have introduced it and spot in the code directly where the problem might be. So those are things that I think are really, really valuable. You've kind of mentioned the A word, AI, and kind of how that can influence things. ⁓ How do you, before we get really deep into some of the questions I've got for you around AI, but how do you, how are you kind of helping people create governance, I think, because I think it's important in the age of AI around AI development and quality. Like, is there anything that Trivago is doing that you're like, I'm glad we're doing it this way? ⁓ Definitely, I'm glad that the company provides ⁓ time and space and all the infrastructure and the AI models for us to work with. So It's not that we are allowed to experiment a bit with AI. No, it's the other way around. mean, management actually wants us to actively come up with ideas where AI can help and try those out. And they give us the time and space and the freedom to do that. So this is how we're all learning together and succeeding and failing together. So we can also share that knowledge and ⁓ just use AI as a tool as best as we can and as efficient as we can. I think that seems to be a common theme. So ⁓ today I was just chatting with Jana Loeffler, who is kind of major name in the testing space. ⁓ And one of the things that she said, and you've said it there, is giving people the space and confidence to go learn ⁓ and to be better at the craft. Because at the end of the day, I think it's important that we do that. ⁓ From a previous episode, I was chatting with Marit and she said like AI is great because it gives me the freedom to expand my imagination. Right. So I can go look at problems in a way that I would never have thought to do or I'm in such a rush that I just didn't have the time to feel like I could think about. What is the ⁓ kind of what's your favorite use case that you've kind of learned from kind of all of this that you want to get people going? Actually, this is okay. I can learn from here. My favorite use case that I use AI a lot for is migrating. So migrating from an older version of a library to a newer one. I did that recently with Gerkin, the part of the Cucumbers ⁓ library. I moved that from a pretty old one, I think version 6 to version 30 something. And it changed a lot and it would have taken me so much more time to really get a grasp on what changed and what functions are not there anymore and what is the new way to do it. So AI was a huge help in this. Even though I have to say it didn't manage to do all of it. but it did ⁓ the biggest part of it. ⁓ I think that I'm finding that is the biggest use case for me, and I've been doing a lot of work on the Selenium codebase ⁓ this month. ⁓ First of all, around transforming what in Selenium we call them atoms, which is these like incredibly small bits of JavaScript that if you wanted to get an attribute when you say to Selenium, hey, can you give me the attribute for this? DOM elements will go and do some heuristics and then return it. And it's not a web API version of get attributes. It does a few extra pieces on top of it. And that was written in Google Closure. And Google Closure is no longer supported. And we're like, ⁓ we should move this to TypeScript so that everyone can contribute to it. It's still valuable. ⁓ and it's been really... I found that transformation type work is really good because at the end of the day you've still got your kind of tests and they should be working exactly the way they are ⁓ and you've got like your beginning and you have a rough idea what it's going to be like in the end and I find those ones really really nice. The other one that I've been trying to do is ⁓ and I think this segues really nicely into the next topic which is around Selenium Bidi. is that one of my other roles at BrowserStack is working on the Selenium WebDriver BiDi specification. I chair the working group that does that, and so I run all the meetings and I work with all the browser vendors. And one of the nice things that's coming out of the specification is that a lot of the primitives are written in a CDDL. which is just a nice language that allows you to look at what is expected and you can generate code really easily off that, which means anyone can write a client from, if Microsoft decided that Playwright should be WebDriver BIDO backed, it's already, everything's there. They just need to generate the code how they see fit with all their extras. And so I found that transformation as being quite nice because now I've got code being generated in the way that I expect. Again, I've got all my tests. It is my kind of safety layer. And I recently talked about having test-driven development is still needed in the age of AI. I think that's really important because like that safety net is more needed than ever before. have you got any other like Interesting hot takes that you've come across when you've been using your AI ⁓ Yes, I mean I'm I'm known a bit as a skeptic when it comes to AI I mean I use it a whole lot ⁓ Name any AI tool I probably used it but ⁓ my Yeah, if you could say hot take is that AI Slows you down as well. And it also can give you a cognitive overload because before AI you had time constraints as a natural filter. So if you had 20 features for something in the back of your head, you had a limited amount of time to implement those. So you would filter out what makes sense, what creates value. But now, with the speed that, for example, cursor gives you, you can develop those things so quickly that you don't stop. That you think after building a feature, ⁓ yeah, I had this idea a week ago that I could also try this, and then you implement it, and then you say, okay, maybe we can also do this, and you don't stop. That can lead to a code base. that has way more Yagni code, so you ain't gonna need it in there because you just wanted to try it out. And it can also probably in the long run lead to burnout because you just don't have a natural point where you say, okay, now I will stop developing this one feature I have been developing for the last eight hours. But you always spend like a few minutes or half an hour per feature. So it doesn't give you this sense of achievement. Yeah, it's funny you say that. I caught myself doing this the other day where, as I said, I was working on Selenium and I had one visual code window open. I was doing it in there. And then I had this idea for another thing and I opened a new visual code window and I started vibe coding there. while I was doing all the other stuff and I was like, before I would just focus and do this thing. Now I'm just letting my brain go, which is great because now there's been a few things where I probably wouldn't have started the project in the first place because I know it would have been hard and long and things like that. ⁓ But now I can do that. But then I was listening to a different podcast the other day and the head of engineering at Anthropic, I think his name's Boris, he was like, yeah, every, like, I'm producing 30 to 40 pull requests every day. And he's the head of engineering, and you're like, wait, that doesn't sound right. I'm, you know, and I think that leads to what you're saying is like, there's this intensity, and it's constant. And I don't think like, know, we've all dived directly into the fire pit really of AI and I think there's going to be interesting things coming out of it over the next while. ⁓ So yeah, no, I can definitely believe that. ⁓ So one of the things that I wanted to ask you is that you're a big advocate for kind of the Selenium. Can you explain to people what it is to you and why you feel it's the game changer? I mean, the thing that kept me ⁓ using Selenium was always that it uses real browsers. ⁓ That sets it so much apart from everything else. Also that it says it's not a test framework. It's just a library to drive your browser, nothing else. So you are free to use it in whatever way, whatever framework. you build around it. And what many people seem to forget is that Selenium is way more than that because like you said, you're driving this by die specification. The Selenium project invented and drove the WebDriver specification which is also W3C ⁓ specification. browser vendors should implement it. please tell Apple that they should implement more By Die. I am working on it. I am definitely working on it. They are implementing it. One of the interesting things with having worked with people at Apple is in closed door environments, tell you exactly, not always, but they'll tell you roughly where they are with different things. ⁓ ⁓ You ask them anything in public and the general response is Apple does not talk about current or future releases. Like that is the standard talk. ⁓ you speak to like when Simon Stewart was at Apple, that was his response in the public space. ⁓ Dan Queller of Appium fame. Last year at Selenium conference, he was not allowed to go up on stage, right? Because he's the worry that Apple has about people doing things. I can say they are working on it. There is also a lovely ⁓ consultancy group that supports Apple and the WebKit project called Igalia. They're doing a lot of work. so ⁓ the, think over half of the initial implementation of WebDriver was done by Igalia. ⁓ And I know, sorry, and I know Blaise Berg, who works at Apple on the DevTools team has been working on it. Again, they are not allowed to speak about where they are with things. So I know it's happening and they tend to try to put one or two things out into the public space and then try not to get into trouble, obviously. But it's definitely getting there. ⁓ But coming back to byte, I think it is the right way to do it, to have a bidirectional WebSocket base. communication with the browser because ⁓ this is what we have been using using CDP. But this is not ideal, of course. So recently I made a lot of experiments with the newer by die features. And this is just amazing to see how far this has come. Also in the browsers that real users are using. Also, when you look at Appium and the way they implement Bidi also play right with their experimental support. I think Cypress as well. Yeah, Cypress. I mean, it's just the right way to go to have this in the real browsers in the real world and not having to rely on custom builds or JavaScript running inside of the browser or some hacky workarounds. And yeah, this is just great. I mean, I've tried features that I have built in the past with Bidi and it's gotten so much easier with the new Selenium version. And I'll actually attend a workshop at the Selenium conference this year about Selenium 5. I hope to see some more of what's being built behind closed doors. Yeah, so there's a lot there that you said and I just want to point out to people who might not know. The reason why the original WebDriver didn't use a WebSocket was WebSockets weren't there originally ⁓ when Selenium 2 came out and then it took many years for it to become stable enough in multiple languages. to be able to handle that situation. ⁓ The web has moved on and we need to kind of get it to there. Andreas Tolf-Tolson, who used to report to me at Mozilla, he created the Opera driver originally. ⁓ He always said we should be using WebSockets and we're like, we'd love to, but, right, and it's like, you know, if we had maybe pushed on other... working groups to get WebSockers to be more standardized and everywhere, think, kind of, it would have made a change. And and CDP, while useful, is not great at automation. that's ⁓ the Puppeteer team have moved wholeheartedly into WebDriver PIDO because they like, CDP is just too unstable for us to be able to use this in a meaningful way. ⁓ Are you allowed to talk about any of the kind of interesting things that you have done with Bada? That you were kind of like, ⁓ this didn't work before. Because I think it's, I'm always curious about use cases that people are using it for. ⁓ The last thing I've done, which is not in production, I just wanted to have a proof concept is the network interception and mocking of responses. I think this is really, really powerful that you can do that without. having some kind of mock server ⁓ that mocks APIs, but you can do it in your test code. And it's really straightforward to do that. I didn't expect it to be that straightforward, to be honest. ⁓ But this is really exciting. Also, intercepting the JavaScript errors ⁓ is really useful. And what I remember from last Selenium conference was this use case that you can have multiple browser contexts in the same browser. So you don't need separate browser instances, but you can run multiple tests side by side in the same browser, which reduces a lot of the memory overhead that especially Chrome has. So this is something I experimented with. And when this is officially supported, then we will definitely use this. So that multiple tab thing that you talking about, that was from Pooja Jajani. She did that talk at Selenium Conference. Pooja works with me here at BrowserStack. She's super smart. She was like, I remember her telling me, I've got this idea, I'm pretty sure I can make it work. And I went, OK, what is it? She's like, I'm going to have each tab have its own storage because that's one of the biggest problems with Selenium is that we could never guarantee the storage would be unique to a tab. ⁓ The way of browsers, they've all moved on. And she's like, and I'll show you. And she did it. And I was like, OK, that is phenomenal. And then the usual questions came back to us. It's like, why is browser stack doing that? Isn't that going to impact how people spend with you? No, people will spend how they're going to spend, right? Like that is what it is. ⁓ However, what if we could tell you by doing it this way, your tests are going to be, you know, five, 10 times faster. And they're like, that's better. That's what we want, right? And you and it's like people run hours worth of Selenium tests, right? ⁓ all over the place, even nowadays the same with Playwright. It's nice when you're doing browser automation and you've got a small project and you only have a few tests, great, but over time they all become cumbersome. Doesn't mean your flakiness is down to the framework you used. I've talked about this famously and I still believe it because ⁓ flakiness tends to happen when you go from being only Chrome to being Chrome and Firefox. And it's like, ⁓ wait, I didn't think Firefox interpreted code that way. ⁓ wow, now I've got to fix it. yeah, it's ⁓ kind of fascinating, yeah. Hard space to be in, I tend to find. ⁓ So the other thing I want to ask is that you've done bits and pieces around ⁓ open sourcing. collaboration with communities. What do you think is, ⁓ from a community point of view, of going to drive the next set of testing tools? Like what is the kind of things that people you think are going to want and need ⁓ moving forward? Hmm, that's a tough question because I think we're in a good place. when it comes to tools. What can definitely be a lot better is AI in testing tools, because I don't think we have AI tools that are on par with development tools that are powered by AI yet. So this is definitely something we need to keep up with the sheer volume of code that is being produced right now. And I think what's definitely needed is open source like Selenium, like I don't know, the Karate framework or other tools like that, because this is really where people can get involved in the community and help make things actively better. in many... many ways also move forward quicker ⁓ other than when you have a commercial testing tool and you don't really have the influence to shape it. So open source I think is still ⁓ very very very valid and this is the way forward in my opinion too. Yeah I have to agree but then I've been incredibly fortunate that like... 16 years I got paid to work on open source projects and I agree. ⁓ I have concerns in the age of AI because people go to the space of going, ⁓ I can just build it myself. It's like, great, you've solved it for you. then you go to NPM and it's like, ⁓ look, there's a billion packages doing roughly the same thing. What if you collaborated and now you could all move forward quicker with newer features, interesting features? Also, community I think is really important, especially in the age of AI, because I think one of the things that I hope people allowing AI to them to do is interact with each other a lot more, because you can go, hey, can you just do this thing to AI? And then you can go find out and get bigger contexts for yourself in your job. necessarily pass to AI, but you can go, I can solve these bigger problems, harder problems, because programming can only get you so far. Like automated tests are not going to tell you if a web page is slow loading, right? It'll just go, ⁓ I've logged in. It's like, great. But it took you 10 seconds to do that. No one's going to wait around for 10 seconds. Exactly. And also, this community It's so nice to be able to talk to people when it comes to a certain product, especially when you go to conferences and you see the contributors of your project that you're working with in person and you can ask questions instead of just taking ⁓ off-the-shelf solution that you don't know who's behind it, really. Yeah, definitely. ⁓ Talking of conferences, because you tend to kind of go when you can, obviously, and it's not always ⁓ possible. ⁓ Do you think conferences are still vital in this age of like instant learning and in AI and things, you know, being able to get everything off the internet? Do you still find conferences useful to you? ⁓ 100 % yes. That's why I'll be at Selenium Conference again as well or other conferences this year because this is where you, by talking to people and to other speakers as well, where you really see what issues they're facing, how people overcame certain things, what they learned, especially from their failures. This is something you... don't really see when you go on Stack Overflow or talk to the chat GPT or something, it will just give you solution. But sometimes it's more interesting what happened before that. What happened before someone came up with a specific solution, how they failed, what they tried. And oftentimes I come from conferences and I don't have something that I can use right away, but a few months down the road I might face something and remember something that a speaker mentioned, a tool, an approach, a website. And that I can use. this is the value. mean, talking to people is more valuable than ever before. We shouldn't lose that. Yeah, definitely. Definitely. I agree with that a hundred percent. One last thing. And is that I've heard through the grapevine, you're a bit into magic. Is that true? ⁓ And what do you... tend to do with it? ⁓ Yes, I've been into magic since I was around eight years old. So that never left me. And I have done that longer than I've been into in the software industry. And I practice pretty much every day. I sometimes use it when I talk on stage. And I just enjoy sharing this with others. And I really honestly enjoy also the practicing part and the reading part and everything that belongs to it. ⁓ It just never leaves you. How do you sneak some of that magic into kind of your everyday work? Is that even possible? ⁓ Yes, it is. ⁓ I would say two ways. One way is that I do practice also when I'm in the office and people know that. They know I'm into magic. I always have decks of cards or some coins in my hands, especially when I'm doing Zoom calls or something, I will practice out of frame because it just calms me down. Also when I'm thinking, ⁓ I oftentimes have a deck of cards in my hand practicing some moves because it helps me focus. The other thing is that I... know a lot about the psychology of magic principles and ⁓ also magic makes me, helped me be more confident in my life because it takes courage and it takes confidence to be able to show someone a magic trick. Yeah. And that helps me in my everyday communication. That helps me when I have to present something. when I have to speak to people, multiple aspects. That's really awesome. I have the same thing that when I'm working and I need to kind of focus, I do Rubik's cubes and I have one constantly with me. similar to you, like the way you solve Rubik's cubes is by memorizing algorithms, which are just a set of patterns, right? And it's the same with software development to me, right? It's like it's algorithms, it's a set of patterns, design patterns, whatever. You go, okay, I must memorize these things. And if I have them memorized, I can move quicker, right? The basics. And then also like with the Rubik's Cube, if you get stuck at a certain point, there's a certain like algorithm that can kind of... unstick you ⁓ as long as you repeat it enough times, right? And it's that kind of think through a process to me constantly over and over and go, ⁓ okay, now I've broken it down. Here's where I am. So ⁓ that's fascinating that you use it in that way. And I never thought of it that way. Like I just do it because like otherwise my hands get busy. ⁓ And it also stops me from feeling the need to pick up my phone if I'm bored in a meeting. I think that like I can still be present. And I think that's still really important. Yeah, and this is so important in magic because ⁓ when you practice some moves without thinking about it but thinking about something else, you develop this muscle memory that is necessary to be able to do those moves ⁓ and not focus on them because they need to be automatic. And this is very, very satisfying when this happens. Awesome. Right, we're going to head into our final section, which is a quick fire section. This is just a bunch of questions I'm going to ask you. I ideally just want your first thoughts. ⁓ I added it into the section because I tend to waffle as people are. But this way it allows me to have that focus of like, this really cool thing and go. Are you ready? Yeah, I'm a little scared but also ready. ⁓ A book every QA lead should be reading. ⁓ Yeah, one of the best books I've read on testing was Experiences of Test Automation, which is ⁓ kind of older book by Dorothy Graham, which has some case studies of real problems that were solved by automation, sometimes older than me. But it's really, really interesting because essentially the same problems come up over and over again in different form. So it's really valuable to read about that and learn from that. Yeah. Awesome. Underhyped QA metric. there are those metrics that are really boring meantime to detect and meantime to repair. ⁓ so it's the time until a defect is found and the time until this found defect is fixed. And, to, to make this period shorter, I think it's a very valuable metric to see how efficient. the teams are working together, it's much, much better than anything that relies on lines of code or something. Especially now with AI, it doesn't mean anything anymore. Yeah, definitely. I must stop and not speak. Most underrated skill in testers today. For me the most underrated skill and my most used skill is skepticism. I don't know if this is a skill, but being skeptical of promises that especially software vendors make, ⁓ promises that AI companies make, ⁓ people that go on LinkedIn and say, yeah, I've produced 2000. features in the last hour and I'm selling all that for a million. Be skeptic, especially when it comes to those networks like LinkedIn. Yeah, definitely. ⁓ If you went in the tech space now, what do think you'd be doing? I would probably be a professional magician, I guess, or a professional musician. Interesting. Yeah, both of those things are passions of mine. So that might be, or I might also, well, you said if you're not in tech. those are probably my only two options I could do. Awesome. Final question. ⁓ Why does the world still need human testers in the AI era? Because humans are absolutely needed to judge all the stuff that AI is producing, be it code, be it all the slop that floods the networks and video and sound platforms. Because it's so much easier to just churn out code and ⁓ anything that they call creative. So we need humans to be more human in this space. ⁓ Benjamin, this has been incredibly insightful conversation. Thank you for sharing your journey from development to testing to magic and everywhere. ⁓ Thank you again for joining me today. Thank you so much for the invitation. It was really fun talking to you. To our listeners, ⁓ Benjamin, where can they see what you're doing, ⁓ learn from you, things like that? Where's good places to find you? I'm not on the social networks except for LinkedIn, so you can find me there, or you can also go to my personal blog. It's called softwaretester.blog. That's the domain. So that's where I write about software testing. code craftsmanship, AI, more and more now. So this is also where all my other links are, where you can find me. Amazing. ⁓ Thank you, everyone, to listening and watching on various platforms. Please make sure that you press the Subscribe or Follow, depending on what platform you're on, so that you can find out what's the next episode. ⁓ And hopefully, we'll see you soon. Thank you all. Thank you, bye. you