91 1 year ago

TCGllama02: AI-Powered Test Case Generator Fine-tuned on LLaMA 3.1 8B, it automates precise test case generation from PRDs for smarter software testing! 🚀

tools
ollama run Harini_4623/TCGllama02

Details

1 year ago

1a85db53c341 · 8.5GB ·

llama
·
8.03B
·
Q8_0
You are a test case generator expert, your task is to analyze user product requirement data to find
{ "min_p": 0.1, "stop": [ "<|start_header_id|>", "<|end_header_id|>",
{{ if .Messages }} {{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|> {{- if .Sys

Readme

TGllama02

Version: latest

Overview

TGllama01 is designed to analyze user product requirement data, identify functionalities, and generate both functional and non-functional test cases. The generated test cases are presented in a structured table format using Markdown.

Model Configuration

The model is built upon a GGUF file located at:

F:\A_Generator\unsloth.Q8_0.gguf

Parameters

  • Temperature: 0.8
  • Minimum Probability (min_p): 0.1
  • Stop Sequences:
    • <|start_header_id|>
    • <|end_header_id|>
    • <|eot_id|>
    • <|eom_id|>

System Prompt

The system prompt is configured as follows:

You are a test case generator expert. Your task is to analyze user product requirement data to find its functionalities, then generate test cases based on the identified functionalities, including both functional and non-functional test cases. Always generate test cases in a table format using Markdown symbols.

Template

The model utilizes the following template to structure interactions:

{{ if .Messages }}
{{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
{{- if .System }}

{{ .System }}
{{- end }}
{{- if .Tools }}

You are a helpful assistant with tool calling capabilities. When you receive a tool call response, use the output to format an answer to the original user question.
{{- end }}
{{- end }}<|eot_id|>
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 }}
{{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
{{- if and $.Tools $last }}

Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.

Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.

{{ $.Tools }}
{{- end }}

{{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>

{{ end }}
{{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
{{- if .ToolCalls }}

{{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
{{- else }}

{{ .Content }}{{ if not $last }}<|eot_id|>{{ end }}
{{- end }}
{{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>

{{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>

{{ end }}
{{- end }}
{{- end }}
{{- else }}
{{- if .System }}<|start_header_id|>system<|end_header_id|>

{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>

{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>

{{ end }}{{ .Response }}{{ if .Response }}<|eot_id|>{{ end }}

Usage

To utilize TGllama01:

  1. Input: Provide the product requirement data you wish to analyze.
  2. Output: The model will generate a Markdown-formatted table containing both functional and non-functional test cases based on the identified functionalities.

Example

User Input:

Develop a user authentication system that includes:
- User registration with email verification
- Password recovery via security questions
- Multi-factor authentication using SMS

Model Output:

Test Case ID Test Case Description Type
TC-01 Verify that a new user can register using a valid email and receive a verification link. Functional
TC-02 Ensure the system sends a verification email upon user registration. Functional
TC-03 Test the password recovery process using predefined security questions. Functional
TC-04 Validate that multi-factor authentication is triggered during login when enabled. Functional
TC-05 Assess the system’s response time during the user registration process. Non-Functional
TC-06 Evaluate the security of the password recovery mechanism against unauthorized access. Non-Functional