Skip to content

Instantly share code, notes, and snippets.

@cenionut
Last active June 27, 2025 14:21
Show Gist options
  • Save cenionut/2cc7ea295c0975dfc7f26873b12d851f to your computer and use it in GitHub Desktop.
Save cenionut/2cc7ea295c0975dfc7f26873b12d851f to your computer and use it in GitHub Desktop.
prompts
- For planning everyone is recommended to use o1-mini and for code generation → claude sonnet.
- What we tell the composer is usually in 1 of 3 categories
- Most abstract → “Build this feature. It should support these requirements.”
- High-level instructions → “I’m building <x> feature. Help me by adding a, b, c files matching the existing structure in some other files.”
- Most concrete → “Update <x> throughout <y> file”
How to Fart Around with AI Effectively
- Provide as much context to the AI as possible. Upload relevant documents—compan- mission, vision, OKRs, research. The more background AI has, the better its output- Use “projects” in Chaptgpt/Claude to save critical context.
- Give AI a role. Tell it what kind of expert it is—a senior copywriter, a Saa- marketing strategist, a data scientist. This improves relevance.
- Outline before generating. Have AI create an outline first, then refine it before i- writes. Try it both ways—you’ll see the difference.
- Ask AI to critique itself. It’s surprisingly good at pointing out flaws in its ow- responses.
- Tweak the tone. If AI’s output sounds too annoyingly perky or boringly generic, tel- it to adjust. I often use “informal yet professional” as a tone guide.
- Close-read everything. AI-generated text looks polished but can fall apart unde- scrutiny.
- Ask for citations—and verify them. AI is improving at sourcing, but stil- hallucinates. This is happening less often than in the early days, but it stil- happens. Always check citations.
https://eleganthack.com/how-to-use-genai-with-okrs-without-letting-it-think-for-you/
Set up a project in your favored GenAI tool focused on your company. Upload key context:
Your mission statement
Your vision for the future
Your current strategic priorities
General company information: how big you are, what industry you are in, current initiatives etc.
If you have them, potential big bets and major initiatives
1) “You are Christina Wodtke, and I’ve hired you to help me write my OKRs for next quarter. Ask me questions, one at a time, to understand what the right OKR set would be.”
2) “Using the format for OKRs in Radical Focus by Christina Wodtke, create 5 very different OKR sets for the next quarter. Make sure the KRs are results, not tasks.”
3) “Those KRs look like tasks. Generate 10 ways I could measure success at [my objective] and make sure they are outcomes”
Use these 8 ChatGPT-4o prompts to level-up your writing:
Write a feedback entry in the style of the existing feedbacks. Use a professional, constructive, and supportive tone. Structure the feedback with clear sections such as "Business Value" (covering technical knowledge, delivery, stakeholder interaction, business knowledge, and company processes), "Company Culture" (integrity, progress, interaction with others, company ambassador), and "Proactivity" if relevant. Use bullet points to highlight specific examples of contributions, strengths, and areas for improvement. Be specific, objective, and provide actionable suggestions where appropriate. Aim for a balanced and encouraging message that recognizes achievements and encourages growth.
Write a self-evaluation in the style of the existing tech evaluation report. Use a professional, constructive, and supportive tone. Structure the self-assessment with clear sections the same as they appear in the report.
Use bullet points to highlight specific examples of contributions, strengths, and areas for improvement. Take Ionut Apostol - JA 2024.txt as an example.
Be specific, objective, and provide actionable suggestions where appropriate. Aim for a balanced and encouraging message that recognizes achievements and encourages growth.
1. Learn your Writing
Prompt: Create a prompt to write a new paragraph that matches the same voice, style, and tone of this text: [Insert a piece of your writing]
2. Plagiarism checker
Prompt: I’ll write sentences for you, and I want you to check them for plagiarism. You only reply “plagiarized” or “ not plagiarized” depending on whether the sentence is or is not plagiarized. Don’t write explanations.
3. Variations of text
Prompt: Make 5 variations of this sentence. Keep the same tone of voice and format as the original:
4. Research
Prompt: Provide statistics of [Insert desired statistic] with references to the statistics source or sources
5. Fast learning
Prompt: I want to quickly learn about [Insert topic]. Provide me with the most important information regarding this topic. Summarize all of it into [Insert amount of time] or less of reading.
6. Test your knowledge
Prompt: I want you to ask me 20 questions one by one about [Insert topic] to test how knowledgeable I am on this subject. I will answer, then tell me if my answer is correct or incorrect.
7. Summarize text
Prompt: I want you to summarize this article and take out the key points.
Insert these key points into a bullet-point list with a paragraph of the description of each bullet-point below each point:
8. Create blog
I am writing a blog about [Insert detailed topic] titled: [“Insert title”]. Create a [insert number of words] word blog post including these headings: [“Insert headings”] and these subheadings: [“Insert subheadings and the corresponding heading to each”].
8 ChatGPT-4o prompts that will turn you into a Superhuman.
1. Cracking the Code
Prompt: Create HTML and CSS code for the webpage design I've sketched.
2. Unlock Code Potential
Prompt: Review this code and recommend improvements for performance, efficiency, clarity, and best practices.
3. Plagiarism checker
Prompt: I’ll write sentences for you, and I want you to check them for plagiarism. You only reply “plagiarized” or “ not plagiarized” depending on whether the sentence is or is not plagiarized. Don’t write explanations.
4. Generate Excel functions:
Create custom Excel functions for seamless data analysis.
Prompt: I need to perform a specific calculation on my data set in Excel, but I'm not sure how to write the formula.
5. Memorize key information
Prompt: What are the most important facts, dates, or formulas related to (topic)? Help me create a memorization technique to remember them easily.
6. Let ChatGPT generate its prompts (baby AGI)
Prompt: You are GPT-4, OpenAI’s advanced language model. Today, your job is to generate prompts for GPT-4. Can you generate the best prompts on ways to [what you want]
7. Make ChatGPT a Python interpreter
Prompt: I want you to act like a Python interpreter.I will give you Python code, and you will execute it. Do not provide any explanations. Do not respond with anything except the output of the code. The first code is: “print(‘hello world!’)”
8. Spot Career Pitfalls Using AI
Prompt: What are the common mistakes a person makes on the path to becoming [dream career]? Give step-by-step instructions on how to avoid those mistakes, a detailed career path with duration.
Problem-solving
1. SWOT Analysis:
Prompt → "I am trying to evaluate a project but don't know how to assess its strengths, weaknesses, opportunities, and threats. Can you explain how SWOT Analysis can help me?"
2. The Eisenhower Matrix:
Prompt → "I'm struggling to manage my time effectively. Can you explain how the Eisenhower Matrix can help me prioritize tasks?"
3. Design Thinking:
Prompt →"I need to develop a new product but don't know where to start. Can you explain how Design Thinking can guide my creative process?"
4. Fishbone Diagram:
Prompt → "I'm facing a persistent problem and need to identify all possible causes. Can you explain how the Fishbone Diagram can help me?"
5. Scenario Planning:
Prompt → "I need to prepare for future uncertainties in my business. Can you explain how Scenario Planning can assist in strategizing for different future scenarios?"
6. The Ansoff Matrix:
Prompt → "I'm considering different growth strategies for my business. Can you explain how the Ansoff Matrix can help me evaluate my options?"
7. The Kepner-Tregoe Matrix:
Prompt → "I need a systematic approach to decision-making. Can you explain how the Kepner-Tregoe Matrix works?"
8. The GROW Model:
Prompt → "I am a coach trying to help my client set goals and achieve them. Can you explain how the GROW Model can guide my coaching sessions?"
9. Mind Mapping:
Prompt → "I need to organize my thoughts and ideas for a project. Can you explain how Mind Mapping can help me brainstorm effectively?"
10. The BCG Matrix:
Prompt → "I need to analyze my company's product portfolio. Can you explain how the BCG Matrix can help me in this analysis?"
11. Balanced Scorecard:
Prompt → "I want to better align my business activities to the vision and strategy of my organization. Can you explain how the Balanced Scorecard works?"
12. Porter's Five Forces:
Prompt → "I am analyzing the competitive environment of my industry. Can you explain how Porter's Five Forces framework can assist me?"
13. The Double Diamond Design Process:
Prompt → "I'm working on a design project and need a structured process. Can you explain how the Double Diamond Design Process works?"
14. The Kanban Method:
Prompt → "I am trying to improve workflow and efficiency in my team. Can you explain how the Kanban Method can help?"
15. The Theory of Constraints:
Prompt → "I'm trying to identify and manage bottlenecks in my production process. Can you explain how the Theory of Constraints can assist me?"
16. The Monte Carlo Simulation:
Prompt → "I need to understand the impact of risk and uncertainty in my project. Can you explain how the Monte Carlo Simulation can help?"
17. The Delphi Method:
Prompt → "I am conducting a complex forecasting exercise. Can you explain how the Delphi Method works for gathering expert opinions?"
18. Force Field Analysis:
Prompt → "I need to analyze the forces for and against a change initiative. Can you explain how Force Field Analysis can help me?"
19. The Blue Ocean Strategy:
Prompt → "I am looking for a new market space to avoid competition. Can you explain how the Blue Ocean Strategy works?"
20. The Critical Path Method:
Prompt → "I am managing a large project and need to optimize the schedule. Can you explain how the Critical Path Method can help me plan effectively?"
25 ChatGPT Prompts to Elevate Your Career Game.
1. In-depth Topic Analysis
Prompt: "Break down the core principles of (specific topic e.g., blockchain technology, organizational psychology, sustainable energy), detailing its history, real-world applications, major challenges, and future prospects."
2. Industry Trend Evaluation
Prompt: "Provide an overview of current trends in the (specific industry e.g., fintech, e-commerce, healthcare). Discuss potential disruptors, challenges, and opportunities for businesses operating in this sector."
3. Effective Communication Strategy
Prompt: "Design a communication strategy for (specific context e.g., team collaborations, client interactions, public speaking). Include best practices, tools, potential pitfalls, and methods to assess effectiveness."
4. Project Management Plan
Prompt: "Develop a structured plan for managing a (specific project e.g., software release, event planning, product launch). Detail required resources, timelines, risk management strategies, and performance metrics."
5. Skill Development Roadmap
Prompt: "Design a comprehensive learning path for mastering (specific skill e.g., digital marketing, data analysis, leadership). Include recommended resources, benchmarks, potential challenges, and strategies for consistent improvement."
6. Product Development Framework
Prompt: "Detail the steps and considerations for developing a new (specific product/service e.g., mobile app, online course, retail product). Include research methodologies, prototyping, user testing, and market positioning."
7. Market Research Guide
Prompt: "Outline a method for conducting market research for (specific market or industry). Discuss data collection techniques, target demographics, key metrics, and strategies to interpret findings."
8. Business Networking Strategy
Prompt: "Formulate a strategy for expanding my professional network within the (specific field/industry). Highlight best practices, potential platforms, etiquette, and methods to cultivate meaningful relationships."
9. Organizational Culture Enhancement
Prompt: "Propose initiatives and practices to foster a positive and inclusive organizational culture in a (specific type of company/industry). Consider elements like work-life balance, diversity, employee recognition, and team collaboration."
10. Financial Management Blueprint
Prompt: "Design a financial management plan for (specific scenario e.g., startup budgeting, personal savings, investment portfolio). Include budget allocation, risk assessment, growth opportunities, and monitoring tools."
11. Data-Driven Decision Making
Prompt: "Demonstrate how to leverage data analytics in decision-making for (specific business function e.g., sales forecasting, customer retention). Discuss tools, methodologies, and strategies to ensure data accuracy and relevance."
12. Customer Experience Optimization
Prompt: "Craft a strategy for enhancing customer experience for a (specific product/service). Consider feedback mechanisms, touchpoints, service improvements, and measures of satisfaction."
13. Content Creation & Distribution
Prompt: "Develop a plan for creating and distributing compelling content for (specific platform/audience e.g., YouTube channel, corporate blog). Include content ideas, production timelines, promotion strategies, and performance metrics."
14. Leadership & Team Building
Prompt: "Provide insights into effective leadership and team-building strategies for (specific context e.g., remote teams, cross-functional groups). Highlight best practices, potential challenges, and methods for conflict resolution."
15. E-commerce Strategy
Prompt: "Detail a comprehensive strategy for launching and scaling an e-commerce business in (specific niche/market). Include platform selection, payment processing, customer acquisition, and logistical considerations."
16. Professional Personal Branding
Prompt: "Design a roadmap for building and maintaining a strong personal brand in the (specific industry/field). Consider online presence, networking, thought leadership, and strategies for continuous growth."
17. Sustainability & Corporate Responsibility
Prompt: "Develop a plan for integrating sustainable practices and corporate responsibility into a (specific business model/industry). Discuss benefits, stakeholder involvement, communication strategies, and impact measurement."
18. Innovation & Product Ideation
Prompt: "Detail a structured process for brainstorming and validating innovative product ideas in the (specific industry/field). Discuss research methods, prototype testing, market fit, and potential pitfalls."
19. Employee Training & Development
Prompt: "Propose a comprehensive employee training program for (specific skill/domain e.g., software tools, soft skills). Include training modules, assessment techniques, feedback mechanisms, and continuous learning opportunities."
20. Crisis Management & PR
Prompt: "Outline a strategy for managing potential crises and PR challenges in (specific business scenario e.g., product recall, negative reviews). Highlight proactive measures, communication channels, stakeholder management, and recovery strategies."
21. Technology Adoption & Integration
Prompt: "Provide a plan for adopting and integrating (specific technology e.g., AI solutions, CRM systems) into daily business operations. Discuss benefits, training needs, potential resistance, and ROI measurement."
22. Sales & Growth Hacking
Prompt: "Craft a sales strategy and growth hacking techniques for (specific product/service). Discuss sales funnel stages, lead generation, conversion optimization, and tools to streamline the process."
23. Event Planning & Execution
Prompt: "Detail a comprehensive plan for hosting a (specific event e.g., conference, webinar, product launch). Include venue selection, marketing, attendee engagement, content planning, and post-event feedback collection."
24. Intellectual Property & Legal Compliance
Prompt: "Explain the process and considerations for protecting intellectual property in (specific domain e.g., software, creative content). Also, highlight any legal compliance requirements and potential challenges."
25. Continuous Learning & Professional Development
Prompt: "Design a lifelong learning strategy tailored for professionals in the (specific industry/field). Include recommendations for online courses, workshops, networking events, and self-paced study methods to ensure consistent growth and relevance in the ever-evolving workforce."
Test Scenario Generation (Basic)
I want you to act as an expert software tester who works on testing "<>" applications.Generate test scenarios for testing the "<>" feature for "<>" product. Write the test scenarios in story-like scenario.Attaching the screenshot of the Application Feature Page for your reference.Cover scenarios for positive cases, negative cases as well as creative exploratory testing cases.
Generate Test Scenarios from Requirement (Advanced)
I want you to act as an expert software tester who works at designing test scenarios for his team.
Generate test scenarios for the below requriements. Ensure that you cover the edge cases, positive cases, negative cases as well as cases that most testers usually miss to cover.
You can also give me checklist of potential bugs in the implementation of such requirement. Here is the requirement of this feature:
Requirement Analysis – Notes, Questions, Risks, Bugs
I want you to act as an expert software tester who works at reviewing requirements and participates in requirement refinement meetings with the product team.
I want you to ensure that as a tester, you check if the requirement is testable. If not, highlight what can be done to make it testable. Also, analyze each requirement and add your comments as Questions, Notes, Risks, Test Ideas, and Requirement Bugs.
Here is the requirement of this feature:
Test Strategy
I want you to act as an expert software tester who works at designing test strategies for the product. I want you to create test strategy considering pointers from the heuristics test strategy model by James Bach available at satsifice.com.
The test strategy should consider factors such as Project Environment, Product Elements, Quality Criteria and Testing Techniques. The Project Environment is about knowing everything possible about the project (Mission, Information, Developer Relations, Test Team, Equipment / Tools, Schedule, Test Items, and Deliverables). The Key Quality Criteria categories include capability, reliability, usability, charisma, security, scalability, compatibility, performance, installability, and development. The Product Element categories includes Structure, Function, Data, Interface, Platforms, Operations, and Timing related factors associated with the product.
Also, make note of all the risks associated with testing this product. You can ask me questions to clarify on any point. I want you to make a test strategy and explain the step by step tasks I need to do to implement that strategy. Your test application is:
Testing Analysis on Product Update (Updated Requirement)
I want you to act as a testing expert from Rapid Software Testing Background. I want you to do a feature anaysis from testing point of view. I would give you both the versions of the requirements. The first version would be the existing requirement, the second version would be the updated requirement.
I want you to use the RCRCRC heuristic for analysing the changes and highlight the area that needs testing.
RCRCRC heuristic stands for: Recent - what testing around new areas of code should I think about?
Core - what essential functions or features must continue to work?
Risky - what features or areas of code are inherently more risky?
Configuration Sensitive - what code is dependent on environment settings? 
Repaired - what code has changed to address defects and potentially created issues?
Chronic - what code typically breaks features that need to be tested?
Here is the updated requirement:
CSV Format Test Cases for Upload to Jira
Rewrite the test scenarios that you generated into csv format table so that I can upload it to Jira.
The fields that I want to map in Jira are: Step Number, Step, Data, Expected Result
Here is a sample example of field data:
S.NO | Step | Data | Expected Result
1 | Navigate to Ministry of testing Website | www.ministryoftesting.com | Able to load the website correctly.
2| Click on the Sign Up Page | None | User lands on the Sign Up Page
Write all the tests in the above format step by step.
Learn Testing Topic with Resources & Tools
Assume that you are a testing expert coming from Rapid Software Testing Background.
You like to explain things like James Bach and Michael Bolton. You can read contents from: Developsense.com, satisfice.com, huibschoots.nl
Your task is to explain testing concepts to a beginner in testing.
Explain the topics using stories, examples, importance of the topic, and in a simple language. Also share me further learning resources and tools that I should look to explore more on this topic.
I want you to explain this topic to me:
Evaluate Test Cases / Scenario Quality
I want you to act as a testing expert from Rapid Software Testing Background. I want you evaluate test cases for a the specified feature based on the completeness and quality of tests, providing insights into how well the tests cover the requirements.
I want you to use the SFDIPOT heuristic for analysing the coverage levels of these tests.
SFDIPOT is a mneumonic for: Structure, function, data, interfaces, platform, operations, and Time. If an aspect is missing in the list of tests, then highlight that and suggest tests for that.
The requirement is about:
Here is the list of tests created till now:
Test Data Generation
I want you to act as an expert software tester who works on creating test data to provide comprehensive test data coverage.
I want you to generate positive, negative, creative, big, little, invalid,  exploratory, boundary-related, and penetration testing related test data to expose vulnerabilities. 
Here are some common types of test data attacks that you can also learn from and incorporate while creating our own test data:
Paths/Files(write paths with these give type): Long Name (>255 chars), Special Characters in Name (eg: space * ? / \ | < > , . ( ) [ ] { } ; : ‘ “ ! @ # $ % ^ & ƒ ), Non-Existent characters, Character with No Space.
Time and Date: Crossing Time Zones, Leap Days, Always Invalid Days (Feb 30, Sept 31), Feb 29 in Non-Leap Years, Different Formats (June 5, 2001; 06/05/2001; 06/05/01; 06-05-01; 6/5/2001 12:34), Internationalisation dd.mm.yyyy, mm/dd/yyyy, am/pm, Daylight Savings Changeover.
Numbers: 0, 32768 (215), 32769 (215 + 1), 65536 (216), 65537 (216 +1), 2147483648 (231), 2147483649 (231 + 1), 4294967296 (232), 4294967297 (232 + 1), Scientific Notation (1E-16), Negative, Floating Point/Decimal (0.0001), With Commas (1,234,567), European Style (1.234.567,89).
Strings: Long (255, 256, 257, 1000, 1024, 2000, 2048 or more characters), Accented Chars (àáâãäåçèéêëìíîðñòôõöö, etc.), Asian Characters
Common Delimiters and Special Characters ( “ ‘ ` | / \ , ; : & < > ^ * ? Tab ), Leave Blank, Single Space, Multiple Spaces, Leading Spaces, SQL Injection ( ‘select * from customer),  Emojis
Provide the results in tabular format.
I want you to generate {10} rows of test data for: {}
These are the variable names to create test data for:
Bug Reporting & Drafting
I want you to act as an expert professional software tester who works on drafting bug reports for the product. I want you to draft respectful bug reports based on the issue description that I will share. You have to write compelling and influential bug reports that motivate the programmer to solve those bugs.
Each Bug Report should be in the following format:
- Bug Title: An impact first unique summary that expresses the essence of bug. Under 12 Words, Distinctive.
#Bug Description: Write a brief description of this bug. Minimum 2-3 lines. Be specific and clear about the problem here. Also, Specify here that why do you think it is a problem.
#Application Version:
#Test Environment Details: Edge (Chromium) along with installed Edge Version.
#Screenshot: [User will attach a screenshot here.] Write the next point from the next line.
#Consistently Producible: Yes, Thrice.
#Severity: Add severity between High, Medium, Low and Lowest
#Impact to User: Share the impact of the bug to the end user
#Risks to Business: Write potential risks to the business from this bug.
#Additional Notes: Use this section to add worst side-effects that may come from this issue and also explain why this bug matters.
# Bug Re-Testing Ideas: Share a couple of bug retesting ideas that the developer may try after they fix this bug in their local version.
#Similar Bugs Stories: Add a story of any similar bug that has happened and has caught global attention. If no such story exists, don't mention this section.
You can ask me questions to clarify the bug if something is not clear. I want you to write a clear and well-formatted bug report.
Here is the bug to report:
Code Analysis & Explanation
You are an expert code analysis and code explanation expert. I will give you code snippets in the prompt and you have to do analysis and help a beginner understand it with simplicity. You have to also check and give feedback on:
- Is the code compliant with standard coding guidlines of the programming language used. If not, what are the issues and how to resolve them?
- Is the code snippet consistent throughout? If not, what are the inconsistent aspects in this code?
- Are there security vulnerabilities or risks in the source code? If yes, specifically highlight those areas.
-  Would there be difficulties in maintaining this code in future? If yes, elaborate on how can we make it more maintainable?
- Are there any unreachable code blocks in this snippet? If yes, highlight that.
Also, write potential test ideas for this piece of development code snippet.
Explain the following code so that someone with no development experience can understand. The code is:
1) User story creation
Requirement: As a user I should able to login in ecommerce application so that user can access all teh features from the application.
Prompt:
Create user stories for the following requirement.
Requirement: As a user I should able to login in ecommerce application so that user can access all teh features from the application.
2) Test case development
Prompt: Create test cases for the following user story
User Story : Basic Login
Title: User Login with Email and Password
As a user,
I want to log in using my email and password,
so that I can access all the features of the ecommerce application.
Acceptance Criteria:
User should be able to navigate to the login page from the homepage.
User should see fields for email and password.
User should be able to enter their email and password.
User should be able to click a "Login" button.
If the email and password are correct, the user should be redirected to their dashboard or homepage.
If the email or password is incorrect, an error message should be displayed.
3) Syntax Error detection and correction
Prompt: Find syntax errors and correct the below java code.
public class Testing {
public static void main(String[] args) {
System.out.println("Hello, World!);`
int number = 10
if (number = 10) {
System.out.println("Number is ten");
} else {
System.out.println("Number is not ten";
}
for (int i = 0; i < 5; i++) {
System.out.println("i is: " + i;
}
String[] names = {"Alice", "Bob", "Charlie"};
for (String name : names {
System.out.println(name);
}
}
}
4) Logical Error Detection and Correction:
Prompt: Find out logical errors and correct the below java code.
public class LargestOfTwoNumbers {
public static void main(String[] args) {
int num1 = 10;
int num2 = 20;
// Logical error: Using ">" instead of ">="
if (num1 > num2) {
System.out.println("The largest number is: " + num1);
} else {
System.out.println("The largest number is: " + num1);
}
}
}
5) Test Automation script writing.
Prompt: Write automation test script using Selenium with Java and TestNG for the following test case.
Test Case : Successful User Registration
Preconditions: The user is on the registration page.
Test Steps:
1) Launch chrome browser and open URL "https://demo.nopcommerce.com/"
1) Navigate to the registration page.
2) Enter valid data in all mandatory fields (e.g., first name, last name, email, password, confirm password).
3) Select any required options (e.g., gender, newsletter subscription).
4) Click the "Register" button.
Expected Result: The user is successfully registered and redirected to a welcome page or their account dashboard.
6) XPath locator creation
Prompt: Write Selenium XPath Locators for all the elements in the page "https://demo.nopcommerce.com/"
7) Page Object Model(POM) class creation
Prompt 1: I have a web page "https://demo.nopcommerce.com/login". Create Login page object class for Selenium Java automation framework without Page Factory.
Prompt 2: I have a web page "https://demo.nopcommerce.com/login". Create Login page page object class for Selenium Java automation framework with Page Factory.
8) BDD Feature file scenarios creation.
Prompt: Create feature file scenarios for the test case.
Test case Title: Successful User Registration
Preconditions: The user is on the registration page.
Test Steps:
1) Navigate to the registration page.
2) Enter valid data in all mandatory fields (e.g., first name, last name, email, password, confirm password).
3) Select any required options (e.g., gender, newsletter subscription).
4) Click the "Register" button.
Expected Result: The user is successfully registered and redirected to a welcome page or their account dashboard.
9) Utility creation
Prompt 1: " Create an utility in java to handle excel sheet using Apache POI . I would like to do following operations 1) Count number of rows in excel sheet 2) Count Number of cells in a row 3) Read data from cell 4) Write data into cell.”
Prompt 2: " Create an utility in java to handle MySQL database . I would like to do following operations 1) read data from the table 2) insert data into table 3) update data into table 4) delete rows from a table."
10) Test data generation
Prompt 1: " Create test data for registration form in tabular format. Data includes First Name, Last Name, DOB, Email, Password, Conform Password.”
Prompt 2: " Create test data for registration form in JSON format. Data includes First Name, Last Name, DOB, Email, Password, Conform Password.”
11) Code Review and Understanding:
Prompt: Explain the below code
public class StringReversal {
public static void main(String[] args) {
String original = "Hello, World!";
String reversed = reverseString(original);
System.out.println("Original: " + original);
System.out.println("Reversed: " + reversed);
}
public static String reverseString(String str) {
StringBuilder reversed = new StringBuilder();
for (int i = str.length() - 1; i >= 0; i--) {
reversed.append(str.charAt(i));
}
return reversed.toString();
}
}
############ ALLSHARE ############
I want you to act as an expert software tester who works at designing test scenarios for his team.
Generate test scenarios for the below requriements. Ensure that you cover the edge cases, positive cases, negative cases as well as cases that most testers usually miss to cover.
You can also give me checklist of potential bugs in the implementation of such requirement. Here is the requirement of this feature:
It should be possible to receive and save a single IPO order from eXimius:
An IPO order will be very similar to a Buy order but will have Order Side 'D'.
Additional validations
OMS should not accept an IPO order when there isn't an active IPO event linked to the market instrument (active = open for subscription).
OMS should not accept an IPO order when the IPO event does not support the requested volume type:
OMS should not accept an order with OrderQty when the IPO event does not support volume in units.
OMS should not accept an order with CashOrderQty when the IPO event does not support volume in money.
OMS should not accept an IPO order when there is a volume / money volume subscription limit defined in the IPO event and the order volume / money volume > the subscription limit.
For structure and spelling follow this example:
Pre-conditions:
- at least one routing rule is applicable to order and is routed to KBC
- Portfolio has enough money position, volume position in RTBS and VBE Managing agency
- Market instrument has Option Instrument type
Step 1 Purge the int-oms-vlk-kbc-raw-fixml-market-outgoing-events in RabbitMQ; Expected Result 1 the queue is purged successfully
Step 2 Inject a Strategy order in Swagger API External (Event); Expected Result 2 Response status code is 204.
Step 3 Navigate OMS Street Side Portal; Expected Result 3 The respective order is displayed in the 'Sent to the market' status
Step 4 Navigate OMS Client Side Portal; Expected Result 4 The respective order is displayed in the 'Sent to the market' status
Rewrite the test scenarios that you generated into csv format table so that I can upload it to Azure DevOps test plan.
The fields that I want to map in Jira are: ID,Work Item Type,Title,Test Step,Step Action,Step Expected,Area Path,Assigned To,State,Component
Here is a sample example of field data:
ID,Work Item Type,Title,Test Step,Step Action,Step Expected,Area Path,Assigned To,State,Component
,"Test Case","Verify Internal Cut-off Time is Mandatory2",,,,"eBankView","Ionut Apostol <centric_iapostol@allshare.net>","Design","OMS"
,,,"1","Create IPO event without internal cut-off time.","Validation fails with error message.",,,,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment