• Title/Summary/Keyword: Test Case Auto Generation

Search Result 4, Processing Time 0.019 seconds

Generating Test Cases and Scripts from Requirements in Controlled Language (구조화된 자연어 요구사항으로부터 테스트 케이스 및 스크립트 생성)

  • Han, Hye Jin;Chung, Kihyun;Choi, Kyunghee
    • KIPS Transactions on Software and Data Engineering
    • /
    • v.8 no.8
    • /
    • pp.331-342
    • /
    • 2019
  • This paper proposes a method to generate test cases and test scripts from software requirements written in a controlled natural language, which helps develop reliable embedded software. In the proposed method, natural language requirements are written in a controlled language, the requirements are parsed and then inputs, outputs and operator data are extracted from the requirements. Test cases are generated from the extracted data following test case generation strategies such as decision coverage, condition coverage or modified condition/decision coverage. And then the test scripts, physical inputs of the test cases are generated with help of the test command dictionary. With the proposed method, it becomes possible to directly check whether software properly satisfies the requirements. Effectiveness of the proposed method is verified empirically with an requirement set.

Evaluation of soil spatial variability by micro-structure simulation

  • Fei, Suozhu;Tan, Xiaohui;Wang, Xue;Du, Linfeng;Sun, Zhihao
    • Geomechanics and Engineering
    • /
    • v.17 no.6
    • /
    • pp.565-572
    • /
    • 2019
  • Spatial variability is an inherent characteristic of soil, and auto-correlation length (ACL) is a very important parameter in the reliability or probabilistic analyses of geotechnical engineering that consider the spatial variability of soils. Current methods for estimating the ACL need a large amount of laboratory or in-situ experiments, which is a great obstacle to the application of random field theory to geotechnical reliability analysis and design. To estimate the ACL reasonably and efficiently, we propose a micro-structure based numerical simulation method. The quartet structure generation set algorithm is used to generate stochastic numerical micro-structure of soils, and scanning electron microscope test of soil samples combined with digital image processing technique is adopted to obtain parameters needed in the QSGS algorithm. Then, 2-point correlation function is adopted to calculate the ACL based on the generated numerical micro-structure of soils. Results of a case study shows that the ACL can be estimated efficiently using the proposed method. Sensitivity analysis demonstrates that the ACL will become stable with the increase of mesh density and model size. A model size of $300{\times}300$ with a grid size of $1{\times}1$ is suitable for the calculation of the ACL of clayey soils.

Automated Code Generation Framework for Industrial Automation Applications based on Timed Automata Model (타임드 오토마타 모델 기반 산업 자동화 응용 자동생성 프레임워크)

  • Lee, Kyunghyun;Kim, Ikhwan;Kim, Taehyoun
    • Journal of KIISE
    • /
    • v.44 no.12
    • /
    • pp.1307-1312
    • /
    • 2017
  • Due to their convergence with state-of-the-art ICT technologies, the complexity and reliability demands of industrial automation systems have been rapidly increasing. In recent years, to cope with these demands, several research works have been carried out to adopt formal methods to the application development cycle at the early design stage. In this paper, we propose an automated code generation framework for industrial automation applications, based on a timed automata model. As a case study, we developed a formal model for a traffic light control system and verified the timing properties described in the specification. We finally demonstrated that the operation of a test-bed based on the auto-generated native code was identical to that of the model specification.

Torque Prediction of Ball Bearings Considering Cages using Computational Fluid Dynamics (전산유체역학을 이용한 케이지가 고려된 볼 베어링의 토크 예측)

  • Jungsoo Park;Jeongsik Kim;Seungpyo Lee
    • Tribology and Lubricants
    • /
    • v.40 no.1
    • /
    • pp.1-7
    • /
    • 2024
  • Ball bearings are a major component of mechanical parts for transmitting rotation. Compared to tapered roller bearings, ball bearings offer less rolling resistance, which leads to reduced heat generation during operation. Because of these characteristics, ball bearings are widely used in electric vehicles and machine tools. The design of ball bearing cages has recently emerged as a major issue in ball bearing design. Cage design requires pre-verification of performance using theoretical or experimental formula or computational fluid dynamics (CFD). However, CFD analysis is time-consuming, making it difficult to apply in case studies for design decisions and is mainly used in performance prediction following design confirmation. To use CFD in the early stages of design, main-taining analytical accuracy while reducing the time required for analysis are necessary. Accordingly, this study proposes a laminar steady-state segment CFD technique to solve the problem of long CFD analytical times and to enable the use of CFD analysis in the early stages of design. To verify the reliability of the CFD analysis, a bearing drag torque test is performed, and the results are compared with the analytical results. The proposed laminar steady-state segment CFD technique is expected to be useful for case studies in bearing design, including cage design.