Google App의 Outlook 설정

Google Apps를 사용하면서 주로 웹에서 직접 사용하거나 Ubuntu Linux에서 설정을 하여 사용을 하고 있습니다.  그런데 Salesforce와의 연동 테스를 위해서 Outlook 설정을 하여 보았습니다.

Outlook 설정
  • Microsoft Outlook를 실행하여 "도구 -> 계정 설정 -> 새로 만들기" 메뉴를 선택 합니다.
  • "Microsoft Exchange, POP3, IMAP 또는 HTTP"을 선택 합니다.

그림:GoogleOutlook001.png

  • "수동으로 서버 설정 또는 추가 서버 유형 구성"을 선택 합니다.

그림:GoogleOutlook002.png

  • "인터넷 전자 메일"을 선택 합니다.

그림:GoogleOutlook003.png

  • 필요한 정보를 입력하고 "기타 설정" 버튼을 선택 합니다.
  • 사용자 이름 : 사용자 이름
  • 전자 메일 주소 : 이메일 주소
  • 계정 유형 : IMAP
  • 받는 메일 서버 : imap.gmail.com
  • 보내는 메일 서버 : smtp.gmail.com
  • 사용자 이름 : 이메일 주소
  • 암호 : 비밀번호
  • 암호 저장 체크

그림:GoogleOutlook004.png

  • "고급" 탭을 선택하여 아래와 같이 설정 합니다.
  • 받는 메일 서버 : 993
  • 암호화된 다음 연결 방식 사용 : SSL
  • 보내는 메일 서버 : 25
  • 암호화된 다음 연결 방식 사용 : TLS

그림:GoogleOutlook005.png

  • "보내는 메일 서버" 탭을 선택하여 아래와 같이 설정 합니다.
  • "보내는 메일 서버 인증 필요" 체크
  • "받는 메일 서버와 동일한 설정 사용" 선택

그림:GoogleOutlook006.png

 

Posted by 산사랑

2012/01/23 12:09 2012/01/23 12:09
, , , , ,
Response
No Trackback , No Comment
RSS :
http://www.jopenbusiness.com/tc/oss/rss/response/370

Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/370

Leave a comment
[로그인][오픈아이디란?]
오늘 오후에 Certified Developer를 취득하기 위해서 경복궁에 갔다 왔습니다.

시험은 역시 예상했던대로 영어 시험 이더군요.
90분간 영어를 해석하다가 보니 나중에는 머리가 멍해져서 해석이 잘 안되더군요.

시간은 20분정도 남았는데, 뭐 할일도 없고 해서 Review하면서 시간을 꽉 채우고 나왔습니다.

"Pass"라는 한글자를 보고 받은 메일에는 아래 이미지가 링크되어 있더군요.


아래는 세일즈포스에서 보낸 축하 메일 입니다.
자랑스럽게 Certified Developer 로고를 보여 주라고 되어 있군요.


Certified Advanced Developer (ADV DEV) 정보 입니다.

  • 합격 기준 : 120분 동안 69문항(다중 선택)을 풀어 73점 이상 받음
  • 비용
  • 시험 비용 : $200 (2회 Release exams 비용 포함), 다시 시험볼 경우 2회까지는 $100
  • Release exam 3회 (1년) : $100
  • Exam Outline
  • Development Lifecycle : 13%
  • Force.com Code (Apex) : 33%
  • Force.com Pages (Visualforce) : 38%
  • Testing and Debugging : 16%



Exam DEV

Apps

  • 종류
  • Standard Apps
  • Marketing, Sales, Call Center, Community, Platform, Salesforce Chatter
  • Custom Apps
  • App Logo : 개인적으로 Logo를 등록하여 사용할 수 있습니다.

Tabs

  • 종류
  • Custom Object Tab : Custom Object로 Tab을 구성
  • Web Tab : URL로 Tab을 구성
  • Visualforce Tab : Visualforce Page로 Tab을 구성
One App Edition Enterprise Edition Unlimited Edition
  • 1 Apps
  • 25 Tabs
  • 10 Objects
  • Account/Contact (Read-Only)
  • 10 Apps
  • 25 Tabs
  • 200 Objects
  • Account/Contact
  • Unlimit Apps
  • Unlimit Tabs
  • 2,000 Objects
  • Account/Contact

Custom Labels

  • Fields : Name, Value, Short Description, Language, Category
  • 5,000 Custom Labels * 1,000 Characters
  • System.Label.Name -> Value
  • {!$Lable.Name} -> Value

Objects

  • Fields
  • Id, Name (Text, Auto Number), Owner, Record Type
  • Allow Reports, Allow Activities, Track Field History
  • Standard Fields
  • ID : 18 digit Case-insensitive, 15 digit Case-sensitive, ID의 첫3자는 Object를 구분함
  • Custom Fields
  • External ID : text, number, email, up to 3 fields
  • Unique, Required, Default Value
  • Field의 종류
  • Auto Number, Formula, Roll-Up Summary
  • Checkbox
  • Picklist, Picklist(Multi-Select), Text (255자), Text (Encrypted, 255자), Text Area(255자)
  • Text Area (Long, 32768자), Text Area (Rish, 32768자)
  • Number, Percent, Currency
  • Date, Date/Time
  • Email, Phone, URL
  • Relationship의 종류
  • Lookup Relationship (One-to-Many Relationship) : Up to 25개
  • Master-Detail Relationship (One-to-Many Relationship) : Up to 2개
  • Standard Object는 Detail이 될 수 없음
  • Detail은 반드시 Master가 있어야 등록이 가능하고, Master 삭제시 Detail도 같이 삭제됨
  • Rollup-Summary : Sum, Max, Min, Count
  • Many-to-Many Relationship : M1 <- Junction Object -> M2
  • Hierarchical Relationship (One-to-Many Relationship)
  • User Object에서만 사용 가능
  • Field Accessibility (Record Type / Page Layout, Visible / Read-Only (Editable) / Required)
  • <- Field-Level Security (Profile, Visible / Read-Only)
  • Formula : Field update, Default Value
Validation Rule Formula Fields Workflow Rule Approval
  • Vlookup()
  • Image()
  • IsChange(), IsNew(), PriorValue()
 
  • Rules
  • Validation Rules -> Assignment Rules -> Auto Response Rules -> Workflow Rules -> Escalation Rules
  • $User, $UserRole, $Profile, $RecordType, $ObjectType, $Organization, $System
  • Button and Links
  • Standard Button and Links : Tab, List, View, Edit, Delete, New, Clone, Accept
  • Custom Button and Links
  • Search Layouts
  • Search Results
  • Lookup Dialogs, Lookup Phone Dialogs
  • Tab
  • List View
  • Search Filter Fields
  • Page Layout
  • Page Builder : Detail Page, Mini Page, Console Page
  • Visualforce Page -> Site
  • 제약 사항
  • Up to 500 custom fields per object
  • Up to 300 controlling fields <- Picklist, Picklist(Multi-Select)
  • Up to 5 level cross-object fields
  • Up to 5 required filter <- Relationship
  • Up to 20 field history tracking fields
  • Recycle Bin : 45일간 보관

Workflow & Approvals

  • Settings : Default Workflow User, Enable Email Approval Response
  • Actions
  • Eask
  • Email Alerts
  • Field Updates
  • Outbound Message
  • Workflow Rules (Object별)
  • Evaluate rule
  • When a record is created, or when is edited and not previously meet the rule criteria
  • Only when a record is created
  • Every time a record is created or edited
  • Rule Criteria
  • Criteria are met : Up to 25 filter criteria, Up to 255 character
  • Formula evaluates to true
  • Workflow Actions
  • Immediate Workflow Actions
  • Email Alert, Field Updates, Outbound Message
  • Time-Dependent Workflow Actions (여러개를 가질 수 있음)
  • Rule Trigger Date
  • Days / Hours, Before / After
  • Approval Process (Object별)
  • Initial Submission Actions : Record Lock
  • Approval Steps
  • approve record, reject record, go to next step
  • Approver : Manually, Earlier selected, Queue, Approver(s) - Up to 25 approvers (User, Queue, Related User)
  • Approve or reject on the FIRST response
  • Require UNANIMOUS approval from all selected approvers
  • Approval Actions, Rejection Actions
  • Final Approval Actions
  • Final Rejection Actions
  • Recall Actions

