see through...

<%@ page language="java" contentType="text/plain; charset=utf-8"%>
<%@ page import="java.io.*,java.net.*"%>
<%
    String filename = java.net.URLEncoder.encode("aaaa", "utf-8") + ".txt";

    response.setHeader("Pragma","no-cache");
    response.setHeader("Content-Disposition","attachment; filename="+filename);

    URL url = new URL("http://skykim.tistory.com/3");
    URLConnection conn = url.openConnection();

    InputStream in = conn.getInputStream();
    BufferedReader br = new BufferedReader(new InputStreamReader(in, "utf-8"));  //저장될 encoding
    StringBuffer fileContents   = new StringBuffer();
    String line = "";

    while((line=br.readLine())!=null) {
        //pw.println(line); // 파일에 저장
        fileContents.append(line);
        //System.out.println(line); // 화면 출력
    }

    out.clear();
    out.print(fileContents);
%>

Posted by 가자가자~ 감나무!
소프트웨어 개발/Java pure l 2008. 8. 29. 18:05
"Tesing도 ISO 표준이 정립되어 있다.  대충의 체계는 이렇다" 정도의 개론 수준의 세미나였다.  개론 수준의 세미나를 하더라도 뭔가 감동을 줄만한 것을 기대하는 것은 무리일까?
테스팅에 관해서도 CMMI 와 동일한 취지로 TMMi 라는게 있다고 한다.
표준과 측정 지표가 있다는 건 의미있는 일이다. 
테스팅에 대한 표준과 지표는 권고사항과 올바른 방향성에 대한 지침으로 생각되었으면 좋겠는데, 많이들 근본적인 취지보다는 형식적인 감사를 통해 인증을 받는데 주력하는 현실이 답답스럽다.  그리고, 무슨 공학, 무슨 기술이 뜬다고 하면, 핵심과 근본 취지도 파악하지 못하고, 밥벌이 하는데만 열을 올리는 문화는 근절되었으면 좋겠다.
바쁜(?) 나에겐 Practical 한게 중요하므로 간단한 요약서와 IEEE829 Template이나 조금 보도록 해야겠다.
일단 간단한 용어만 찾아보았다.

Input(activity) Output(deliverable) Description
test analysis test conditions
test design test cases
test implementation test procedures 테스트를 수행


6. Test case Specification

6.1 Purpose
To define a test case identified by a test design specification.

6.2 Outline
A test case specification shall have the following structure:
  a) Test case specification identifier;
  b) Test items;
  c) Input specifications;
  d) Output specifications;
  e) Environmental needs;
  f) Special procedural requirements;
  g) Intercase dependencies.

...

7. Test procedure specification

71. Purpose
To specify the steps for executing a set of test cases or, more generally, the steps used to analyze a software item in order to evaluate a set of features.

7.2 Outline
A test procedure specification shall have the following structure:
  a) Test procedure specification identifier
  b) Purpose;
  c) Special requirements;
  d) Procedure steps.

아 근데 표그리기 툴은 없나?  정리하기 넘 힘들다 ㅡ_ㅡ;;
Posted by 가자가자~ 감나무!
소프트웨어 개발/TDD l 2008. 8. 29. 17:56


1. 원인 및 현상
Weblogic에서 response.setContentLength로 헤더정보에 셋팅한 것과 실제 렌더링되는 바이트수가 다를 경우 에러가 발생함.  Tomcat은 이에 대해 Exception Catch를 하지 않음.

2. 알려진 해법
response.setContentLength 부분을 삭제해도 특별히 문제점 발견은 못함.
정상적인 해법은
byte b[] = new byte[4096]
byte b[] = new byte[streamBytes];  <---  Content Length로 명시한 값과 일치하도록


3. Sitemesh 에서의 해당 부분
com.opensymphony.module.sitemesh.filter.PageFilter 클래스의
private void writeOriginal(HttpServletRequest request, HttpServletResponse response, Page page) 메소드에서
//response.setContentLength(page.getContentLength());   //<--  이 부분을 주석처리
Posted by 가자가자~ 감나무!
소프트웨어 개발/Sitemesh l 2008. 8. 29. 13:45
1 2 3 

최근에 올라온 글

카테고리

분류 전체보기 (7)
잡담 (0)
소프트웨어 예술 (0)
소프트웨어 개발 (6)
웹기술 (0)
OS & 유틸리티 (1)
사무환경 (0)
취미 (0)
Private (0)
PC(하드웨어) (0)

달력

«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
tistory!get rss Tistory Tistory 가입하기!

공지 사항

최근에 달린 댓글