{"id":362,"date":"2023-09-09T13:48:16","date_gmt":"2023-09-09T13:48:16","guid":{"rendered":"https:\/\/softwaretestingstuff.com\/?p=362"},"modified":"2023-09-10T10:11:43","modified_gmt":"2023-09-10T10:11:43","slug":"testing-at-programming-coding-phase","status":"publish","type":"post","link":"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html","title":{"rendered":"Testing at Programming \/ Coding phase"},"content":{"rendered":"\n

Note:<\/strong> This is applicable for both Black box as well as White box testers.<\/p>\n\n\n\n

Check the code for consistency with design –<\/strong> The areas to check include modular structure, module interfaces, data structures, functions, algorithms and I\/O handling.<\/p>\n\n\n\n

Start testing with organized and systematic manner –<\/strong> Perform the Testing process in an organized and systematic manner with test runs dated, annotated and saved. A plan or schedule can be used as a checklist to help the programmer organize testing efforts. If errors are found and changes made to the program, all tests involving the erroneous segment (including those which resulted in success previously) must be rerun and recorded.<\/p>\n\n\n\n

Asks some colleague for assistance –<\/strong> Some independent party, other than the programmer of the specific part of the code, should analyze the development product at each phase. The programmer should explain the product to the party who will then question the logic and search for errors with a checklist to guide the search. This is needed to locate errors the programmer has overlooked.<\/p>\n\n\n\n

Use available tools –<\/strong> The programmer should be familiar with various compilers and interpreters available on the system for the implementation language being used because they differ in their error analysis and code generation capabilities.<\/p>\n\n\n\n

Apply Stress to the Program –<\/strong> Testing should exercise and stress the program structure, the data structures, the internal functions and the externally visible functions or functionality. Both valid and invalid data should be included in the test set.<\/p>\n\n\n\n

Test one at a time – <\/strong>Pieces of code, individual modules and small collections of modules should be exercised separately before they are integrated into the total program, one by one. Errors are easier to isolate when the no. of potential interactions should be kept small. Instrumentation-insertion of some code into the program solely to measure various program characteristics \u2013 can be useful here. A tester should perform array bound checks, check loop control variables, determine whether key data values are within permissible ranges, trace program execution, and count the no. of times a group of statements is executed.<\/p>\n\n\n\n

Measure testing coverage\/When should testing stop? <\/strong>– If errors are still found every time the program is executed, testing should continue. Because errors tend to cluster, modules appearing particularly error-prone require special scrutiny.<\/p>\n\n\n\n

Use Metrics –<\/strong> The metrics used to measure testing thoroughness include statement testing (whether each statement in the program has been executed at least once), branch testing (whether each exit from each branch has been executed at least once) and path testing (whether all logical paths, which may involve repeated execution of various segments, have been executed at least once). Statement testing is the coverage metric most frequently used as it is relatively simple to implement.<\/p>\n\n\n\n

The amount of testing depends on the cost of an error. Critical programs or functions require more thorough testing than the less significant functions.<\/p>\n\n\n\n

Also See:<\/strong><\/p>\n\n\n\n

– What is White Box Testing<\/a>
– 
Unit Test Case<\/a>
– 
Top Down vs Bottom up Testing<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Note: This is applicable for both Black box as well as White box testers. Check the code for consistency with design – The areas to check include modular structure, module interfaces, data structures, functions, algorithms and I\/O handling. Start testing with organized and systematic manner – Perform the Testing process in an organized and systematic manner with test […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5,13],"tags":[],"table_tags":[],"class_list":["post-362","post","type-post","status-publish","format-standard","hentry","category-blog","category-software-testing"],"yoast_head":"\nTesting at Programming \/ Coding phase - Software Testing Stuff<\/title>\n<meta name=\"description\" content=\"Discover the ultimate guide to testing at programming and take your coding game to the next level. Get ready to boost your productivity and code quality today!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Testing at Programming \/ Coding phase - Software Testing Stuff\" \/>\n<meta property=\"og:description\" content=\"Discover the ultimate guide to testing at programming and take your coding game to the next level. Get ready to boost your productivity and code quality today!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html\" \/>\n<meta property=\"og:site_name\" content=\"Software Testing Stuff\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/tdipto\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-09T13:48:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-10T10:11:43+00:00\" \/>\n<meta name=\"author\" content=\"Rahnuma Tasnim\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tanvir@softwaretestingstuff.com\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rahnuma Tasnim\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html\"},\"author\":{\"name\":\"Rahnuma Tasnim\",\"@id\":\"https:\/\/www.softwaretestingstuff.com\/#\/schema\/person\/89d98848f9f47c2c4397c8b6b05c739b\"},\"headline\":\"Testing at Programming \/ Coding phase\",\"datePublished\":\"2023-09-09T13:48:16+00:00\",\"dateModified\":\"2023-09-10T10:11:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html\"},\"wordCount\":515,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.softwaretestingstuff.com\/#organization\"},\"articleSection\":[\"Blog\",\"Software Testing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html\",\"url\":\"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html\",\"name\":\"Testing at Programming \/ Coding phase - Software Testing Stuff\",\"isPartOf\":{\"@id\":\"https:\/\/www.softwaretestingstuff.com\/#website\"},\"datePublished\":\"2023-09-09T13:48:16+00:00\",\"dateModified\":\"2023-09-10T10:11:43+00:00\",\"description\":\"Discover the ultimate guide to testing at programming and take your coding game to the next level. Get ready to boost your productivity and code quality today!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.softwaretestingstuff.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Testing at Programming \/ Coding phase\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.softwaretestingstuff.com\/#website\",\"url\":\"https:\/\/www.softwaretestingstuff.com\/\",\"name\":\"Software Testing Stuff\",\"description\":\"Unlock the power of efficient testing and elevate your testing game\",\"publisher\":{\"@id\":\"https:\/\/www.softwaretestingstuff.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.softwaretestingstuff.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.softwaretestingstuff.com\/#organization\",\"name\":\"Software Testing Stuff\",\"url\":\"https:\/\/www.softwaretestingstuff.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.softwaretestingstuff.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.softwaretestingstuff.com\/wp-content\/uploads\/2022\/12\/logo-sts.png\",\"contentUrl\":\"https:\/\/www.softwaretestingstuff.com\/wp-content\/uploads\/2022\/12\/logo-sts.png\",\"width\":3268,\"height\":455,\"caption\":\"Software Testing Stuff\"},\"image\":{\"@id\":\"https:\/\/www.softwaretestingstuff.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.softwaretestingstuff.com\/#\/schema\/person\/89d98848f9f47c2c4397c8b6b05c739b\",\"name\":\"Rahnuma Tasnim\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.softwaretestingstuff.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/41c8421a46bfdc7a8c3777359a8ce20e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/41c8421a46bfdc7a8c3777359a8ce20e?s=96&d=mm&r=g\",\"caption\":\"Rahnuma Tasnim\"},\"description\":\"Rahnuma is a technical content writer at software testing stuff. A software engineer by degree and a dynamic content creator by passion, she brings to table over 3 years of writing experience in tech niche. Combining her enthusiasm for writing and technology, she loves to share her thoughts on the latest tech trends.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/rahnuma-tasnim-770402216\/\",\"https:\/\/www.facebook.com\/tdipto\",\"https:\/\/x.com\/tanvir@softwaretestingstuff.com\"],\"url\":\"https:\/\/www.softwaretestingstuff.com\/author\/tanvirsoftwaretestingstuff-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Testing at Programming \/ Coding phase - Software Testing Stuff","description":"Discover the ultimate guide to testing at programming and take your coding game to the next level. Get ready to boost your productivity and code quality today!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html","og_locale":"en_US","og_type":"article","og_title":"Testing at Programming \/ Coding phase - Software Testing Stuff","og_description":"Discover the ultimate guide to testing at programming and take your coding game to the next level. Get ready to boost your productivity and code quality today!","og_url":"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html","og_site_name":"Software Testing Stuff","article_author":"https:\/\/www.facebook.com\/tdipto","article_published_time":"2023-09-09T13:48:16+00:00","article_modified_time":"2023-09-10T10:11:43+00:00","author":"Rahnuma Tasnim","twitter_card":"summary_large_image","twitter_creator":"@tanvir@softwaretestingstuff.com","twitter_misc":{"Written by":"Rahnuma Tasnim","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html#article","isPartOf":{"@id":"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html"},"author":{"name":"Rahnuma Tasnim","@id":"https:\/\/www.softwaretestingstuff.com\/#\/schema\/person\/89d98848f9f47c2c4397c8b6b05c739b"},"headline":"Testing at Programming \/ Coding phase","datePublished":"2023-09-09T13:48:16+00:00","dateModified":"2023-09-10T10:11:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html"},"wordCount":515,"commentCount":0,"publisher":{"@id":"https:\/\/www.softwaretestingstuff.com\/#organization"},"articleSection":["Blog","Software Testing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html","url":"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html","name":"Testing at Programming \/ Coding phase - Software Testing Stuff","isPartOf":{"@id":"https:\/\/www.softwaretestingstuff.com\/#website"},"datePublished":"2023-09-09T13:48:16+00:00","dateModified":"2023-09-10T10:11:43+00:00","description":"Discover the ultimate guide to testing at programming and take your coding game to the next level. Get ready to boost your productivity and code quality today!","breadcrumb":{"@id":"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.softwaretestingstuff.com\/2007\/11\/testing-at-programming-coding-phase.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.softwaretestingstuff.com\/"},{"@type":"ListItem","position":2,"name":"Testing at Programming \/ Coding phase"}]},{"@type":"WebSite","@id":"https:\/\/www.softwaretestingstuff.com\/#website","url":"https:\/\/www.softwaretestingstuff.com\/","name":"Software Testing Stuff","description":"Unlock the power of efficient testing and elevate your testing game","publisher":{"@id":"https:\/\/www.softwaretestingstuff.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.softwaretestingstuff.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.softwaretestingstuff.com\/#organization","name":"Software Testing Stuff","url":"https:\/\/www.softwaretestingstuff.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.softwaretestingstuff.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.softwaretestingstuff.com\/wp-content\/uploads\/2022\/12\/logo-sts.png","contentUrl":"https:\/\/www.softwaretestingstuff.com\/wp-content\/uploads\/2022\/12\/logo-sts.png","width":3268,"height":455,"caption":"Software Testing Stuff"},"image":{"@id":"https:\/\/www.softwaretestingstuff.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.softwaretestingstuff.com\/#\/schema\/person\/89d98848f9f47c2c4397c8b6b05c739b","name":"Rahnuma Tasnim","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.softwaretestingstuff.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/41c8421a46bfdc7a8c3777359a8ce20e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/41c8421a46bfdc7a8c3777359a8ce20e?s=96&d=mm&r=g","caption":"Rahnuma Tasnim"},"description":"Rahnuma is a technical content writer at software testing stuff. A software engineer by degree and a dynamic content creator by passion, she brings to table over 3 years of writing experience in tech niche. Combining her enthusiasm for writing and technology, she loves to share her thoughts on the latest tech trends.","sameAs":["https:\/\/www.linkedin.com\/in\/rahnuma-tasnim-770402216\/","https:\/\/www.facebook.com\/tdipto","https:\/\/x.com\/tanvir@softwaretestingstuff.com"],"url":"https:\/\/www.softwaretestingstuff.com\/author\/tanvirsoftwaretestingstuff-com\/"}]}},"_links":{"self":[{"href":"https:\/\/www.softwaretestingstuff.com\/wp-json\/wp\/v2\/posts\/362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softwaretestingstuff.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.softwaretestingstuff.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwaretestingstuff.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwaretestingstuff.com\/wp-json\/wp\/v2\/comments?post=362"}],"version-history":[{"count":0,"href":"https:\/\/www.softwaretestingstuff.com\/wp-json\/wp\/v2\/posts\/362\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.softwaretestingstuff.com\/wp-json\/wp\/v2\/media?parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwaretestingstuff.com\/wp-json\/wp\/v2\/categories?post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwaretestingstuff.com\/wp-json\/wp\/v2\/tags?post=362"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/www.softwaretestingstuff.com\/wp-json\/wp\/v2\/table_tags?post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}