Email Template

  • Folder, Available For User, Letterhead, Layout, Encoding
  • HTML Version, Text Version
  • 종류 : Text, HTML (with Letterhead), Custom (without Letterhead), Visualforce

Monitoring

  • Outbound Messages
  • Time-Based Workflow
  • Email Logs

Report

  • Standard Report Type
  • Tabular report, Summary report (3 groups), Matrix report (2 * 2 groups)
  • Custom Report Type : Related field up to 4 levels
  • Schedule Report
  • Analytical Snapshot
  • Name, Unique Name, Running User
  • Source Report (Tabular, Summary) -> Target Object
  • Field Mappings
  • Schedule Analytic Snapshot
  • Email Analytic Snapshot, Scheduled Run (Daily, Weekly, Monthly)
  • Report Folder : Public Folder Access (Read-Only, Raed/Write)
  • Schedule Report : Running User, Email Report, Schedule Report
  • Report : Printable View, Export Datail
  • 2000 rows, Excel로는 모두 저장됨

Dashboard

  • Data source
  • Report : Summary, Matrix
  • Visualforce Page
  • Components
  • Up to 20 components
  • Visualforce Page
  • Gauge
  • Horizontal Bar Chart, Vertical Bar Chart, Line Chart
  • Pie Chart, Donut Chart
  • Funnel Chart
  • Dashboard Folder : Public Folder Access (Read-Only, Raed/Write)
  • Schedule Dashboard Refresh
  • Running User, Email Dashboard, Scheduled Refresh

Profile

  • Standard Profile
  • Standard User, Read Only, System Administrator : Salesforce License
  • Marketing User, Contract Manager, System Administrator : Salesforce License
  • Custom Profile
  • Profile
  • Name, Description, User License
  • Apps
  • Assigned Apps : Visible, Default
  • Objects and Tabs
  • Tab Settings : Default On, Default Off, Tab Hidden
  • Record Types : Assigned Record Types, Default Record Type
  • Page Laout Assignment
  • Picklist -> Picklist
  • Object Permissin : Read, Create, Edit, Delete, View All, Modify All
  • Field Permission : Read (Visible), Edit (Read-Only)
  • App Permissions
  • Apex Class Access
  • Visualforce Page Access
  • System
  • System Permissions
  • Desktop Client Access
  • Login Hours
  • Login IP Ranges
  • Tab 추가 -> Recent item, Sidebar Search, Create new object drop down
  • Security
  • Profile
  • Apps : Visible, Default
  • Tabs : Default On, Default Off, Tab Hidden
  • Object : Read, Create, Edit, Delete, View All, Modify All : Object-level Security
  • Field : Read (Visible), Edit (Read-Only) : Field-level Security
  • Record Type
  • Page Layout
  • Picklist -> Picklist (Field Dependencies)
  • Record-level Security
  • Full Access : View, Edit, Transfer Ownership, Delete, Share
  • Record Owner (User, Queue), Role hierachy, Modify All Data
  • Organization Wide Default (OWD)
  • Private, Public Read Only, Public Read/Write
  • Sharing Rules
  • Based on record Owner -> Public Group, Roles, Roles and Subordinates
  • Based on criteria -> Public Group, Roles, Roles and Subordinates
  • Read Only, Read/Write
  • Role-Hierarchy
  • Manual Sharing
  • Record 상단의 "Sharing" 버튼 <- Owner, Role Hierarchy, System Administration
  • Public Group, Roles, Roles and Subordinates, Users
  • Access Level : Full Access (-> Owner), Read, Read/Write
  • Reason : Owner, Manual Sharing (Apex Sharing Reasons, Up to 10개 per Object)
  • Apex Sharing Recalculation : Database.Batchable
  • Permission Sets : User당 여러개 지정 가능
  • System Permissions
  • Reports : Create and Customize Reports, ...
  • Dashboards : Schedule Dashboards, ...
  • Templates : ...
  • Objects : Edit Read Only Fields, Transfer Record, View Encrypted Date, Weekly Data Export
  • Manage List Views
  • Manage User
  • Send Outbound Message
  • Data : Manage Date Category, View Data Category
  • Customize Application, Modify All Data, View All Data, View Setup and Configuration
  • Setup Aduit Trail : 20 display, 6 Month csv

User

  • Fields
  • Role, Profile, User License
  • Development Mode, Show View State in Development Mode
  • Locale, Time Zone, Language, Email Encoding
  • Permissin Set Assignment, Personal Group, Public Group Membership, Queue Membership, Managers in the Role Hierarchy
  • User별 Login History : 10개, 6 Month csv
  • Login History : 20,000개, 6 Month csv/GZIP
  • Public Groups
  • Queues
  • Queue Name, Queue Email, Send Email to Members, Supported Objects
  • Queue Members : Public Group, Roles, Roles and Subordinates, Users
  • 사용처 : Record Owner, Assign Task, Assign Approver

Company Information

  • User License : Salesforce, Salesforce Platform, Chatter Free (5000), Chatter External (500)
  • Feature License
  • Marketing User, Service Cloud User, Offline User, Salesforce CRM Content User
  • System Log
  • Debug Logs
  • Up to 20 Users
  • Level : None, ERROR, WARN, INFO, DEBUG, FINE, FINER, FINEST
  • Category : Database, Workflow, Validation Callouts, Apex Code, Apex Profiling, Visualforce, System

Data Management

  • Import : Up to 50,000 records
  • Import Wizard : Accounts/Contacts, Leads, Solutions, Custom Objects
  • ID, External-ID
  • Data Loader
  • Command-Line : 일정 시간에 자동 실행으로 활용 가능
  • CSV (Comma Separated Values)
  • Extract, Insert, Upsert, Update, Delete

Posted by 산사랑

2011/11/16 22:43 2011/11/16 22:43
, , , , ,
Response
No Trackback , No Comment
RSS :
http://www.jopenbusiness.com/tc/oss/rss/response/365

Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/365

Leave a comment
[로그인][오픈아이디란?]

Force.com: String - 입출력 : Parameter

Force.com으로 웹 페이지를 제작하면 제일 먼저 사용하는 것이 Parameter를 사용한 값의 전달일 것 입니다. Visualforce 페이지에서 어떻게 Parameter을 전달할 수 있는지 알아 봅시다.

  • PageReference를 사용한 Parameter 입출력
  • ApexPages.currentPage().getParameters().get('paraStr')
  • ApexPages.currentPage().getParameters().put('paraStr', '~')
ApexPages.currentPage()는 현재 페이지의 PageReference를 반환 합니다.

  • Visualforce Page에서 Parameter 입출력
  • {!$CurrentPage.parameters.paraStr}


자 이제 직접 URL에서 parameter를 전달하는 방법을 알아 봅시다.

http://~/tmpPage?paraStr=~ 형태를 사용하여 Parameter를 전달하는 것은 익히 알려진 방법 입니다. 그렇지만 Force.com에서 제공하는 개체의 필드값을 Parameter로 전달하려면 아래와 같이 하셔야 합니다.

  • 각 필드의 고유한 ID를 확인 합니다.
  • "설정 -> App설정 -> 작성 -> 개체 -> [개체 선택] -> [필드 선택]"을 하면 아래와 같은 URL이 표시 됩니다.
  • 이때 00NA0000008Gc9u 이 이 필드의 고유한 ID 입니다.

  • URL에서 각 Input 필드별로 다음 값을 전달하면 데이터가 입력되어 있는 화면이 표시 됩니다.
  • 일반 필드
  • 필드_아이디=값
  • 검색 관계 필드 또는 마스터-세부 사항 관계 필드
  • 필드_아이디=화면에_표시될_이름
  • 필드_아이디_lkid=값(검색 관계에 있는 개체의 아이디)
  • 예) /a0B/e?CF00NA0000005JzZX={!ObjectMaster__c.Name}&CF00NA0000005JzZX_lkid={!ObjectMaster__c.Id}


Posted by 산사랑

2011/07/27 19:34 2011/07/27 19:34
, , , , , , ,
Response
No Trackback , No Comment
RSS :
http://www.jopenbusiness.com/tc/oss/rss/response/353

Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/353

Leave a comment
[로그인][오픈아이디란?]

Force.com: Visualforce Page Lifecycle

Salesforce의 Force.com을 사용하면 화면 구성을 위해 Visualforce page를 많이 사용 합니다. 아래 그림은 Visualforce Page의 Licycle 입니다.

Posted by 산사랑

