Code et cetera

Coding, QA and whatnot.

The search button won't work!

I've encountered this problem where you won't be able to proceed with a search while automating some Android apps with Appium, and I've found some solutions that have worked in some cases and others in others. So I'm gonna lay them down here, they may be helpful for anyone finding himself with this problem.

First case, this is the standard solution. Here you simply input the text and send the Enter key:;
driver.pressKey(new KeyEvent(AndroidKey.ENTER));

Second case. Here we append a line break at the end of the text we want to search. In most cases this will trigger the search. I find this to be simple and working most of the times:;
driver.sendKeys(textValue + "\n");

Third case. The most rare one, is when the app specifically waits for a special kind of event, the EditorAction;
driver.executeScript("mobile:performEditorAction", ImmutableMap.of("action", "search"));

I hope this can be helpful to anyone facing this issue. If I find another way in the future I will add it to the list.

#appium #automation #android

Here's a little useful snippet I found to wait for a node to be present in the selenium grid's console. You can change according to whatever you want it to show uo, of course...

# Wait for a chrome node
while ! (curl -sSL "http://localhost:4444/grid/console" | grep -i chrome) >/dev/null 2>&1; do echo -n "."; sleep 0.2; done

# Wait for a firefox node
while ! (curl -sSL "http://localhost:4444/grid/console" | grep -i firefox) >/dev/null 2>&1; do echo -n "."; sleep 0.2; done

#selenium #automation

If appium can't retrieve the element hierarchy on an iOS app for whatever reason, try one of these methods:

driver.executeScript("mobile: source", ImmutableMap.of("format", "description"));

driver.executeScript("mobile: source", ImmutableMap.of("format", "json"));

On your test code, this will return the source, although it mmight not be as neatly formated as the usual getSource(), sometimes that method doesn't retrieve every element. This can be an useful workaround.

#appium #automation #iOS

For a month and two weeks now, I've been having less and less time to do much beside changing diapers. If I can squeeze a bit of time into my hobbies, I have to split it between learning / coding projects and playing games. So that leaves little time, which I usually put into Monster Hunter Generations Ultimate.

Thankfully I've been following some Youtube channels that let me enjoy some games without playing them myself, useful for when I'm doing chores or what not. If you're bored at home during the current coronavirus quarantine, this might come in handy.

I regard every channel I'm going list list with high esteem, and recommend you check them out if you like video games that aren't just shooters / fortnite. Here goes:

The list

Chris Davis Good in depth critiques of games, the videos are on the longer side if you dig that. I don't have much to say since its quite straight forward, but I find the reviews of good quality and objective.

Accursed Farms Mythical Ross's Game Dungeon series, which review and fully plays though old gems mostly. Some of these gems might be shittier than other but still gems anyway. Fun commentary and you get the see the end of games you will likely never fully play. He doesn't upload that many videos lately due to poisonous mold invading his home for some time.

Grim Beard Diaries

This channel has a very particular theme, most games are grim or darkish tone. And the narrator has a persona of a schizophrenic kind of guy who gets mysterious calls mid review, definitely recommend it.

Mandalore Gaming Mandalore is another one that is pretty straight forward game reviews, although you can find some interesting tidbits about some games and some in depth commentary about others, I like the narrator enough and the variety of genres he covers. Hes not particularly comical, but the Limbo of Lost review I have chosen to embed is priceless.

Matthewmatosis This is one of my favorites, always waiting for the next video to be up. He has some really in depth commentary on the games he reviews, which you can tell he put a lot of effort in mastering. I particularly enjoy the long videos where he plays a game fully while commenting on it. I think anyone interested in game dev should watch his videos for some interesting insights.

Kreal Tube This is a really fun channel, half game reviews half cartoon show. The videos are short and sweet, all using the same art style. Follow Kreal and friends on their miss adventures reviewing video games! BTW I give this channel a 7/10.

SsethTzeentach These are some of the most hilarious comedic reviews I have yet to see. The style might be love it or hate it, but I personally can't stop laughing with his videos.

Teh Snakerer This channel features lengthy game play with commentary / reviews that I find perfect to have something on the background while doing other things, plus some full playtroughs of a few games if you're into that.

And some game-specific channels:

Gaijin Hunter This channel I recommend more specifically if you enjoy Monster Hunter. He has tons of videos for guides on many of the game mechanics. On both classic MonHun and World.

Zerkovich Guides and multiplayer matches of Total War games, Mostly War Hammer 2.

Spirit Of The Law A lot of videos about AoE 2 mechanics and what not, I recommend it if you're a fan of the game.

elementary os logo

So I've been using #Linux here and there for many many years, but never used it as a daily driver. On my current work, we use Linux machines a lot, both physical and cloud servers, etc so I thought it would be a great idea to make the move on my work machine.

And how did it go? It's been great. One of the best decisions I've made. I feel much more productive, every tool I need its available and ready to install quickly though repositories, and the usability of the desktop is just much agile than windows. No to speak of the forced “down your throat” windows updates. The one thing I'm missing, well I'm not missing it myself, my life would be better without it but we use it at work; Skype for business. Which I have to use the android app instead of the desktop one.

And the performance is amazing, I'm using Liquorix Kernel, and everything just flies!

The distro I choose is Elementary Os and I'm really happy about it. Its based on Ubuntu stable, which is a good compromise between stability, up to date software and, well, its Ubuntu so it mostly “just works.” I wont go into distro comparisons here, but after having tried pretty much everything there is out there, Ubuntu (or a Ubuntu based distro) is what I feel most comfortable using, and know lets me focus on work rather than fixing random issues. So, why Elementary? Well, as I was saying its based on Ubuntu stable, but it has IMO a better presentation. I'm just not a big fan of the Ubuntu Gnome looks.

So, if you're on the fence, I recommend you take the plunge and give it a whirl, I think unless you need a very specif software for your work, you can benefit from running a Linux desktop on every other aspect.

So after having looked for blogging solutions during the last week, having made a kind of a resolution to start writing a blog, I came upon and to my surprise it seems to be just what I'm looking for: A simple, elegant and no-nonsense platform to write my thoughts. I'm really happy to have found it finally, almost resigned to go back to wordpress, it is a shame this platform doesn't have more renown, for it think it would be well deserved.

Enter your email to subscribe to updates.