Tag Archive: php

Jul 11

iniFile.class Released

for a while when i was building my automation scripts if i wanted settings they would either be a hardcoded array in the script of a .txt that i would load into an array…or explode into an array…ok i just used arrays. i had used ini file briefly for other projects but when i learned …

Continue reading »

May 23

_autoBase.class Released

autoBase is a PHP Class i built for use in Selenium Server and it designed to work with my Portable Selenium Setup. the idea was that a bunch of Selenium functions i used were always such long ass lines so i created a bunch of wrapper functions to not only make the called lines shorter …

Continue reading »

May 21

Selenium – Screenshotting the ENTIRE page

Selenium already has a screenshot function but there’s a problem with it. it takes a screenshot of what you see in the window. when i did some Selenium Test Scripts a couple years back for Rivers i wanted to build them so that if an error appeared, unless the tests were dependent on one test …

Continue reading »

May 12

Selenium – Select drop down option by Frontend Text

one of the annoying things i found in Selenium is that when working with a drop down you needed to know the value of the open you wanted to select which oftern is different from the value the user will see. if you was testing and you wanted to make sure that a front end …

Continue reading »

Apr 20

csvReports.class Released

csvReports is a PHP class i built when i was doing report/query analysis at SFG. the purpose of the class is to generate Comma Separated Value files (.csv) which Microsoft Excel would them load up as a spreadsheet. the main thing is that because the header is set in the class and each row is …

Continue reading »

Apr 04

_commonLib.class Released

commonLib is a PHP class i built to assist in a lot of my work which contains a bunch of functions i use, alot. so rather than copy and pasting them into new scripts i created a class for them because i love OO Programming and also since i use these functions in other classes …

Continue reading »

Feb 07

Padding string without loops

So if we wanted to pad a string in PHP with a prefix or suffix generally we would need to do this now obviously if we were adding a suffix we’d skip $added and just append the original string (if we didn’t want to keep it). however for shits and giggles say we didn’t want …

Continue reading »

Jan 02

How to store a var_dump

one thing i really like about PHP is var_dump, a nice little function that outputs what an object is regardless of type, including classes which shows what data is private and protected. when i need to debug a language one of the first things i look for is a equivalent. but sometimes the var_dump either …

Continue reading »

Sep 09

PHP Automation Kit

4 or so years ago i was introduced to Selenium Server for the purpose of creating automated tests for a Magento Website. around that time i did some experiments on nanofate.us to see how i could go about downloading their entire gallery of images and in the end my experiments lead to me using Selenium …

Continue reading »

Mar 23

Default Values for Argument Arrays

One of the nice things about arrays in programming is that they allow you to infinity increase the argument limit of a function when you are able to pass them. ie in PHP. if you tried to call the function without specifying the argument you’d get a warning and notice in PHP, in some stricter …

Continue reading »

Older posts «