GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing kroartem.wordpress.com — kroartem Back from stasisHello again, long time no see! That’s the phrase I usually say 🙂 A lot of things have changed since my last post. Currently I’m working in Wrike as QAA Engineer. As my work is again (surprisingly!) related to web-development and web-testing, I’m planning to write a bunch of notes here about WebDriver and all this stuff. Stay tuned! When you see warnings everywhereJust got an email from one of online shops and one thing made me feel a bit uncomfortable. Can you guess why?
Yes, the answer is simple. The underline heavily reminds about CheckStyle
Autologin in WindowsIt required me some time to find an appropriate way to autologin into Windows 2102 Server. There are several ways of doing this but I found that typing
In cmd is a good way to get things done and (as SO says) it this case it doesn’t store password in a clear way in registry. It’s also stated that Autologon from Sysinternals can do the trick but I didn’t check it. P.S. Some may notice it’s been a while I wasn’t here. I’ll write another post regarding this. Software TestingLong time no posts, but I’m still alive and kicking! Just finished an online course on Udacity — Software Testing. Feels pretty interesting and not that hard to listen to (I was afraid my English skills degraded badly). However, still have to finish coding tasks, but there is a problem regarding these tasks. When I do something wrong, it shows something like “Incorrect. You’ve passed 3 out of 0 tests”, and I don’t get the point what is going wrong. 🙂 Also sometimes I don’t understand what exactly is needed from me, writing tasks’ text in python code doesn’t seem to be a good idea. Anyway, I’m glad to watch this course and will continue with Software Debugging Automating the Boring Tasks. Hope to finish it and some other courses till the end of the year. A few words about SmartClientWebDriverSince I’ve touched SmartClientWebDriver at work, supporting a framework to test SmartGWT web-application, there is something I have to say. Do not agree to test SmartGWT’s applications! Probably, I’m a bit harsh, but here is my point of view:
In a nutshell, if somebody will ask me to work with SmartClientWebDriver again, the answer will be “NO!“ A simple revelation about WebDriverContinuing my last post: We’ve managed to make our framework faster and more stable. The answer was quite easy – seems like SmartClient implementation of WebDriver works incorrectly with timeouts. So
didn’t work properly. We’ve changed our code to this one: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); And it does the trick. Now we’re polling ~every 5 milliseconds and it works correctly. So I assume it is a bug in SmartClient WebDriver, but who cares, if we already have a workaround? 🙂 One thing that disappointed me in Selenium WebDriverTwo days ago I was trying to speed-up our framework that eases work with Selenium Webdriver – we just write .xml files and then tests are working according to these files. Whilst trying to do explicit wait, I mentioned one thing related to wait.until:
So I need to do something like this because
I don’t catch NoSuchElementException as we don’t really care about it. The idea is that I want to check this element once or twice in a seconds and sometimes it works, sometimes not. Начало работы с GoogleTestМой первый пост здесь на русском, но так будет проще. Столкнувшись недавно с необходимостью покрыть код тестами, я стал искать фреймворк для тестирования кода. Навскидку можно сразу же назвать несколько: xUnit, Boost Test Library, и GoogleTest (далее GT). Посмотрев несколько обзоров на хабре и stackoverflow, остановился на GT. На первый взгляд, примеры выглядят не так уж и сложно. Однако возникает вопрос, как вообще добавить GT к своему проекту? На мой взгляд, с этим есть небольшие проблемы. Сначала (на deb-based дистрибутивах):
Этот пакет установит всего лишь сорцы (i.e. header-files). Скомпилировать пакет нужно самому. Код теперь лежит в /usr/src/gtest Идем в эту директорию, говорим
Теперь, когда мы разобрались с установкой, мы можем попробовать написать и собрать самый простой пример.
Объяснять здесь вроде особо нечего. У нас есть функция, вычисляющая квадратный корень. Мы покрываем её тестами, одни тесты проверяют корректность if-ветки, вторые – else-ветки. Потом мы запускаем прогон всех тестов. Собирать будем командой
Запускаем test1, и получаем примерно вот что:
Что предстоит дальше – добавить сборку в cmake, и как-то сделать всё это дело более кроссплатформенным (попробовать под виндой). P.S. Идеи, как заставить всё это работать, да и код тоже, были бессовестно взяты с нескольких зарубежных блогов. gcc: decrease binary size, eliminate unused functions/codeIn SuperTuxKart, we have ~80 unused functions and some of them are really big. As I’m not sure whether they’re needed or not, I’ve googled for special gcc options. Some links so I don’t forget: http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Compilation-options.html http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-ffunction-sections-973 http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#index-Wl-1104 By default gcc won’t eliminate unused data/functions, but we can do it manually. As a result – decreasing ‘supertuxkart’ binary by 80kb. Not epic, especially when you know that binary is 11mb in size.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |