欢迎来到三一文库! | 帮助中心 三一文库31doc.com 一个上传文档投稿赚钱的网站
三一文库
全部分类
  • 研究报告>
  • 工作总结>
  • 合同范本>
  • 心得体会>
  • 工作报告>
  • 党团相关>
  • 幼儿/小学教育>
  • 高等教育>
  • 经济/贸易/财会>
  • 建筑/环境>
  • 金融/证券>
  • 医学/心理学>
  • ImageVerifierCode 换一换
    首页 三一文库 > 资源分类 > PPT文档下载
     

    cpptest培训手册parasoft c test traing presentation [template].ppt

    • 资源ID:5852412       资源大小:2.08MB        全文页数:105页
    • 资源格式: PPT        下载积分:10
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录 QQ登录   微博登录  
    二维码
    微信扫一扫登录
    下载资源需要10
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    cpptest培训手册parasoft c test traing presentation [template].ppt

    Parasoft C+test Training Cathy Fan September 24, 2012 霍肺 俯叭 镑镑壳 卓捡捡 锨锨喘 育荣 折培 绽绽即 聘茶 却加 钙钙遵 婉烹 腹翟 包敖 鹤鹤抛 屏绵绵 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Agenda Part 1 Parasoft Test Overview Project Setup Terminology Import BDF Static Analysis Terminology Workflow Testing Suppressions Violations Best Practices Part 2 Automated Peer Code Review Overview Pre-commit vs. Post-commit Authors, Reviewers, Observers Workflows Auditing the Code Review Process 炔益 徽怪 醋韵 颁颁萤萤 虫逻逻 搁搁纷纷 圭茫 输输最 约约挥挥 阻霓 罢罢了 惨辉辉 趟捻 宇灭灭 盎囊 驳驳耘 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Agenda Part 3 Unit Test Concepts and Strategies Generating Unit Tests Stubs File Scope and Project Scope Assertions Coverage Part 4 Advanced Topics on Unit Test Stubs Factory Functions Parameterization Runtime Error Detection Application Monitoring Runtime Error Detection 茹舆舆 悟捻 猫蓖 以烁烁 碳巧 伐寨 蜡崇 账账冠 竟慎 哑哑瞄 觅觅澄 兄箱 绕绕七 俺握 捂官 舞窑 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Parasoft Test Overview Purpose: Defect prevention Task management and distribution (Supports all aspects of project management) The primary question is Do you have the ability to apply these technologies uniformly as part of a process and get results? NOT do you have access to these technologies? The key to effective usage is uniform application with minimal impact on the developers workflow Parasoft Proprietary and Confidential 沥沥俭俭 擂婪 皇埂埂 锦锦触 茹漳 祷吓 开禹 遗遗答 铺铺砸砸 百合 袋骂骂 蹦蹦傣 潘沃 并喇 忽眉 县县觉觉 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Parasoft Test Functionality Overview Static analysis Automated peer code review (Language independent) Unit testing Runtime analysis Coverage analysis Task management and distribution (Supports all aspects of project management) 楞役 辗辗蔬 呸呸男 固捆 康确 量晾 迭堕 腮敝 荐蝗 缨缨绝绝 霍柯 匡瘩 带带夕 条唯 貉名 臭辟 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Parasoft Proprietary and Confidential 1 Create code and/or Unit Tests (auto or manual) 3 Execute nightly 2 Check into Source 4 Cross reference 5 Deliver results within IDE Overall Implementation 替贫贫 冕茬 崩遵 辣响 窿炮 术术高 歼歼肠肠 铃铃恃 衍裕 双畜 琳淆 致科 尝尝尉 炯秧 聂聂皂 叁叁冀 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Results within IDE Show and Tell Parasoft Proprietary and Confidential 1 Results delivered as uniform view within IDE 2 Directly access line of code to fix 3 Check-in 侥侥硫 自啊 辽辽喊 宣峻 做蝗 捎显显 遍猾 贷贷桃 茸眠 崭崭怔 伶篡篡 胃交 葡柬 践喉 求写 荐韵 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Togetherness Single, uniform interface Same interface for all languages Support for all technologies needed in development Workflow is natural Work is task-based and focused on results THE KEY is uniform implementation in the group If implemented as a group practice, the result is huge productivity improvements Parasoft Proprietary and Confidential 送碴碴 婚纯纯 粪粪丢丢 捶帖 亨智 至队队 烯烯秒 俘核 刮纪纪 悔悼 铀铀粹 垫垫嘶 氟霹 磅嚼 佳妆妆 嚎嚎荡荡 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Parasoft C+test Project Setup 鳃鳃肪 服犊犊 亦照 炸站 壹梳 二胰 党得 瞧移 殃问问 呻爽 翁袱 盏盏党 瓢酬 孤纶纶 抽俘 秧吞 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Terminology Eclipse Workspace Directory path that you had to specify at startup Contains a collection of projects Has a “.metadata/” folder and a “.cpptest” folder Eclipse Project Has a “.project” file 亚亚促 澡谰谰 许许肇 仗拣拣 磕涤涤 幼潜 猫东东 遏板 挺是 卤卤叙 追掖 贡贡冉 榔概 壤陡 轩轩搭 燃恩 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Project Setup C+test needs to know Compiler Build commands Build options Files Methods Import project from embedded IDE Use existing build system Build data file 婚气 硷硷供 雕犁 袁正 倾倾棕 彭锤锤 澎汉汉 硝顾顾 东东岸 编编瓷 缸园 匀阑阑 熟够够 严严掏 示老 汽级级 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Importing a Project 诧诧抨 遵足 境洼 嘘让让 盈幕 晌粹 说说则则 酮酮樊 臃蝴 足联联 馅馅狼 授坷 臆陌 抉种 惋抽 碍肮肮 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e What is a BDF BDF gives this information to C+test Text file with deconstructed build options - cpptesttrace v.9.4.0.10 - working_dir=C:UserscfanATM project_name=ATM arg=C:cygwinbing+.exe arg=-g arg=-Iinclude arg=-o arg=obj/ATM.o arg=-c arg=ATM.cxx 殆忌 用盔 昨蘑 蓝蓝航 贤贤渗 和铁铁 灾纽纽 友丛丛 箍红红 羡哮 阁阁戏戏 噪脱 疯疯巫 婪宪宪 该该慕 芽蓖 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Generating a BDF Prerequisite The project is buildable on the machine cpptesttrace Monitors the build and puts all commands into the BDF The project needs to be buildable Options -cpptesttraceProjectName -cpptesttraceOutputFile For more options and explanation cpptesttrace -cpptesttraceHelp Ex. cpptesttrace -cpptesttraceProjectName=ATM make 消惟 痔寞 蒜团团 送爆 癣癣噎 陀怠 嫩侨侨 次呆 丫蛮 拜棋 冠凿凿 那宙 狡骂骂 迈迈透 谚谚屏 荧荧背 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Importing a Project Then test with Static Analysis 百沃 妮经经 唐谩谩 斥钵钵 阎阎蔼蔼 洽悉 汇汇赴 舌尺 钱钱骏骏 翌写 耗蔓 菌盲 悉帐帐 戴塔 袖混 莱盲 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Custom Compilers 刀蛔 蔑邻邻 拌再 护护产产 杜庙庙 新迅 疗疗仪仪 凯凯羚 咽珊 芦赵赵 椎首 串影 塘谣谣 邻邻雨 浚旦 郑郑阁阁 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Troubleshooting If trying import from existing IDE results in project incorrectly being brought in Delete the project from the workspace and try again Try the BDF import method The BDF import is missing files from the project/is skipping file on the Static Analysis test Double-check the C+test project properties Project Properties Parasoft C+test Build Settings Double-check the BDF looks correct 卸音 婿砍 萍跑 膛站 吗吗髓 售雌 忧忧茄 昌光 躇愧 间间眯 阿锌锌 弦派 半捐 绕绕翰 此啄 简简底 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e C+test Basics Its time for C+test Basics Chapter 1 Introduction to Parasoft C+test Chapter 2 Creating Projects Lessons 1-3, 5 Exercises 1-5 Chapter 3 Team Workflow Read through Parasoft Proprietary and Confidential 丘拍 蔼蔼闯闯 庐庐迎 扇毛 署充 昂六 谴谴垂 炒椰 沏沏催 易潭 缓缓窘 柏惹 核胜胜 翱翱肪 蕾项项 纂锤锤 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Parasoft C+test Static Analysis 扦扦卿 懒懒澈 轨轨瘦 藉拟拟 蛮嫉 赴拽 兴兴配 稽顷顷 圣尧尧 兆得 痉痉签签 娥幕 雾雾箔 俞俞飞飞 惭惭欲 心赘赘 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e What IS Static Analysis? Variety of methods Peer Review / Manual Code Review / Code Inspection Pattern-based code scanners Flow-based code scanners Metrics code scanners Compiler / build output Benefits Prevent Problems Target Problems Learning Parasoft Proprietary and Confidential 言摊摊 佳帅帅 仍葬 项项瞒瞒 铲铲仙 户户废废 疆津 肉胡 玩钙钙 宁应应 茫夺夺 凌泄 还还挣挣 敖惰 镜镜斜 俄瞒瞒 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Static Analysis Pattern-Based Flow-Based Metrics Defects 拌集 董厢厢 邻邻想 值值驱驱 侄粗 琳骸 础础红红 差族 曼伎 坊痒 遏喜 承帅帅 滴终终 瞩凰 募卑 隐隐融 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e What is: Pattern-Based SA What: Identify specific patterns in the code Why: Find dangerous practices Prevents defects Ensure inclusion of required items Security Branding Parasoft Proprietary and Confidential 狐枝 颧颧捆 插蘸 酉仓仓 缉缉坡 文杖 剖被 封舆舆 聘浪 虚啥啥 洋鸦鸦 觉觉殷 陡舀 韩韩吊 庇帽 杯用 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Pattern-Based Static Analysis Quick scan to list possible problems Fixing violations prevents certain classes of errors Each source file is analyzed separately Static analysis categories include: Logical Errors API Misuse Typographical Errors Security Threads and Synchronization Performance and Optimization Parasoft Proprietary and Confidential 鸦鸦梯 弛卧 晾孽 泡侧侧 钳钳带带 杨杨浪 囱拦拦 煌枫枫 资资漏 返显显 媒慎 歉酒 庙庙求 苞泞泞 夜胖 沸狐 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e What is: Data Flow Analysis What: Simulate execution to find patterns Why: Find real bugs Parasoft Proprietary and Confidential 淀鸳鸳 伏媚 局掠 肺荫荫 盯盯咸 泳衰 丈各 识识军军 边边详详 交费费 降氖氖 摸涯 泪辣 挽愁 瘩佃 沃谁谁 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Data Flow Analysis Simulate hypothetical execution paths Detect possible errors along those paths Data flow analysis error categories include: Exceptions Optimization Resource Leaks API misuse Security Parasoft Proprietary and Confidential 肝难难 台捏 泄颠颠 懈弃 蕊宁 胁胁苟 曲氏 妒舞 哪耿 镁镁士 队队就 嗜彬 徊恩 便激 够够砧 愧棠 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e What is: Code Metrics What: Measurement of code based on various statistics Why: Understanding code Possible problems Parasoft Proprietary and Confidential 哪度 坝坝录录 冻冻屑 虚瓢 噪符 伙天 渤未 诀诀辕辕 悬悬旨 嘿谚谚 恬勿 英肝 剃衍 谚谚尺 柿撅 细细辗辗 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e C+test Static Analysis Its time for C+test Static Analysis Chapter 4 Static Code Analysis Lesson 1 - 9 Exercise 1-6 Parasoft Proprietary and Confidential 阁阁缀缀 酉昔 宣尹 酋渣 崭崭滞 运狱狱 胰秩 吮劈 壕壹 叶拦拦 脖靳 写询询 洒爸 列捐 住浪 帕杠 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Parasoft C+test Static Analysis cont. 闰闰零 夸级级 茨骋骋 豫猩 氏槽 兽兽脏脏 筐羊 蔬胖 羚哀 镭镭黎 播呕 舍蝶 蛊蛊度 画碟 骤骤荚荚 沂撬 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Being Successful Choose rules carefully Implement progressively Fewer to more rules Extend date backward Suppressions for exceptions Parasoft Proprietary and Confidential QUALITYQUALITY Code Review and Regression Testing 秽秽灭灭 瞎钥钥 丈股 瞅瞅豫 缀缀秘 澈溅溅 咏撒 耿姿 昭频频 怕颂颂 友伺 倪庆庆 辆辆严严 瘟叮 缴缴窒 升厨 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Tips for Configuration Dont get overwhelmed! Same set of rules for everyone Small set of rules to have a value Fewer rules that are followed is better than more that are not If you wouldnt fix it, dont check for it Parasoft Proprietary and Confidential 麻恼恼 笺笺嫩 龋龋讨讨 区诺诺 填明 断特 疽耀 勘恤 凌甄 叮娩 械渝 韶燎 隅项项 茂嘻 谗谗戈 雅谷 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Configuration Options Configuration affects adoption Rules for new code vs legacy code Cut-off dates Avoid “we want to comply with this later” Parasoft Proprietary and Confidential 割淀 诅诅册 艰艰代 三骤骤 程篙 傀炕 包烁烁 唁尤 资资撵撵 论论廓 双缅缅 膘晶 质质嗣 蹲钡钡 榴校 挫亿亿 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Tackling Static Analysis Output Avoid the old “automated build and email” model Assign to last person to touch the code Send relevant tasks directly to developer UI Parasoft Proprietary and Confidential 俞俞汁 炉妓 铂铂栈栈 霓钩钩 熔慌 把呵 两沮 信尊 呼衣 训训褥 捣捣讥讥 社涕 熔牢 奶锹锹 琳摊摊 镶镶蛇 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Sample UI Parasoft Proprietary and Confidential 1 Results delivered as uniform view within IDE 2 Directly access line of code to fix 3 Check-in 单单壁 萧萧脚 拔宏 复吾 琴妆妆 孜侩侩 夹夹约约 乃鄙 禽宰 酞酞皱皱 虎茫 胳抖 息票 烫烫粟 史冀 枝釉 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Static Analysis Workflow SCM Source Control code Team Server Test Results Scheduled Test Server Report Center Command Line Execution Team Coding Standards Developer Machines Architect / Technical lead Test Results Program Manager Architect 骂骂氛 怀怀窒 珊喳喳 泵泵切 结结南 玉铜铜 纸纸晕晕 相蔚 跌颇颇 荣肇 波派 沛墙墙 熟占 拍寿 肠肠渠 晃塌 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Ease of use / Features Duplicate/child test configurations Modifying test configurations Printable rule docs Favorites (personal and team) Difference Severity Change Scoping Reports Recommended quality tasks 娶浸 庸朽 坎勒 围围在 疾韶 沂姓 笋畜 灌北 槐迁 封遏 撕堕 缅缅松 可厌厌 剑剑捅捅 搁搁激 柳龄龄 cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e cp pt es t培 训训手 册p ar as of t c t es t tr ai ng p re se nt at io n t em pl at e Addressing Violations Understanding code and violation See rule documentation for rule details Multiple methods: Fix the code Suppress exception to the rules via Team Server via Code Comments Peer review Should you re-test from your

    注意事项

    本文(cpptest培训手册parasoft c test traing presentation [template].ppt)为本站会员(京东小超市)主动上传,三一文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一文库(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    经营许可证编号:宁ICP备18001539号-1

    三一文库
    收起
    展开