2011/07/26 19:12 2011/07/26 19:12
, , , , , ,
Response
No Trackback , No Comment
RSS :
http://www.jopenbusiness.com/tc/oss/rss/response/352

Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/352

Leave a comment
[로그인][오픈아이디란?]

Force.com : String 선언

Force.com에서 가장 많이 사용하는 자료형을 보면 String과 sObject일 것입니다. 두개의 자료형에 대한 사용법을 명확히 숙지하게 된다면 Force.com의 중급 이상이라 볼 수 있습니다.

이제부터 그 중에서 String에 대해서 알아 봅시다. 이번 시간에는 String의 정의에 대해서 알아 봅시다.


String은 문자열을 저장하는 자료형 입니다.


 *** String의 정의 ***
 String item = new String();
 String item = '~';


 *** String 배열의 정의 ***
 String[] data = new String[7];
 String[] data = new String[3] {'~', '~', '~'};
 String[] data = new List<String>();
 String[] data = new List<String>(anotherList_객체);

 참고로 data와 같은 배열은 index가 0부터 시작 합니다.
 data[0], data[1], data[3], ...


String 선언은 아주 간단하죠 !!!

오픈소스 비즈니스 컨설팅


Posted by 산사랑

2011/07/25 19:55 2011/07/25 19:55
, , , , , , , , ,
Response
No Trackback , No Comment
RSS :
http://www.jopenbusiness.com/tc/oss/rss/response/351

Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/351

Leave a comment
[로그인][오픈아이디란?]

[Force.com] License Management App (LMA)

  • 제약 사항: Salesforce Enterprise Edition에서만 설치가 가능 합니다.
  • "License Management App" 애플리케이션
Licenses
  • 패키지별로 고객의 라이선스를 관리 합니다.
  • 레코드 유형 : Active, Expired, Suspended, Trial, Uninstalled

Packages
  • 패키지의 정보를 관리 합니다.

Package Versions
  • 패키지의 버전 정보를 관리 합니다.

Subscriber Support
  • 패키지를 설치한 고객의 원격 지원 요청이 있을 경우에 여기서 고객의 목록을 보고 고객의 Org로 로그인하여 지원할 수 있습니다.
  • 지원 절차
  1. 고객에게 요청하여 관리자로 로그인 합니다.
  2. "설정 -> 관리 설정 -> 보안 관리 -> 패키지 지원 액세스"에서 최대 30일까지 지원 액세스 권한을 부여 합니다.
  3. 패키지의 지원 담당자가 이 메뉴로 접속을 하여 "팩키지 지원 액세스"를 요청한 고객의 목록을 보고 여기서 바로 로그인하여 지원이 가능 합니다.

Posted by 산사랑

2011/06/29 18:02 2011/06/29 18:02
, , , , ,
Response
No Trackback , No Comment
RSS :
http://www.jopenbusiness.com/tc/oss/rss/response/348

Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/348

Leave a comment
[로그인][오픈아이디란?]

클라우드 (Cloud) 개요

클라우드 (Cloud, 구름)는 인터넷 기반이라는 의미이며, 숨겨진 복잡한 인프라 구조를 의미 합니다. 이것은 IT 관련된 기능들이 서비스 형태로 제공되어 지는 것이며, 사용자들은 인프라스트럭처에 대한 전문 지식이 없어도 또는 제어할 줄 몰라도 인터넷상에서 서비스를 이용할 수 있습니다.
  • 인터넷 기술을 활용하여 다수의 고객에게 높은 수준의 확장성을 가진 IT 자원들을 서비스로 제공하는 컴퓨터 by 가트너
  • 필요한 IT 자원을 원하는 시점에 필요로 하는 만큼 사용하며 사용량에 기반을 두어 대가를 지불
  • Public Cloud, Hybrid Cloud, Private Cloud 모델로 구분 / IaaS, SaaS, PaaS 등의 서비스 제공

클라우드는 다음과 같은 특성을 가지고 있어야 합니다. 국내 클라우드 환경을 보면 아직 측정 가능한 서비스(Measured Service)까지는 구현하지 못하고 있네요.
  • 온디멘드 베이스의 셀프서비스(On-demand Self-service)
  • 광역 네트워크 액세스(Broad Network Access)
  • 로케이션에 의존하지 않는 자원 풀(Resource Pooling)
  • 신속한 확장성(Rapid elasticity)
  • 측정 가능한 서비스(Measured Service)

