And this series of posts is going to a start with a question. A question whose answering I hope will take me to all the places that I want to talk about regarding testing Alteryx macros. As I write this first post I don't know the answer to my question, but I also have a feeling that I will still achieve what I want from these posts regardless of what that answer may be. After all "Life is a journey, not a destination".
So here is the question that I want to answer:
"Is it possible to use Test Driven Development (TDD) to develop an Alteryx macro?"
For anyone unfamiliar with TDD then I recommend a quick read of the Wikipedia article here which will fill you in on the basics. But the work cycle looks like this:
- Write a test for a piece of functionality which will fail.
- Run the tests and see the test fail.
- Write some code which makes the test pass.
- Run the tests and check they all pass.
- (Optionally) Re-factor your code. Without adding any new functionality and without breaking any tests.
- Repeat.
Working in this way means you add functionality in small and fully tested steps until you have built up a larger feature. The nice thing with knowing that all the functionality is tested is that when you come to re-factor in step 5 you can do so confident in the knowledge that you haven't broken anything.
So how do we apply this to building an Alteryx macro? Well let's have a go.
For this example I am going to try and rebuild the CReW macro "Add Totals". This is a fairly simple macro which allows the user to select a number of numeric columns and then adds a total row and total column on to the data table.
This seems a good macro to start with as it has a reasonable amount of complexity (but not too much) and also has the benefit that I wrote it a long time ago and have no idea how it currently works. I intend to build my new version without looking and then compare the two at the end.
OK so let's start. Step 1 we need to identify a small piece of functionality and write a test for it which fails. So I can imagine that the first piece of functionality we might identify is adding just a total column for a data stream which has a single field called Field1 on the incoming data stream. Not very useful in itself, but is the smallest first step I can think to take and TDD emphasizes small steps.
So how do we write a test for that? Ah... We have hit our first problem. For other programming languages, where TDD is regularly used, there exist unit test tools. Right now for Alteryx there really isn't an available tool for us to use.
Now as any of you that know me well will know, one of my mantra's with Alteryx is "if it doesn't exist then build it" and so building a Alteryx testing tool is going to be stop 1 on our journey towards TDDing an Alteryx macro. Look out for my next post when will we start to do just that.
Brilliant ideas that you have share with us.It is really help me lot and i hope it will help others also.
ReplyDeleteupdate more different ideas with us.
Selenium Training in Chennai
selenium training in OMR
JAVA Training in Chennai
Python Training in Chennai
Hadoop Training in Chennai
Software testing training in chennai
Selenium Training in Chennai
Selenium Training in Velachery
Thanks for sharing the content in a short and clear way.
ReplyDeleteSpoken English Class in Chennai
IELTS Coaching Centre in Chennai
English Speaking Course in Mumbai
IELTS Classes in Mumbai
IELTS Coaching in Mumbai
IELTS Mumbai
Best IELTS Coaching in Mumbai
IELTS Center in Mumbai
Mua vé tại đại lý vé máy bay Aivivu, tham khảo
ReplyDeletevé máy bay đi Mỹ hạng thương gia
vé máy bay vinh đi sài gòn giá rẻ
vé máy bay đi hà nội giá bao nhiêu
vé máy bay đi đà lạt vietjet
vé máy bay đi Huế vietnam airline
taxi sân bay hà nội nội bài
combo khách sạn đà nẵng
film izle - sex hikayeleri - sex hikayesi - erotik hikaye -
ReplyDeleteankara escort - bornova escort - alsancak escort - çeşme escort - izmir escort - smm panel - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - haber - instagram takipçi hilesi - instagram takipçi satın al - izmir evden eve nakliyat - seocu - instagram takipçi hilesi - instagram takipçi satın al - izmir escort - takipçi satın al - instagram takipçi satın al - tiktok takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takibi bırakanlar - buca escort -
karşıyaka escort - instagram takipçi hilesi
What an outstanding post! “I'll be back” (to read more of your content). Thanks…Indian visa online for US citizens, USA citizens whose sole purpose of visiting India is for leisure, sightseeing, religious work or casual travel to visit their friends or relatives can apply for Indian 30 days tourist visa through online India visa application system.
ReplyDeleteI am enjoying every bit of it. It is a good site, as well as the stock is well-chosen. Thank you emergency visa application India, emergency visa to India application form you can fill online. within 1 to 3 business days you can get your visa via fast track Indian visa services.
ReplyDeleteyeni perde modelleri
ReplyDeleteSms Onay
Vodafone mobil ödeme bozdurma
nft nasıl alınır
ANKARA EVDEN EVE NAKLİYAT
Trafik Sigortasi
Dedektor
web sitesi kurma
aşk kitapları
Smm Panel
ReplyDeleteSMM PANEL
İş İlanları Blog
İnstagram takipçi satın al
HTTPS://WWW.HİRDAVATCİBURADA.COM
Https://www.beyazesyateknikservisi.com.tr
servis
tiktok jeton hilesi