Cloud의 Deployment Models을 보면 다음과 같습니다.
  • Public Cloud     : 아마존 또는 구글과 같이 일반 대중에게 공개된 Cloud
  • Private Cloud    : 한 기업내에 구축한 사설 클라우드
    • Internal Cloud    : 기업의 자원을 활용하여 자체 구축
    • External Cloud   : Public Cloud의 자원을 활용하여 구축 (VPN 등 적용)
  • Hybrid Cloud : Private Cloud + Public Cloud

대표적인 Cloud 서비스 제공 업체 또는 서비스는 다음과 같습니다.

위 여러가지 Cloud 서비스중에서 개인적으로 가장 관심을 가지고 있는 것은
Google App Engine(GAE)과 KT uCloud 입니다.

Android에서 동작하는 앱을 위한 Mobile Cloud 환경을 위해서 GAE를 사용해 보았는데 아주 마음에 들었습니다. 그리고 SKT의 T Cloud Biz를 사용해 보았는데 확장성 등에서 제약 사항이 있어서 국내 Cloud 서비스를 살펴 보니 KT의 uCloud가 아주 훌륭하게 구축되어 있었습니다.


참고로
한국과학기술정보연구원(KISTI)의 국내 클라우드 시장 전망은 다음과 같습니다.
  • 2010년 9610억 원
  • 2011년 1조 3040억 원
  • 2012년 1조 6250억 원
  • 2013년 1조 9525억 원
  • 2014년 2조 5480억 원

그리고 2011년 국내 Cloud 투자 계획은 다음과 같습니다.
  • 2011년 KT : 2,000억원 (386억 매출 -> 2015년 매출 7,000억)
  • 2011년 SKT : 300억원
  • 2011년 LG U+ (300억 매출)
  • 2011년 LG CNS : 800억원 (500억 매출)

아래 그림은 KT uCloud의 서비스 개요인데, 조만간 PaaS 서비스를 출시할 예정이라 기대하고 있습니다.
 
 
오픈소스 비즈니스 컨설팅
 
 

Posted by 산사랑

2011/06/20 19:20 2011/06/20 19:20

Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/344

Leave a comment
[로그인][오픈아이디란?]

Apex Code Test 프로그램 작성 방식 제안

Apex Code로 프로그램을 작성하면 이를 배포하기 위해서는 전체 코딩된 라인중 75% 이상이 테스트 되어야 합니다. (Code Coverage Result가 75% 이상) Force.com에서 제시하는 테스트 방식을 살펴보면 해당 코드가 한번 이상 수행이 되면 테스트가 된 것으로 처리를 하고 있습니다. 따라서 Code Coverage Result를 높이기만을 원한다면 다양한 테스트 코드를 작성할 필요는 없고 각각의 라인이 한번 이상 실행이 되도록 테스트 코드를 작성하면 됩니다.

  • Code Coverage Result를 높이는 방법
  1. 분기문, 제어문 등에서 각각의 코드 블럭이 실행될 수 있도록 데이터를 구성 합니다. (추천)
  2. 테스트가 완료된 코드 블럭에 의미없는 코드를 추가하여 라인수를 늘입니다. (비추천)


아래 코드는 Test 클래스에 대한 작성 방식 제안 입니다.
ClassName이라는 클래스를 테스트할 때, ClassNameTest라는 별도의 클래스를 만들어서 테스트를 하는 것을 권장 합니다.

@IsTest
private class ClassNameTest {
   private static testmethod void testMain() {
       //--- Test를 위한 변수 선언
       ClassName test = null;
       
       //--- Test를 위한 사용자 설정 (필요한 경우만)
       User user = [select id from User where alias='auser'];
       System.RunAs(u1) {
           //--- Test를 위한 데이터 설정
           manage = new Manage();
   
           //--- Test 코드 작성
           test = new ClassName();
           test.setManage(manage);
           
           System.assert(actual == expected, 'Character.isAscii returned ');
           System.assertEquals(singletotalMiles,  totalMiles);
       }
   }
}


테스트 코드를 작성할 때, 정상적으로 수행이 되었는지 확인하기 위해서 System.assert 등의 함수를 사용할 수 있습니다. Code Coverage Result에 반영이 되지는 않지만 프로그램의 완성도를 위해서 필요한 부분은 System.assert 등을 사용하여 테스트 코드를 작성 하세요.

  • System.assert
  • System.assert(boolean) : boolean 값이 true이면 OK
  • System.assert(boolean, e.getMessage()) : boolean 값이 true이면 OK, boolean 값이 false이면 두번째 인자를 메시지로 표시
  • System.assertEquals(dataA, dataB [, msg]) : dataA와 dataB의 값이 동일하면 OK
  • System.assertNotEquals(dataA, dataB [, msg]) :  : dataA와 dataB의 값이 다르면 OK

오픈소스 비즈니스 컨설팅


Posted by 산사랑

2011/06/20 12:24 2011/06/20 12:24
, , , , , , , ,
Response
No Trackback , No Comment
RSS :
http://www.jopenbusiness.com/tc/oss/rss/response/343

Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/343

Leave a comment
[로그인][오픈아이디란?]
Force.com은 동적으로 페이지를 구성하는 방법을 크게 3가지를 제공 합니다.
  1. Visualforce Page에서 Rerender 사용 (권장)
  2. RemoteAction을 사용 (추천)
  3. AJAX에서 Visualforce Page를 호출 (비 추천)
이중 RemoteAction은 21.0 버전에서는 베타여서 사용하기가 부담스러웠는데
22.0으로 버전이 올라가면서 베타 딱지를 때었습니다.

RemoteAction을 사용하여 좀 더 동적인 페이지를 구성해 보세요.

Apex Code
global  class  MyJSController  {
  public  String  accountName  {  get;  set;  }
  public  static  Account  account  {  get;  set;  }
  public  MyJSController()  {  }
 
  @RemoteAction
  global  static  Account  getAccount(String  accountName)  {
    account  =  [SELECT  id,  name,  phone,  type,  numberofemployees
                   FROM  Account  
                  WHERE  name  =  :accountName  ];
    return  account;
  }
}

Visualforce Page
<apex:page controller="MyJSController">
    <script  type="text/javascript">
    var accountNameJS = null;
    accountNameJS = "오픈소스 비즈니스 컨설팅";
    MyJSController.getAccount(
        accountNameJS,    //--- getAccount에 전달되는 인자, 여러개일 경우 ","로 구분
        function(result, event) {     //--- result : 반환된 결과 값
            if  (event.status)  {
                //--- 정상 처리
                //--- 반환된 값은 result.name 또는 result[2].name 형태로 사용
            }  else  if  (event.type  ===  'exception')  {
                //--- Exception 오류 처리
            }  else  {
                //--- 오류 처리
            }
        },  
        {escape:true}
    );
    </script>
</apex:page>
 

오픈소스 비즈니스 컨설팅


Posted by 산사랑

2011/06/17 12:33 2011/06/17 12:33
, , , , , , ,
Response
No Trackback , No Comment
RSS :
http://www.jopenbusiness.com/tc/oss/rss/response/342

Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/342

Leave a comment
[로그인][오픈아이디란?]
아마존 웹 서비스(Amazon Web Services, AWS)에 대한 세미나가 2011년 6월 27일에 코엑스에서 열립니다.

Cloud의 대표주자인 AWS에 대해 관심이 있다면 이번 세미나에 참가해 보세요.

 
사용자 삽입 이미지
 

오픈소스 비즈니스 컨설팅


Posted by 산사랑

2011/06/17 09:47 2011/06/17 09:47
, , , , , ,
Response
No Trackback , No Comment
RSS :
http://www.jopenbusiness.com/tc/oss/rss/response/340

Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/340

Leave a comment
[로그인][오픈아이디란?]

블로그 이미지

개인적인 글쓰기와 오픈소스 비즈니스 컨설팅 관련 글을 정리합니다. consult (골뱅이) jopenbusiness.com

- 산사랑

Archives

12명이 RSS를 구독하고 있습니다.

Site Stats

Total hits:
518167
Today:
161
Yesterday:
395

*** 방문자 통계 ***
0517 : (177)
0518 : (194)
0519 : (179)
0520 : (220)
0521 : (275)
0522 : (337)
0523 : (395)
0524 : (161)
7일간 총 방문자수 : 1777